Convert TOPOJSON to SVG

Turn TOPOJSON files into SVG. A picture of the map as SVG, 1024 pixels wide unless it would be taller than 4096, on white: polygons lightly filled and outlined, lines drawn and points as dots, each layer in its own color.

Converted in an isolated sandbox on our serversDeleted after 24 hours

Drop TOPOJSON files on the dialor turn it to pick what to do

A TopoJSON map as a plain SVG picture.Polygons, lines and points are drawn on white, each layer in its own color.

  1. What you get

    One SVG picture of the map, 1024 pixels wide unless that would make it taller than 4096. The background is white.

    Polygons are lightly filled and outlined. Lines are drawn as lines, and points are drawn as dots. Each layer gets its own color, so you can tell the layers apart.

  2. How the map is drawn

    Longitude and latitude are drawn in Web Mercator, as web maps show them. Other coordinates are drawn as they are.

    Shapes are simplified to half a pixel, so very fine detail in the borders is not kept.

  3. What is left out

    Attributes and labels are not drawn, so names and other properties from the file do not appear on the picture. The file's own styles are ignored, and no base map is drawn under the shapes.

TOPOJSON and SVG.What each format is.

The formats

From · TOPOJSON

TopoJSON

TopoJSON, GeoJSON's compact cousin that shares borders between shapes, as D3 maps use it.

Extensions
.topojson
MIME type
application/topo+json
Kind
Text and data
To · SVG

SVG

Scalable vector graphics in XML. Logos, icons and diagrams that stay sharp at any size.

Extensions
.svg .svgz
MIME type
image/svg+xml
Kind
Images

In your code.The same TOPOJSON to SVG conversion through the API, for your app or your agent.

terminal
$ cv convert report.topojson report.svg
$ cv convert report.topojson report.svg

Questions.What people ask about TOPOJSON to SVG.

01OF 04

It is 1024 pixels wide. If that would make it taller than 4096, the size is adjusted so it is not.

Yes. Each layer is drawn in its own color.

No. Attributes and labels are not drawn, so the picture holds shapes only.

No. A base map is not drawn. The shapes sit on a white background.

More conversions.Other ways in and out of TOPOJSON and SVG.