GeoJSON to TopoJSON Converter

Convert GeoJSON to TopoJSON to shrink file size via shared arcs

Ad placeholder (leaderboard)

GeoJSON to TopoJSON Converter turns a GeoJSON file into the more compact TopoJSON format. TopoJSON encodes geometry as topology — shared boundaries are stored once as arcs and referenced by every shape that touches them — which removes the coordinate duplication that bloats GeoJSON. Paste your data, pick a quantization level, and get back a valid TopoJSON object with a reported size reduction, all without leaving your browser.

How it works

The converter runs three stages that mirror the TopoJSON specification:

  1. Quantization. Every coordinate is mapped from its geographic range onto an integer grid of quantization × quantization cells. The mapping is stored in a transform object with scale and translate so the original values can be reconstructed.
  2. Arc extraction. Each ring and line is broken into arcs. The tool deduplicates identical arc coordinate sequences so a border shared by two polygons becomes one entry in the arcs array, referenced by index from both features.
  3. Delta encoding. Within each arc, only the first point is absolute; every following point stores the difference from the previous one. After quantization these deltas are small integers, which is what makes TopoJSON compress so well.

Tips and notes

Higher quantization (for example 1e5) preserves fine detail at the cost of larger numbers; lower values (like 1e3) compress harder but visibly coarsen boundaries. For maps that share long borders — administrative regions, country outlines — the savings are largest because those boundaries collapse to single arcs. The output is a standard TopoJSON topology, so you can decode it later with the companion TopoJSON to GeoJSON tool.

Ad placeholder (rectangle)