When it comes to celebrating Independence Day with a bright fireworks-laden backdrop, there are few cities better than Atlanta.

» RELATED: The ultimate Fourth of July weekend guide

That's according to a new ranking from personal finance website WalletHub, for which analysts compared the 100 largest cities in the United States across five key dimensions: Fourth of July celebrations, affordability, attractions/activities, safety/accessibility and weather forecast.

Researchers weighed 19 relevant metrics for the dimensions, including legality of fireworks, number of celebratory festivals and performances, walkability, Google search interest and more.

Of the 100 cities on the list, New York came out on top, ranking No. 1 in attractions/activities and No. 2 in safety an accessibility. But the city scored quite low when it came to affordability (No. 89).

Los Angeles and Chicago rounded out the top three.

» RELATED: America's 10 biggest and brightest Fourth of July fireworks

Atlanta ranked sixth overall. Here’s more on how the metro fared:

  • Overall rank: 6
  • Fourth of July celebrations: 4
  • Affordability: 34
  • Attractions/activities: 12
  • Safety/accessibility: 99
  • Fourth of July weather: 70
  • Walkability: 34
  • Legality of fireworks: 1
  • Lowest price of three-star hotel room: 40
  • Average price of Fourth of July party ticket: 3
  • Prevalence of affordable 4.5+ star restaurants: 34
  • Duration of fireworks show: 9

According to WalletHub, Atlanta ranked among the top 10 in the country when it comes to number of Independence Day celebrations, prices of event tickets for Fourth of July parties, fireworks laws and longest fireworks displays.

Though it ranked 34th for walkability, Atlanta’s meager second-to-last rank in safety/accessibility kept the city from making it to the top five overall.

The metro has seen high violent crime rates in recent years, but according to a previous AJC report, overall crime has dropped.

But if you’re in town for the Fourth this year, you’re in for a treat.

In addition to the ever-popular annual AJC Peachtree Road Race, the Georgia Aquarium will be hosting its Red, White and Brew showdown, and celebrations will be underway at the Georgia World Congress CenterStone Mountain Park and beyond.

Explore our ultimate Fourth of July weekend guide for more.

More Fourth of July fun around the metro: