CNN  — 

It’s long been known for its grandiose architecture, lashings of green spaces and traditional coffee shops – and now Vienna is building itself a reputation for something even more covetable.

The Austrian capital has been ranked the world’s most livable city for the second year running, topping the table with almost perfect scores.

It was followed by Melbourne – which Vienna toppled from pole position last year after seven years at the top. Sydney, Osaka and Calgary make up the top five on the annual Global Liveability Index of 140 cities around the world, researched by The Economist Intelligence Unit.

The index considers more than 30 qualitative and quantitative factors spanning five broad categories, weighted as follows: stability (25%), healthcare (20%), culture and environment (25%), education (10%), and infrastructure (20%).

In-house analysts and local contributors are tasked with rating for qualitative factors. Scores are compiled on a scale of 1-100.

Lucie Lamster Thury, a New Yorker who moved to Vienna in 2004 and runs shopping tours of the city, said Vienna “taught me how to live.

“Coming from Manhattan it was hard to slow down but I love the pace of Vienna. It’s relatively quiet, clean and culturally abundant, and I’ve never felt safer in Europe or in the States. I thought I’d never get used to shops being closed on Sundays, but it has changed my life – people actually get to rest here, and private life is as important as work.”

Although the top 10 was dominated by Australia, Canada and Japan, Europe performed well overall. Eight of the top 20 cities are in Northern Europe, with Copenhagen following Vienna into the top 10, and Zurich, Frankfurt and Geneva taking spots 11, 12 and 14.

Helsinki, Amsterdam and Hamburg also made the top 20, while Berlin and Luxembourg came in at 21 and 23 respectively.

Morne de Klerk/Getty Images
Adelaide, Australia: The southern Australian city is the world's 10th most livable city according to The Economist Intelligence Unit's 2019 Global Liveability Index. Click through the gallery to see the top 10
Odd Andersen/AFP/Getty Images
Copenhagen, Denmark: Loved for its open sandwiches and trendy districts like Vesterbro, the Danish capital was ranked the ninth most livable in the 2019 Global Liveability Index.
Tokyo, Japan: The futuristic city was named joint seventh (with Toronto) for livability.
Tourism Toronto
Toronto, Canada: Canada's most populous city was ranked joint seventh for livability with Tokyo.
Pixabay, Creative Commons
Vancouver, Canada: The sixth most livable city for 2019 is Western Canada's largest, the Pacific-bordering Vancouver.
Pixabay, Creative Commons
Calgary, Canada: The gateway to the Rockies shot into the top 10 at number five, according to the Economist Intelligence Unit.
CHARLY TRIBALLEAU/AFP/AFP/Getty Images
Osaka, Japan: Japan's second city (though it still has 19 million inhabitants) was ranked fourth for livability.
SAEED KHAN/AFP/AFP/Getty Images
Sydney, Australia: It's the most popular city in Australia for visitors, and it's not bad for residents either, having been named the third most livable city for 2019.
Museums Victoria
Melbourne, Australia. It had a seven-year run as the world's most livable city, but last year Melbourne was knocked down to second place, where it remains this year
Christian Stemper/WienTourismus
Vienna, Austria: For the second year running, the Austrian capital has been named the world's most livable city by The Economist Intelligence Unit. One resident said moving here taught her "how to live."

Honolulu was the top ranked US city at 22, with Atlanta, Pittsburgh, Seattle and Washington, DC in the top 40. Chicago was rated 41st.

London and New York ranked 48 and 58 respectively. Both were rated highly for culture but were brought down by their lower scores for infrastructure and stability, with a higher risk of crime and terrorism.

Paris’ stability rating also took a tumble thanks to the “gilet jaunes” anti-government protests. It fell six places from last year’s ranking to 26.

“Conflict and economic crisis define the cities that have struggled in our index over the past year,” The Economist Intelligence Unit report says.

Singapore came in at number 40, and Dubai at 70. Hong Kong was ranked 38 – the listings were compiled before the recent political upheaval. Cairo and New Delhi were downgraded due to environmental issues such as poor air quality and inadequate water provision.

Damascus, in Syria, was judged the world’s least livable city, followed by Lagos, Nigeria, and Dhaka, Bangladesh. The Venezuelan capital Caracas was rated the tenth least livable city.

Karachi, Tripoli and Harare also featured in the bottom 10.

The world’s most livable cities 2019

1. Vienna, Austria

2. Melbourne, Australia

3. Sydney, Australia

4. Osaka, Japan

5. Calgary, Canada

6. Vancouver, Canada

7. Toronto, Canada

7. Tokyo, Japan

9. Copenhagen, Denmark

10. Adelaide, Australia

The world’s least livable cities 2019

1. Damascus, Syria

2. Lagos, Nigeria

3. Dhaka, Bangladesh

4. Tripoli, Libya

5. Karachi, Pakistan

6. Port Moresby, Papua New Guinea

7. Harare, Zimbabwe

8. Douala, Cameroon

9. Algiers, Algeria

10. Caracas, Venezuela