GeoJSON to HTML Map Converter

Turn a GeoJSON file into one standalone HTML map — points become clickable markers, lines become paths, and polygons become colored areas with translucency. The exported file inlines the Leaflet engine, styles, and all features, so it double-clicks open and works offline with zero external requests. Ideal for GIS exports, QGIS work, survey files, and developer test data. Everything runs locally; your data is never uploaded.

What Properties Should My GeoJSON Include?

GeoJSON features are self-describing: their geometry defines the shape and their properties object holds your data. Geometry types are color-coded automatically, so properties are entirely up to you.

Property / partRoleRequired?
geometryAny of Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon. Coordinates use [longitude, latitude] order.✅ Yes
properties.name or properties.titleHover labelOptional
any other keys in propertiesShown in the click popup (up to 12 per feature)Optional

Download the template above (the "Download GEOJSON template" button) and replace the sample features with your own.

How to Convert GeoJSON to an HTML Map

  1. Drop your .geojson file — FeatureCollection, single Feature, and bare Geometry objects all work. You can also paste the JSON text directly.
  2. Check the feature summary — the status bar lists how many points, lines, and polygons your file contains. The preview table shows the first 30 features and their properties. More than 1,000 features is fine for preview; the free export takes the first 1,000.
  3. Preview the map — points render as colored circle markers, lines as polylines, and polygons as translucent fills. The map auto-frames all features.
  4. Click any feature — a popup shows its properties, and features with a name or title property get a hover tooltip.
  5. Pick a basemap — "Offline (no basemap)" keeps the file fully self-contained; OSM street tiles or satellite imagery are available for online viewing.
  6. Download single HTML — one .html file containing everything. Double-click it, email it, or serve it from any static host.

Features

FAQ

My coordinates look wrong — flipped or mirrored. What happened?

GeoJSON uses [longitude, latitude] order, while most desktop GIS and databases show latitude first. A point at [-122.41, 37.77] is San Francisco; the same numbers written as [37.77, -122.41] point somewhere in the middle of the ocean. Check your source export — QGIS, ogr2ogr, and Turf.js all write correct GeoJSON.

Can it handle MultiPolygon and nested coordinates?

Yes. MultiPolygon coordinates are arrays of ring arrays, and Leaflet handles the nesting natively. Something like a state with island polygons renders every ring correctly in one layer.

Do I need to specify a coordinate reference system (CRS)?

No — GeoJSON is always WGS84 (EPSG:4326) with unprojected longitude/latitude. If your data is in UTM or State Plane, convert it to WGS84 before uploading. ogr2ogr — or the "Export" → "Save As…" dialog in QGIS — converts projections easily.

What happens to my feature properties?

They are fully preserved and inlined in the exported file. Clicking a feature shows up to 12 of them in a popup (name and title get special treatment as labels). Nothing gets stripped, aggregated, or transferred anywhere.

How large can my GeoJSON be?

Preview everything your browser can handle. The free export includes the first 1,000 features; the file stays a single HTML, so even large exports just make a bigger file — no size cap server-side.

I have WKT or shapefiles — can you help?

This tool takes GeoJSON specifically. Convert WKT with ogr2ogr -f GeoJSON (or the geojson.io-style editors), and shapefiles become GeoJSON with a one-line ogr2ogr -f GeoJSON output.geojson input.shp command.