Free · No signup · GDAL-powered

Convert GeoJSON to GML Online — Free & Instant

Converting GeoJSON to GML bridges modern web mapping formats with the OGC standards world used by government data portals, WFS services, and enterprise GIS systems. GML is required for EU INSPIRE compliance and is the native output of WFS endpoints. Maparz converts your GeoJSON to valid GML using GDAL.

Advertisement (728×90)

File converter

When to convert GeoJSON to GML

  • Submitting web-sourced GeoJSON data to government portals requiring GML
  • Converting GeoJSON API responses to GML for WFS service delivery
  • Preparing GeoJSON datasets for INSPIRE-compliant publication

How to convert GeoJSON to GML

  1. 1

    Upload your GeoJSON

    Drop your .geojson or .json file on the upload zone.

  2. 2

    Select GML

    Click GML in the format panel.

  3. 3

    Download the GML

    Open in QGIS, load into GeoServer, or submit to a GML-accepting portal.

About GeoJSON

GeoJSON is an open standard geospatial data format based on JSON, defined in RFC 7946. It supports all geometry types (Point, LineString, Polygon, MultiPolygon, etc.) and arbitrary properties per feature. GeoJSON is the preferred format for web mapping because browsers can parse it natively and libraries like Leaflet, Mapbox GL, and D3 consume it directly. GitHub renders GeoJSON files on a map automatically. It uses WGS 84 (EPSG:4326) as its coordinate reference system.

Strengths

  • +Native browser support (JSON)
  • +Human-readable and editable
  • +Single file — easy to share
  • +First-class support in web mapping libraries

About GML

Geography Markup Language (GML) is an XML-based OGC standard for encoding geographic features. It is the mandatory format for the EU INSPIRE directive and is commonly used in Web Feature Services (WFS) to deliver geospatial data over the web. GML files are highly interoperable across GIS platforms and are natively supported by GDAL, QGIS, ArcGIS, and GeoServer. GML can represent complex geometries, coordinate reference systems, and rich attribute schemas, making it the format of choice for authoritative government and infrastructure datasets.

Strengths

  • +OGC standard — maximum interoperability
  • +Mandatory for EU INSPIRE datasets
  • +Supports complex geometries and CRS metadata
  • +Native support in QGIS, ArcGIS, and GeoServer

Frequently asked questions

Q.Does the GML output preserve all GeoJSON properties?

Yes. All GeoJSON feature properties are preserved as GML attribute elements.

Q.What CRS does the output GML use?

GeoJSON uses WGS 84 (EPSG:4326), so the output GML will be in WGS 84 with appropriate srsName attributes.

Related conversions