SVG to GeoJSON Converter

Convert SVG files to GeoJSON format. Transform vector graphics into geographic features for web mapping, Leaflet, Mapbox, and OpenLayers applications.

Drop SVG, KML or GeoJSON maps here or click to browse

Local processing · Fast georeferencing & simplification

How to Use

1

Upload SVG

Upload your SVG map or geographic artwork.

2

Set bounding box

Enter the lat/lon bounding box for the geographic area the SVG represents.

3

Download GeoJSON

Download the .geojson file for use in Leaflet, Mapbox, or any web mapping library.

SVG to GeoJSON: Web Mapping Ready Conversion

GeoJSON is the standard format for geographic data in web applications. Leaflet, Mapbox GL JS, OpenLayers, Deck.gl, and Google Maps all support GeoJSON natively. Converting SVG to GeoJSON allows you to publish vector artwork as interactive geographic layers on the web.

The converter maps SVG shapes to GeoJSON geometry types: SVG paths and polylines become GeoJSON LineStrings or Polygons, depending on whether they are closed. Each SVG element becomes a GeoJSON Feature with its id and class attributes preserved as properties.

Real-World Examples & Use Cases

Interactive Web Maps

Convert an SVG regional boundary map to GeoJSON for display on a Leaflet web map.

Data Visualisation

Convert SVG zone boundaries to GeoJSON for use in D3.js geographic data visualisations.

Frequently Asked Questions

What is GeoJSON?
GeoJSON is a JSON-based format for encoding geographic data structures. It is the standard for web mapping APIs and is supported by Leaflet, Mapbox, OpenLayers, Deck.gl, and many more.
Can I use the GeoJSON directly in Leaflet?
Yes. GeoJSON can be loaded directly into Leaflet with L.geoJSON(), Mapbox with map.addSource(), and many other web mapping frameworks.
What CRS does GeoJSON use?
GeoJSON always uses WGS84 (EPSG:4326) — decimal degrees longitude and latitude. This converter outputs in WGS84.

Related Tools

Explore other tools in this category.

Looking for something else?