Convert KML to SVG
Turn KML 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 KML files on the dialor turn it to pick what to do
A KML map drawn as an SVG picture.Polygons, lines and points on a white background, each layer in its own color.
What you get
One SVG file with a picture of the map. It is 1024 pixels wide, unless that would make it taller than 4096, on a white background.
Polygons are lightly filled and outlined. Lines are drawn as lines and points as dots. Each layer gets its own color, so you can tell the layers apart.
How the map is drawn
Longitude and latitude are drawn in Web Mercator, the projection web maps show. Coordinates in any other form are drawn as they are.
Shapes are simplified to half a pixel, so very fine detail in a path or an outline may be smoothed.
What is left out
Attributes and labels are not drawn, so names and descriptions from the placemarks do not appear. The styles inside the KML file are not used either, and the layer colors are chosen for you. No base map is drawn, so there are no streets, coastlines or satellite images behind the shapes.
If you want to shrink the result afterwards, you can compress SVG.
KML and SVG.What each format is.
The formats
KML
Placemarks, paths and polygons for Google Earth.
- Extensions
- .kml
- MIME type
- application
/vnd .google -earth .kml +xml - Kind
- Text and data
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 KML to SVG conversion through the API, for your app or your agent.
$ cv convert report.kml report.svg$ cv convert report.kml report.svgQuestions.What people ask about KML to SVG.
No. The shapes are drawn, but the file's own styles are not used and there is no base map behind them.
No. Labels and attributes are not drawn.
It is 1024 pixels wide, unless that would make it taller than 4096.
Yes. Longitude and latitude are drawn in Web Mercator, and other coordinates are drawn as they are.