LOS ANGELES — Ellen Page, who won the hearts of moviegoers as the pregnant teenager in the 2007 film “Juno,” has come out as gay.

The 26-year-old told a Las Vegas audience Friday, “I’m here today because I am gay.” She was speaking to a conference of counselors who work with teens who identify as lesbian, gay, transgender, bisexual or queer.

Page said she suffered for years because she was afraid to come out. “I’m standing here today … on the other side of all that pain,” she said.

Page received an Oscar nomination for “Juno.”