# Convert MapML to GeoJSON

> To convert MapML (Map Markup Language (MapML)) to GeoJSON (GeoJSON), upload the MapML data to the MyGeodata Cloud Converter, select GeoJSON as the output format and download the result — online, without installing GIS software. The coordinates are reprojected to WGS 84 (per spec) (EPSG:4326) automatically.

- Page: https://beta.mygeodata.cloud/converter/mapml-to-geojson
- Open the Converter: https://beta.mygeodata.cloud/tools/converter/?format=geojson
- Input: Map Markup Language (MapML) (MapML, .mapml)
- Output: GeoJSON (GeoJSON, .geojson, .json)

## What happens when you convert MapML to GeoJSON

- **Reprojected to WGS 84 (per spec) (EPSG:4326) automatically** — GeoJSON always uses WGS 84 (per spec) (EPSG:4326). The Converter recalculates the coordinates of your MapML data for you — from national grids, UTM zones or any of the 11,000+ supported coordinate systems.
- **One layer per GeoJSON file** — MapML can hold several layers, GeoJSON only one. Each layer is written to its own GeoJSON file, or you can merge the layers into one.
- **Attributes are carried over** — The attribute columns of your MapML data are written to GeoJSON. In the options you can choose which attributes to keep.

## Convert MapML to GeoJSON in 4 steps

1. **Upload your MapML data** — Drag and drop your MapML file into the Converter — or several files at once.
2. **Check the input** — The Converter detects layers, attributes and the coordinate system and shows an overview. If the coordinate system is missing, you can assign it.
3. **Choose GeoJSON and options** — Select GeoJSON as the output format. The data are reprojected to WGS 84 (per spec) (EPSG:4326) automatically. Optional settings let you pick layers, attributes and GeoJSON-specific options.
4. **Download the result** — See the price in credits before you start, run the conversion and download the GeoJSON result.

## MapML vs. GeoJSON — technical comparison

| | MapML | GeoJSON |
|---|---|---|
| Full name | Map Markup Language (MapML) | GeoJSON | 
| Data type | Vector · Web & JSON | Vector · Web & JSON | 
| File extension | .mapml | .geojson, .json | 
| Files | Single file | Single file | 
| Media type | text/mapml | application/json | 
| Geometry types | Point, LineString, Polygon | Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection | 
| Multiple layers | Yes | No | 
| Mixed geometry in a layer | Yes | Yes | 
| Attribute names | — | No length limit (UTF8) | 
| Coordinate system | Any (EPSG, ESRI, custom) | Always WGS 84 (per spec) (EPSG:4326) | 
| Converter support | Read & write | Read & write | 
| Typical software | GDAL/OGR, GeoServer, MapML.js, QGIS | QGIS, ArcGIS Pro, GDAL/OGR, FME, Global Mapper, Leaflet | 
| Specification | https://maps4html.org/MapML/spec/ | https://geojson.org/ | 

## What is MapML?

Map Markup Language (MapML) is a text-based markup for representing maps and map layers in a way that integrates with HTML. It is developed by the Maps for HTML Community Group at the W3C. Its specification is a community group draft rather than a formal W3C Recommendation. The goal is to let browsers and web pages display map layers declaratively, with tiles, images and vector features served as MapML documents.

A MapML document has a mapml root element with head and body sections. Vector data is encoded as map-feature elements. Each feature contains a map-geometry element with coordinates and a map-properties element holding attribute content, often as HTML. Points, lines and polygons can be mixed in one document. Coordinates refer to a declared projection, such as OSMTILE (Web Mercator), WGS84 or CBMTILE. Support in mainstream browsers currently relies on a JavaScript polyfill.

## What is GeoJSON?

GeoJSON is an open, text-based format for encoding vector geographic features in JSON. It was first published in 2008 by an informal group of developers and later standardised by the IETF as RFC 7946 in 2016. A file typically contains a FeatureCollection whose features each combine a geometry (Point, LineString, Polygon, their Multi variants or a GeometryCollection) with a free-form properties object.

GeoJSON is widely used for web mapping, APIs and data exchange because it is human-readable and supported by most GIS software and JavaScript mapping libraries. RFC 7946 requires WGS 84 longitude/latitude coordinates and removed the crs member of the 2008 specification, although some tools still write it. The format has no styling, no topology and no formal attribute schema. Its verbose text encoding also makes very large files slow to parse and memory-intensive to load.

