GML to GeoJSON

Convert GML files to GeoJSON format

🔒 All processing happens locally in your browser. Your files never leave your device.

About GML

GML (Geography Markup Language) is an XML-based OGC standard for encoding and transporting geographic information. It is the exchange format used by many WFS (Web Feature Service) endpoints and is required for data submission to some national spatial data infrastructures.

You might convert from GML when the data was downloaded from a WFS service and needs to be analysed in a GIS that prefers GeoJSON or Shapefile, or when you want to load the features into a web map without writing a custom XML parser.

Frequently asked questions

Why is my GML file so large?

GML is verbose XML — a dataset with many features will produce a large text file. Converting to GeoJSON reduces size somewhat; Shapefile or GeoPackage typically produce the smallest files.

Does GML support complex feature schemas?

GML supports complex, nested XML schemas. The converter flattens nested attributes into a simple key-value structure in the output. Complex nested schemas may lose some structure during conversion.

What GML versions are supported?

GML 2 and GML 3 (including 3.1.1 and 3.2) are supported. GML 3.2 is the most common version used by modern WFS services.