New York is renowned for its non-stop nightlife, from 24-hour restaurants to bars that serve drinks until the early hours of the morning, but which neighborhoods offer the most choices for nocturnal eating and drinking?

We obtained the complete database of restaurant and bar hours from the city’s Health Department—which keeps track of when restaurants are serving so it can plan when to send inspectors—and used that data to make these interactive maps of which neighborhoods allow dining when. Keep in mind that while the maps include restaurants, bars and other establishments displaying letter grades from the Health Department, they don't include most supermarkets, delis and bodegas, which are separately regulated by New York State.

Click the play button to watch restaurants and bars when open and close throughout the week, or select a day and time to see who's serving.

Between 10 p.m. and midnight, some of the city's more residential neighborhoods start to go to sleep. Those still hungry or thirsty can find the most late night options in a few areas: Williamsburg, Bushwick, Downtown Brooklyn, Park Slope and Bay Ridge stay open late in Brooklyn, as do Corona, Jackson Heights, Flushing, Woodside and Astoria in Queens. Manhattan's night owls can pretty much find late-night food and drink anywhere below Central Park. Restaurants in Staten Island and the Bronx both tend to shut down early, though each borough offers its share of scattered late-night options for those who know where to find them.

Bars can serve until 4 a.m. under state liquor laws, and the establishments that avail themselves of that privilege are most heavily clustered in a few neighborhoods. In Manhattan, that’s the West Village, Meatpacking District and East Village/Lower East Side, along with Murray Hill, Times Square and Hell’s Kitchen. In Brooklyn, it’s Williamsburg and Bushwick, Prospect Heights and Park Slope. In Queens, many nightlife districts have a more international flavor, catering to the Asian community in Flushing and a Spanish-speaking audience around Corona and Jackson Heights.

And, of course, New York City is full of restaurants that simply never close. Twenty-four-hour eateries are especially prevalent throughout Manhattan, particularly between 59th Street and Canal Street.

All-night spots can also be found throughout other boroughs, especially Williamsburg, Downtown Brooklyn, Park Slope, Prospect Heights, Bay Ridge and the Brighton Beach/Manhattan Beach area in Brooklyn. Queens-dwellers looking for places to eat around the clock can find the most 24-hour options in Elmhurst, Corona, Forest Hills, Flushing and diner-rich Astoria and Long Island City. The latter neighborhoods might be a good option for anyone with nocturnal habits on Roosevelt Island, which, according to the Health Department data, has no 24-hour restaurants.

Steven Melendez is a Brooklyn-based independent journalist who was previously a full-time member of WNYC's Data News Team.