The definitive origin and actual name for the character was never established in the comics (although some people now assume his real name is Jack Napier as in the 1989
Batman movie). In a 1951 story, an origin was told in which he was originally a criminal who called himself the "Red Hood." In an encounter with
Batman, he jumped into a pool of chemicals to escape pursuit, and this permanently dyed his skin white, his lips red, and his hair green, giving him the appearance of a ghastly clown. (In the light of later developments, it is worth noting that even in this story, the only source of information about who the Joker was before his fateful run-in with
Batman is the Joker's own recollection.)
The first origin to have been given to the Joker was in a 1956 comic where the
Red Hood returned to rob the univeristy of Gotham. In the issue,
Batman states that the
Red Hood has been the only villain to ever escape him. At the end of he issue,
Batman and Robin discover that the Joker was the
Red Hood and donned the hood again in light of the case being reopened. Joker tells
Batman that after trying to break into the Ace
Monarch Card Company, he escaped through the chemical plant next to the factory and swam through a chemical pipe out into the lake. Only when he got home and took the mask off did he discover he had been transformed and designed himself after the playing card since he looked like a clown. He said he had kept this information from
Batman for years so he would keep guessing. This origin, being the first origin offered for the Joker, states that he was in crime long before the accident occurred. However, again due to later developments, this is coming from the Joker's own memory and is largely unreliable.
This origin was greatly expanded upon in the 1988 graphic novel, Batman: The Killing Joke written by Alan Moore. In that story, the Joker was an unnamed engineer who quit his job at a chemical company to become a stand-up comedian, only to fail miserably. Desperate to support his pregnant wife, he agreed to guide two criminals into the plant for a robbery. During the planning, the police came and informed him that his wife had just died in a household accident. Grief-stricken, the engineer tried to withdraw from the plan, but the criminals strong-armed him into keeping his commitment to them.
At the plant, the criminals made him don a special mask to become the infamous
Red Hood. Unknown to the engineer, this was simply a way to implicate any accomplice as the mastermind of a crime to divert attention from themselves. Once inside, they almost immediately blundered into security personnel and a violent shootout and chase ensued. The criminals were gunned down and the engineer found himself confronted by
Batman, who was investigating the disturbance.
In panicked desperation, the engineer escaped by diving into a toxic waste vat and swam through a pipe leading to the outside. Once there, he discovered, to his horror, that the chemicals permanently stained his skin chalk white, his lips ruby red and his hair bright green. This turn of events, compounded by the man's misfortunes on that one day, caused him to go completely insane and resulted in the birth of the Joker.
In a 2004 comic book (Batman: Gotham Knights #54), it was heavily implied that much of the above origin was in fact true (and that the Joker's first name was Jack), with details of it being backed up by a witness to the death of the Joker's wife. In this version, however, his wife was kidnapped and murdered by those same gangsters, in order to force his cooperation in the
Red Hood robbery. The witness was none other than Edward Nigma, who would eventually become the
Riddler.
In the short story "On a Beautiful Summer's Day, He Was" by Robert McCammon, featured in the anthology The Further Adventures of the Joker, the Joker is suggested to have been born a monster, not made one by bad luck. The story concerns him as a young boy who derives pleasure from killing small animals (considered the hallmark sign of a budding sociopath) and collecting their bones. The story notes that his father is also insane and, in a chilling scene, beats his mother while the boy listens through the wall, grinning. The end of the story has him graduating to murder, killing a neighborhood boy who discovers his makeshift graveyard. The story identifies the Joker's last name as Napier.
In "Best of All," another story in the anthology, the Joker murdered his abusive father as a child. His mother was revealed to be Batman's old friend and confidante Leslie Thompkins, which he revealed to
Batman to torment him.
Any recountings of the Joker's origin are largely unreliable, however, as they are taken directly from his own memories, and as he himself puts it in The Killing Joke, "I'm not exactly sure what happened. Sometimes I remember it one way, sometimes another... If I'm going to have a past, I prefer it to be multiple choice!"