Convert GML to GeoJSON Online — Free & Instant
GML files from WFS services, INSPIRE portals, and government data downloads need to be converted to GeoJSON for use in web maps, JavaScript applications, and modern GIS tools. GeoJSON is the native format of the web — consumed directly by Leaflet, Mapbox GL JS, Turf.js, and GitHub. Maparz converts your GML to GeoJSON instantly using GDAL.
File converter
When to convert GML to GeoJSON
- Converting WFS GML responses to GeoJSON for web mapping applications
- Loading INSPIRE-compliant GML datasets into Leaflet or Mapbox GL JS
- Converting government GML downloads to GeoJSON for GitHub rendering
- Transforming WFS data for use with Turf.js or other GeoJSON tools
How to convert GML to GeoJSON
- 1
Upload your GML
Drop your .gml file on the upload zone.
- 2
Select GeoJSON
Click GeoJSON in the format selector.
- 3
Download and use
Load into Leaflet, Mapbox GL JS, or upload to GitHub for automatic map rendering.
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
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
Frequently asked questions
Q.Where do GML files typically come from?
GML is the standard output of WFS (Web Feature Service) endpoints. Government open data portals, EU INSPIRE services, and national mapping agencies commonly distribute data as GML.
Q.Will all GML attributes be preserved?
Yes. All GML feature attributes are converted to GeoJSON feature properties.
Q.What CRS does the output GeoJSON use?
GeoJSON uses WGS 84 (EPSG:4326). Maparz reprojects your GML automatically if it uses a different CRS.