Many people move to big cities for the vibrant nightlife—not so much for peace and quiet. But at the end of a long night on the town, living in a city that never sleeps can be exhausting. If you'd like to balance the excitement of metropolitan life with a healthy sleep schedule, these are the cities you should (and shouldn't) consider.

Lenstore.co.uk analyzed 36 capital cities around the world to determine which locations provided the best and worst environments for a good night's rest. They based their rankings on several criteria, including noise levels, light pollution, air quality, climate, and how many hours the average resident works per week.

Based on their assessment, Canberra, Australia, is the best capital city on Earth for getting some shut-eye. The Australian capital is No. 1 in terms of noise and light pollution, and it's second in air quality to Bern, Switzerland. Other cities that make the list include Vienna in the second slot, Luxembourg in the third, and Jerusalem in fourth place.

Lenstore.co.uk looked at the world's worst places for sleepers as well. Coming in at the bottom of the ranking is Washington, D.C., which is home to the worst light pollution of any capital city in the world. Santiago, Chile, and San José, Costa Rica, are also places to avoid if you value getting your eight hours in every night.

You can check out the lists of the best and worst cities for sleep below. Here are more tips for getting some rest no matter where in the world you live.

10 Capital Cities With the Best Sleep Conditions

  1. Canberra, Australia
  2. Vienna, Austria
  3. Luxembourg, Luxembourg
  4. Jerusalem, Israel
  5. Tokyo, Japan
  6. Vilnius, Lithuania
  7. Bern, Switzerland
  8. Copenhagen, Denmark
  9. Lisbon, Portugal
  10. Stockholm, Sweden

10 Capital Cities With the Worst Sleep Conditions

  1. Washington, D.C., United States
  2. Santiago, Chile
  3. San José, Costa Rica
  4. Warsaw, Poland
  5. Bogotá, Colombia
  6. Budapest, Hungary
  7. Paris, France
  8. Brussels, Belgium
  9. Rome, Italy
  10. London, England