Convert OSM to SVG

Turn OSM 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 OSM files on the dialor turn it to pick what to do

A map of your OSM data as an SVG picture.Shapes, lines and points 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, and points are dots. Each layer has its own color.

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

  2. What is drawn

    Tagged nodes become points. Ways become lines, or polygons when they are closed and tagged as areas. Route and multipolygon relations become multilines and multipolygons.

    Shapes are simplified to half a pixel. Common tags such as name, highway and building become columns, and the other tags are kept as JSON in other_tags.

  3. What is left out

    The picture has no attributes, no labels, no styles from the file itself and no base map. It shows the shapes only.

    Untagged nodes, other relations, versions and authors are dropped.

OSM and SVG.What each format is.

The formats

From · OSM

OpenStreetMap Data

OpenStreetMap nodes, ways and relations with their tags, as .osm XML or the smaller .osm.pbf.

Extensions
.osm .osm.pbf
MIME type
application/vnd.openstreetmap.data+xml
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 OSM to SVG conversion through the API, for your app or your agent.

terminal
$ cv convert report.osm report.svg
$ cv convert report.osm report.svg

Questions.What people ask about OSM to SVG.

01OF 04

No. Labels are not drawn. The picture shows shapes only.

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

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

Yes. OSM data comes as .osm XML or the smaller .osm.pbf. For more options, see every OSM conversion.

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