Locations from Ullapool to St Andrews and Nairn to Portpatrick have featured in the list, which is compiled annually by consumer magazine Which?.
Each place is rated by holidaymakers on a number of features, including scenery, its seafront or pier, beaches, peace and quiet, tourist attractions, shopping, food and drink, parking and value for money.
Scotland’s top-rated coastal destination is described as “wonderfully scenic”, gaining five stars in the seafront, beaches, scenery and tourist attractions categories and four stars for shopping and food and drink.
To give you a clue, this historical university town has roots stretching back to medieval times, is known as the ‘home of golf’, boasts the ruins of an ancient castle and cathedral and is blessed with the sort of golden sandy beaches you find in the tropics.
Best in Scotland
As well as the best in Scotland, the east-coast beauty spot clinched runner up across the whole of the UK.
Nationwide, it wasn’t just the most famous seaside destinations which gained the highest overall scores from the judges.
The poll saw many lesser-known destinations beating more popular tourist hotspots to the top of the league.
Coastal gems from all four nations were featured in the survey, with Bamburgh in Northumberland crowned outright winner with a score of 86 per cent.
Portmeirion in the Gwynedd region of Wales came in at second place with 83 per cent, followed by the historical Fife town of St Andrew in third with 82 per cent.
Portstewart in Derry, the favourite in Northern Ireland, came in at 17th place in the chart with 76 per cent.
Something for everyone
Rory Boland, editor of Which? Travel, said: “From wild, unspoilt stretches of remote coastline to charming traditional bucket-and-spade resorts, the UK’s seaside towns offer something for everyone.
“While you may have your own favourite coastal spot, this year’s survey shows that it’s worth looking beyond the most famous resorts this summer, to the lesser-visited hidden gems in every corner of the UK.”
More than 4,700 people took part in the latest Which? survey, reporting their experiences of UK seaside towns in the last year.

9. Tobermory, Isle of Mull
With its colourful houses lining the waterfront and fame as the location of a popular children's TV show, Tobermory is easily recognisable -- and people love the scenery, giving it five stars and a total rating of 71% Photo: e55evu

10. Ullapool, Highland
Tourists were bowled over by the scenery in Ullapool, nestled on the northwest coast in Wester Ross, bestowing it with five stars and an overall score of 69% Photo: oceanwhisper

11. Dunbar, East Lothian
Dunbar, birthplace of famous naturalist John Muir, achieved four stars in a range of categories - including peace and quiet and value for money Photo: Pixabay

12. Largs, Ayrshire
With its Victorian promenade and marina, Largs remains a popular seaside resort 'doon the watter' on the Clyde - it's also the departure point for ferries to the Isle of Cumbrae and a stop-off point for the famous Waverley paddle steamer, and got four stars for scenery Photo: Jeff J Mitchell

