Source: Community Spirit Index
Denmark's Copenhagen is in the 10th spot on the list of friendliest cities.
Ireland's Dublin holds ninth place in the Community Spirit Index.
The index ranked San Francisco as the eighth-friendliest city in the world.
Melbourne, the capital of the Australian state of Victoria, is the seventh-friendliest city in the world.
The Community Spirit Index ranked Montreal, Canada, as the sixth most friendly city.
Making the top five list, the US's New York is the fifth-friendliest city in the world.
Fourth on the list is Manchester, England, with an overall score of 7.72 out of 10. The city has a welcoming atmosphere.
In third place is Edinburgh, UK, with an overall friendliness score of 7.78 out of 10.
With a safety score of 65.87 out of 100 and an overall friendliness score of 7.97 out of 10, Sydney is the second most friendly city in the world.
Taking the prize as the friendliest city in the world is Toronto. It also registered an overall friendliness score of 7.97 out of 10 but left Sydney behind in the other metrics.