Allison Williams stripped down for the latest issue of Harper's Bazaar.

The 27-year-old "Girls" star and daughter of news anchor Brian Williams posed topless and showed off her abs in the magazine, according to E! News.

On the inside of magazine, Williams discussed her sense of style and listed her fashion icons of choice.

"When it comes to my style icons, I've always had a thing for the K's: Keaton. Kelly. Kruger. Kate. Katharine," she said. "They all represent sophisticated fashion that's also full of life. After all, clothes are fun -- it's dress-up for adults."

Some of her favorite go-to items to wear on a regular basis are button-downs, boots, sweaters and staple-jeans. However, Williams has one main piece of clothing she swore by.

"This is my gift to you: Spanx makes the most incredible exercise spandex," Williams said. "I wear them almost every day. They have a little control top, so they're flattering. I'll often stay in exercise clothes all day, which I know is a faux pas."

The actress, who showed off her extremely flat abs in the spread, talked about her healthy diet and exercise habits, although she also mentioned she's not the best at cooking.

"I am the world's worst cook, " she said. "Not only am I bad at it, but I also have some kind of inability to learn. When I cook, the salad is done first and is soggy by the time you eat, the pasta is al dente, but not in a good way. And I'm perpetually worried that the meat is going to poison everyone, so it ends up being black."

Williams married Ricky Van Veen in September in a private wedding ceremony officiated by Tom Hanks held in Wyoming.

The fifth season of "Girls," starring Williams as Marnie, will air on HBO on Feb. 21.