## Free sample MapML files

- [Basemap (MapML)](https://beta.mygeodata.cloud/static/landing/samples/v1/mapml/st-helena-basemap.mapml) — Multi-layer basemap of Saint Helena: island outline, land cover, waterways, 100 m contours, roads, Jamestown buildings and places. MapML document (WGS 84 / OSMTILE extent) with one layer per feature class. (916.5 kB)

## Frequently asked questions

### How do I convert MapML to GeoJSON?

Open the Converter, drop your MapML files, check the detected layers and coordinate system, choose GeoJSON as the output and download the result. Everything runs in your browser — there is no software to install.

### Is the MapML to GeoJSON conversion free?

Everyone gets 3 free credits every 30 days and a small conversion costs from 1 credits, so occasional conversions are free. Bigger or frequent jobs are paid with credit packs (from $2.00) or a monthly plan (from $10.00).

### Which coordinate system will the GeoJSON file use?

GeoJSON always uses WGS 84 (per spec) (EPSG:4326), so your data are reprojected automatically. The original coordinate system of the MapML data is detected from the file or you can assign it.

### How large can my MapML files be?

Without an account you can upload up to 2 GB per file. Signed-in users with a verified e-mail can upload much larger datasets; big jobs run on scalable cloud workers.

### Is my data safe?

Files are transferred over HTTPS and processed in an isolated cloud environment. Without an account they are stored only temporarily and deleted automatically; with an account they stay in your private Data workspace until you delete them.

### Can I automate the MapML to GeoJSON conversion?

Yes. The same conversion is available through the GeoCzech API — send the MapML files with the output format "geojson" and download the GeoJSON result from a script or an ETL pipeline. API access is part of the Basic, Standard and Premium plans.

## Related conversions

- [MapML to CSV](https://beta.mygeodata.cloud/converter/mapml-to-csv)
- [MapML to DXF](https://beta.mygeodata.cloud/converter/mapml-to-dxf)
- [MapML to GeoPDF](https://beta.mygeodata.cloud/converter/mapml-to-geopdf)
- [MapML to GPKG](https://beta.mygeodata.cloud/converter/mapml-to-gpkg)
- [MapML to GPX](https://beta.mygeodata.cloud/converter/mapml-to-gpx)
- [MapML to KML](https://beta.mygeodata.cloud/converter/mapml-to-kml)
- [MapML to KMZ](https://beta.mygeodata.cloud/converter/mapml-to-kmz)
- [MapML to SHP](https://beta.mygeodata.cloud/converter/mapml-to-shp)
- [MapML to TopoJSON](https://beta.mygeodata.cloud/converter/mapml-to-topojson)
- [MapML to XLSX](https://beta.mygeodata.cloud/converter/mapml-to-xlsx)
- [MapML to DGN](https://beta.mygeodata.cloud/converter/mapml-to-dgn)
- [MapML to FGB](https://beta.mygeodata.cloud/converter/mapml-to-fgb)
- [KML to GeoJSON](https://beta.mygeodata.cloud/converter/kml-to-geojson)
- [SHP to GeoJSON](https://beta.mygeodata.cloud/converter/shp-to-geojson)
- [GeoPDF to GeoJSON](https://beta.mygeodata.cloud/converter/geopdf-to-geojson)
- [KMZ to GeoJSON](https://beta.mygeodata.cloud/converter/kmz-to-geojson)
- [SVG to GeoJSON](https://beta.mygeodata.cloud/converter/svg-to-geojson)
- [DWG to GeoJSON](https://beta.mygeodata.cloud/converter/dwg-to-geojson)
- [GPX to GeoJSON](https://beta.mygeodata.cloud/converter/gpx-to-geojson)
- [DXF to GeoJSON](https://beta.mygeodata.cloud/converter/dxf-to-geojson)
- [CSV to GeoJSON](https://beta.mygeodata.cloud/converter/csv-to-geojson)
- [GPKG to GeoJSON](https://beta.mygeodata.cloud/converter/gpkg-to-geojson)
- [AVCBIN to GeoJSON](https://beta.mygeodata.cloud/converter/avcbin-to-geojson)
- [XLS to GeoJSON](https://beta.mygeodata.cloud/converter/xls-to-geojson)

