Open Beta — all 133 formats free, no limits Learn more

OSM map: get Shapefile instead of converting GML → Shapefile

Looking to turn a map from GML into Shapefile? If your data comes from OpenStreetMap, you do not need an intermediate GML file: osm2cdr builds the map straight from the OSM source and hands you a ready Shapefile. That is faster and more accurate than the chain "download GML → upload to a converter → get Shapefile": you pick an area on the map, choose the Shapefile format and download the result with up-to-date OSM data and layers for buildings, roads, water and features.

Example OpenStreetMap map in Shapefile format
Example OSM map export to Shapefile

How GML differs from Shapefile

FormatExtensionTypePurpose
GML.gmlGISGIS data exchange, WFS services, government GIS standards, INSPIRE
Shapefile.shpGISArcGIS, QGIS, spatial analysis, cartography

How to get Shapefile on osm2cdr

  1. 1Select an area on the map on the osm2cdr home page
  2. 2Choose the Shapefile format and, if needed, a style and CRS
  3. 3Click Export and download the ready Shapefile file

Shapefile format properties

Extension.shp
TypeGIS
PurposeArcGIS, QGIS, spatial analysis, cartography

When you need Shapefile

The Shapefile format is handy when you need to open the result in a dedicated program and keep working with the map: editing, printing, analysing or embedding it in a project. osm2cdr delivers Shapefile split into layers with up-to-date OpenStreetMap data, so the file is ready to use right after download.

More about the Shapefile format

What changes when going GML → Shapefile

Going GML → Shapefile preserves both geometry and attributes; only the container model changes — a single file versus a set, the supported field types and the format limits. Such a switch is usually made for compatibility with a specific tool. osm2cdr delivers Shapefile straight from OpenStreetMap data, with no intermediate GML file.

If you have your own GML file (not from OSM)

osm2cdr does not accept or convert third-party GML files: the service works only with OpenStreetMap data. If you already have your own GML file that is not from OSM, convert it to Shapefile with third-party tools: GDAL/ogr2ogr from the command line or QGIS — open the GML and save the layer as Shapefile. It is free and runs locally, with no cloud upload.

FAQ: GML → Shapefile

Can I upload my GML file?

Not yet: we don't support uploading GML files at the moment, so convert your file to Shapefile with ogr2ogr or QGIS. And if your data comes from OpenStreetMap, you don't need a file at all — osm2cdr exports the map straight into Shapefile.

Is it free?

Yes, exporting an OpenStreetMap map to Shapefile on osm2cdr is free. Select an area, the Shapefile format and download the result.

Which programs open Shapefile?

The Shapefile format opens in dedicated programs for its category. See the Shapefile format page for the full list and details.

Why is this better than an online GML → Shapefile converter?

An online converter caps the result quality at the quality of the source GML file. osm2cdr takes data from the OpenStreetMap source and builds Shapefile with correct layers directly — with no loss on an intermediate GML file.

Related conversions