Stop by Vinny Vincenz in the East Village for a great $1 slice after midnight.Andrea P/FoursquareEveryone knows the moment, the one when it's time to leave the bar and grab a slice of pizza on the way home. After midnight, scoring a slice isn't about finding the highest-rated spot in the neighborhood; rather, it's about what's good and what's open.

25. Roll & Go $1 Pizza

This unassuming spot serves as a pizza haven for late-night travelers emerging from the A/C train in Bed-Stuy after (or during) a night out. Step in for slices of classic cheese, pepperoni, or a sausage and pepperoni combo — at $1 a pop, who cares about the lack of variety?

2/

24. Lunetta Pizza

Stop by Lunetta Pizza after a night on the town for thin crust, melted cheese, and a variety of classic toppings, including pepperoni, mushrooms, and barbecue chicken. The service isn't perfect, but it does the trick at 1 a.m.

22. Two Boots West Village

The quality of Two Boots' pizza is rivaled only by the cleverness of each pie's name. With themes like "The CBGB," topped with chicken, broccoli, and garlic, or the "Earth Mother," loaded with mushrooms and bell peppers, this West Village joint is worth a visit as much for the atmosphere as for the food.

5/

21. Rocky's Pizzeria

When it comes to toppings, Rocky's Pizzeria thinks outside the box, delivering concoctions such as ravioli on pizza, penne alla vodka on pizza, and a full Caesar salad on pizza — a veritable drunk person's dream. Perhaps it's not recommended for the diet-conscious, but it's a win for anyone in the market for some late-night carbs.

6/

20. Nonna's L.E.S. Pizzeria

Nonna's L.E.S. Pizzeria puts care into each "magic square" slice, topping its pies with homemade mozzarella and slow-cooked sauce. The joint brings the taste of Italy to the Lower East Side with imported olive oil and prosciutto as well.

7/

19. J's Pizza

Head to J's Pizza for quality New York-style slices, complete with extra-thin crust and a generous load of toppings. The no-frills spot tops its pies with fresh ingredients like basil, tomatoes, and grilled chicken, and you can't go wrong with a slice of the eggplant parm pie.

16. Ganni's Pizzeria

Customers who stop by Ganni's Pizzeria after dark still get the benefit of a variety of pies, including vegan and vegetarian options. Foursquare users rave about the bacon and pepperoni varieties as well as the garlic knots.

11/

15. Rosario's Pizza

Known for its late-night crowd, Rosario's Pizza churns out pies until 3 a.m., attracting patrons as they stumble home from the Lower East Side's plethora of bars. The classic cheese doesn't disappoint, and the cheeseburger and caprese varieties are must-trys.

12/

14. Barboncino

Tied as the highest-rated spot on the list, Crown Heights' Barboncino serves up gourmet Neapolitan pies late into the night, with impeccable service to match. Grab a few drinks at the bar there, or stop by on your way home for chewy crusts topped with extras as varied as clams, cremini mushrooms, and Neapolitan meatballs.

13/

13. Ben's Pizzeria

A favorite of New York University students, Ben's Pizzeria gives customers the authentic New York pizza experience late into the night. Do yourself a favor and get the Grandma slice, a square piece complete with a crispy crust and hefty portion of sauce.

Bonus: Ben's also makes an appearance in the opening credits of FX's "Louie."

14/

12. Vinny Vincenz

Nothing caps off a night out as well as dollar pizza, and Vinny Vincenz never fails to deliver. The East Village spot's huge slices feature a light crust brimming with slow-simmered sauce and freshly melted cheese. Feeling bold? Splurge on a $2 slice of pepperoni — you won't be disappointed.

11. Roma Pizza

If you find yourself on the Upper East Side past midnight, stop by Roma Pizza for a slice of the buffalo chicken and a handful of garlic knots.

"You'll find huge pizza slices that are ooey-gooey, salty, and saucy, and are served into the wee hours of the night," The Corcoran Group shared on Foursquare. "Customer service is definitely lacking, but what did you expect?"

16/

10. Williamsburg Pizza

A step up from bare bones late-night joints, Williamsburg Pizza features offbeat toppings like goat cheese, pear, kale, and truffle oil. But never fear — you won't be forced to eat kale if you're not into it: Classic cheese and pepperoni remain solid menu choices as well.

17/

9. Rocky's Pizza Restaurant

With slices that are thin-crusted and loaded with sauce, Rocky's Pizza Restaurant offers a late-night respite to hungry bargoers in search of a place open until 4 a.m. Stop by for varieties like pesto, chicken parm, and bacon ranch, and don't forget to include an order of garlic knots.

18/

8. Bleecker Street Pizza

Bleecker Street Pizza brings authentic Tuscan-style pizza to New York through a family recipe the proprietor's grandmother, Nonna Maria, carried over from Italy herself. Order at least one slice of the signature recipe, but branch out with options such as buffalo chicken, mushroom, and white pie. You always need more than one slice after dark!

19/

7. Prince Street Pizza

Touted as "the best square pizza in NYC" by Foursquare users, Prince Street Pizza's Sicilian-style pie charms customers with a thick crust that's crunchy on the outside yet soft on the inside. The pepperoni slice is a must-try, loaded with mini, greasy pepperoni that is always perfectly cooked to a crisp.

20/

6. Vinnie's Pizzeria

Vegans, too, love a good late-night slice of pie, and Vinnie's is praised as the place to get it.

"Where vegans can eat a slice like normal human beings!" Foursquare user Melissa Weiss says. "Crust is perfectly thin and crispy. If you're not into their ambitious vegan topping options, there is usually a classic vegan cheese available."

21/

5. Archie's

An unpretentious, blink-and-you-might-miss-it spot in Bushwick, Archie's surprises customers with pies that are fresh, nongreasy, and include topping options like pineapple, anchovies, and smoked bacon. It's a break from traditional New York-style pizza with a thick, chewy crust, but even locals relish the change.

22/

4. Anna Maria Pizza & Pasta

Cheap and popular with the post-bar crowd, Anna Maria Pizza & Pasta dishes out huge, greasy slices of cheese pizza for under $3. Cough up a few more bills and you can score ramped-up varieties like chicken Caesar, spicy chicken avocado, and blue cheese barbecue chicken.

23/

3. Ray's Pizza

Though Foursquare users agree that Ray's Pizza isn't the crème de la crème of New York pizza, it does the trick at 3 a.m. with toppings such as bacon, mushroom, and pineapple. It's open 24 hours, so you're guaranteed a slice no matter how late you're out partying on St. Mark's Place.

24/

2. Joe's Pizza

With multiple locations around the city, Joe's Pizza stands as a New York institution.

"Great cheese slice," Foursquare user Paddy said. "More expensive than a lot of other places in the city, but the base/crust is perfect, the cheese to sauce ratio faultless, and the sauce is zesty and tangy."

25/

1. Artichoke Basille's Pizza & Bar

Known for its enormous slices, Artichoke Basille's Pizza & Bar serves up its signature artichoke pizza until 4 a.m. on weekends. The creamy pie comes slathered in a smooth white sauce, artichoke hearts, and globs of mozzarella cheese. Even when it feels like too much, you'll definitely find room to finish that heavenly slice.