Live Online Convertergml → geojson

GML to GeoJSON Converter

Converts a GML file to GeoJSON with GDAL's ogr2ogr, one GeoJSON per feature type.

Upload a .gml file. Each feature type becomes a layer; one layer gives one .geojson, several give a ZIP with one .geojson per feature type. The coordinate system is kept.

Drag a file here to convert, or select file

Accepted: .gml · max. 50 MB

Direct upload to the GDAL worker (Fly.io, Frankfurt)Files are deleted after the conversion

What the converter does

  • GDAL's GML driver reads each feature type as a layer and derives the fields from the file itself; an .xsd is not needed.
  • The coordinate system from srsName is kept (in the test EPSG:25832).
  • One layer gives one .geojson file; several layers give a ZIP with one .geojson per layer.
  • Nothing is reprojected: the coordinates stay in the coordinate system of the source. GDAL records the coordinate system in the GeoJSON's crs member (CRS84 for WGS84).
  • GDAL adds the field gml_id with the feature ids.
  • The report below the upload shows layers and features read and written, skipped layers with the reason, GDAL's warnings and the exact commands.

GDAL command the worker runs

sh — gdal
$ogr2ogr -f GeoJSON converted.geojson input.gml Gebaeude

Gebaeude stands for the only feature type. With several feature types the worker runs one command per type, e.g. ogr2ogr -f GeoJSON layers/Baum.geojson input.gml Baum. For ALKIS NAS files use the ALKIS NAS converter.

Tested with

Test fileResult
GML with 2 Gebaeude polygons and 1 Baum point in EPSG:25832ZIP with Gebaeude.geojson (2) and Baum.geojson (1); 3 of 3; EPSG:25832 kept

Tested on 24 Sep 2026 with the worker code of this site and GDAL 3.10.3 (conda-forge build on Windows). The worker image runs the Debian build of the same GDAL version; the live worker was not part of these tests.

Limits

  • Upload limit: 50 MB per file.
  • Only .gml is accepted; ALKIS NAS (.xml) has its own converter.
  • Each GDAL step may run for up to 240 seconds; a longer run is stopped with an error message.

Frequently Asked Questions

What happens to my file?

Your browser uploads it directly to the GDAL worker on Fly.io (region Frankfurt). The worker converts it in a temporary folder and deletes the folder after sending the result, or immediately if the conversion fails. Files are not stored permanently.

Related conversions