KML to TopoJSON Converter

Compact KML polygon data for shipping to a browser-side D3 or custom map.

Convert KML to TopoJSON now

Common issues converting KML to TopoJSON

Frequently asked questions

Why TopoJSON instead of GeoJSON?

Smaller file size for dense polygon networks — typically 70–90%. That matters when shipping boundary maps to the browser in a page bundle.

Is this conversion lossy?

Quantization rounds coordinates to a grid. For country/state/county maps rendered above street level, the loss is imperceptible.

What libraries render the output?

D3-geo directly. Leaflet, Mapbox, and OpenLayers need topojson-client to expand to GeoJSON first (<10KB gzipped).

Should I topologize a KML of points?

No — TopoJSON's savings come from shared boundaries between polygons. Pure point datasets should stay as GeoJSON.

Related conversions