He’s gone from homeless to Hollywood.

An aspiring singer who slept in shelters and subway cars in New York got the break of a lifetime when he impressed the judges on “American Idol” and won a rare chance to compete in California.

“Hollywood” Anderson Footman, 22, blew away the superstar panel of Jennifer Lopez, Harry Connick Jr. and Adam Lambert by singing an original song in his initial audition in New York.

Going with his own tune rather than a popular standard was seen as a huge risk — but it paid off big-time for a man who seemed to have nothing to lose.

“Me singing my own music is totally different than me singing someone else’s song,” he told The Post. “You get to hear me express myself.”

All three judges were stunned by the Florida native’s chops, and moved by his song, “My Best Friend,” which was about a college friend with whom he “fell madly in love.”

Footman and J.Lo shared a moment, tearing up as he got his “golden ticket” to Hollywood. “I want to record that song tomorrow,” Lopez told him.

Go to The Post for the full story.