Online Tool Store Online Tool Store

Travelling Salesman Visualizer

Plot city points, visualize route order, and compare a nearest-neighbor or brute-force result for classic traveling salesman scenarios.

This works right here on your device — nothing gets sent out.

Route comparison

Compare a nearest-neighbor route with the optimal route for up to 10 cities.

How it works

  1. Enter at least three city names and numeric coordinates.
  2. Compare the nearest-neighbor route with an exact search for the shortest closed loop.
  3. Use the distances as coordinate units; the tool uses straight-line distance.

FAQ

How many cities can I compare?

Enter between 3 and 10 cities. The exact search checks every ordering, so the limit keeps the calculation responsive.

Is the nearest-neighbor route always optimal?

No. It is a quick heuristic; the exact search finds the shortest closed loop for the entered points.

What do the coordinates represent?

They can be any consistent planar units. Distances use straight-line geometry and do not account for roads or travel time.

How we compare

FeatureOnline Tool StoreManual route planningSpreadsheet distance calculations
Shows heuristic and exact routesYesManualManual setup
Works with custom coordinatesYesYesYes
Road travel timesNoNoNo

Use it to explore small, planar traveling-salesman examples; it does not model real road networks.

Explore related tools

Embed this tool

Paste this on your own site — it stays free, and every file still stays in your visitor's browser, not yours or ours.