Rockville has made WalletHub’s annual list of Best Small Cities in America for 2019.

For the rankings, WalletHub compared 1,268 cities for affordability, economic health, education and health, quality of life, and safety. Rockville’s total score was 64.55. The city placed in the 85th percentile, ranking highly in the categories of education and health (62nd), quality of life (83rd) and safety (29th).

Cities selected by WalletHub had population sizes between 25,000 and 100,000. Comparisons were based on 42 key indicators of livability, from housing costs and school-system quality to restaurants per capita.

In February, WalletHub ranked Rockville ninth overall and fourth among small cities in the U.S. for ethnic diversity.

Data used for the ranking were collected from the U.S. Census Bureau, Bureau of Labor Statistics, Federal Bureau of Investigation, Areavibes, TransUnion, TripAdvisor, RealtyTrac, County Health Rankings, Yelp and WalletHub research.