GML OSM
File conversion

Convert GML to OSM

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

Use MyGeodata Cloud to convert online, or load the .gml in QGIS and use Export > Save Features As with OpenStreetMap XML selected. OSM requires coordinates in WGS84 (EPSG:4326) and GML attributes do not map to OSM tags automatically - manual tag remapping is needed before any OpenStreetMap upload.

1 programs
Also to OSM: NM7

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 OSM?

GML (Geography Markup Language) is a general OGC XML format for geographic features, introduced in 2000. The OSM format is the native exchange format for OpenStreetMap data, using a strict key-value tag schema and requiring WGS84 coordinates. People convert GML to .osm when they want to import spatial features into JOSM, validate them against OSM schema, or prepare them for contribution to OpenStreetMap.

How to convert GML to OSM

QGIS OPEN-SOURCE

Add the .gml as a vector layer, right-click in the Layers panel, choose Export > Save Features As, select OpenStreetMap XML as the format, and save.

ogr2ogr OPEN-SOURCE

Run ogr2ogr -f OSM output.osm input.gml on the command line; GDAL is included with QGIS or installable via OSGeo4W on Windows.

Programs that convert GML

MyGeodata Cloud

About these formats

Quality & what to watch

  • OSM only stores coordinates in WGS84 (EPSG:4326) - if your GML uses a projected CRS, it must be reprojected during conversion.
  • GML attribute names do not map automatically to OSM tags; field remapping is needed in QGIS or a subsequent JOSM editing pass.
  • Inspect the resulting .osm file in JOSM and clean the tags before any upload to OpenStreetMap.

Frequently asked questions

Can I upload the converted .osm file directly to OpenStreetMap?
Not immediately - attribute tags must be reviewed and remapped to OSM conventions first; use JOSM to inspect and edit before uploading.
What if my GML uses a national grid coordinate system?
The conversion must reproject to EPSG:4326; QGIS can do this during the Save Features As step by selecting a different output CRS.
Does JOSM open .osm files?
Yes - JOSM is the standard desktop editor for OpenStreetMap XML and the recommended tool for reviewing and cleaning converted data.