GML SHP
File conversion

Convert GML to SHP

QUICK ANSWER
Is it possible to convert GML to SHP?
Yes - GML converts to SHP.

Load the .gml in QGIS, right-click the layer, and choose Export > Save Features As with ESRI Shapefile selected. The output is always multiple files (.shp, .shx, .dbf, and .prj) - keep them together or the Shapefile will be incomplete.

1 programs
Also to SHP: TAB · MIF · OSM

On this page

Tested on macOS, Windows & Linux
Last verified Oct 2026

More free converters

HEIC, PNG, WEBP, MP3 and more - every tool here is free.

Open the toolbox

Why convert GML to SHP?

GML (Geography Markup Language) is a verbose XML interchange format that many GIS tools support but can be slow to query. Shapefiles are the most widely accepted GIS exchange format, supported by virtually every GIS application, CAD package, and mapping service. Converting GML to .shp makes the data faster to open and compatible with software that lacks a GML driver.

How to convert GML to SHP

QGIS OPEN-SOURCE

Add the .gml as a vector layer, right-click in the Layers panel, choose Export > Save Features As, set Format to ESRI Shapefile, and click OK - QGIS writes the .shp, .shx, .dbf, and .prj files.

ogr2ogr OPEN-SOURCE

Run ogr2ogr -f "ESRI Shapefile" output.shp input.gml on the command line; GDAL is included with QGIS or installable via OSGeo4W.

Programs that convert GML

MyGeodata Cloud

About these formats

Quality & what to watch

  • A Shapefile is always multiple files - at minimum .shp (geometry), .shx (index), and .dbf (attributes); keep the .prj file too so the coordinate reference system is not lost.
  • The DBF format limits attribute field names to 10 characters - longer GML field names will be truncated automatically.
  • The Shapefile format supports only one geometry type per file; multi-geometry GML layers must be split during export.

Frequently asked questions

Why does the conversion produce several files instead of one?
Shapefile is a multi-file format by design: .shp holds geometry, .shx is the spatial index, .dbf holds attributes, and .prj stores the coordinate reference system.
Will all GML attribute field names survive in the Shapefile?
Attribute values are preserved, but field names longer than 10 characters are truncated to fit the DBF format limit.
Can I reproject the data during conversion?
Yes - in QGIS's Save Features As dialog, select a different output CRS before saving to reproject at the same time.
What if my GML has multiple feature layers?
Each layer must be exported to a separate Shapefile; the format does not support multiple geometry layers in a single file.