Five of the top 20 communities to live in nationwide are in eastern Massachusetts, according to a recent survey from WalletHub.

WalletHub’s analysts compared more than 1,200 U.S. cities with populations between 25,000 and 100,000 across 33 key indicators of livability.

Lexington was named the second-best small U.S. city in which to live, followed by Milton (No. 4), Needham (No. 8), Newton (No. 11) and Melrose (No. 12).

Five Massachusetts towns were also ranked among the highest insured – Arlington, Needham and Wellesley tied for the No. 1 spot – and Lexington and Milton tied with Los Altos, California for the No. 4 spot.

Needham also ranked as No. 4 for the lowest crime rate.

Five Massachusetts Cities Named Among WalletHub’s Top 20 Small Cities To Live

by Jim Morrison time to read: <1 min