OSM XML 🗺

OpenStreetMap XML (.osm)

Open Beta
.osm · application/x-openstreetmap+xml

OSM XML is the native text format of OpenStreetMap, holding nodes, ways, and relations with tags since 2004. It is human-readable, opens in Notepad, and parses with any XML parser, and in the OSM world every tool understands it: JOSM, osmium, osm2pgsql, GDAL. Our exporter assembles a valid OSM API 0.6 document from the selected OSM layers: points become node elements, lines become way elements, polygons become closed ways (first node equals last), and tags carry over as key-value pairs. The file is UTF-8; multiple layers are packed into a ZIP. Honestly: we assign negative ids to nodes and ways — a marker for «data not from the live database» — so the file is handy for viewing in JOSM, importing into PostGIS, and converting through GDAL, but is not meant for uploading straight back into OSM.

Export OSM XML now ✨ Open Beta — free, no limits

Key Features

OSM API 0.6 structure: node, way, closed ways for polygons
Tags carry over as key-value pairs losslessly
Negative ids — a marker for non-uploaded data
UTF-8 encoding understood by every OSM tool
Single layer — a .osm file, multiple layers — a ZIP archive

What Program Opens OSM XML Files

The following programs and applications can open, edit, and work with OpenStreetMap XML (.osm) (.osm) files exported from OSM2CDR:

💻JOSM 💻osmium-tool 💻osm2pgsql 🌎QGIS (GDAL OSM driver) 💻Vespucci

Format specifications

Who Uses OSM XML Maps

🏗
Viewing and checking an OSM selection in the JOSM editor
💻
Importing data into PostGIS via osm2pgsql for analytics
📊
Converting to any format through GDAL (ogr2ogr) or osmium
🎨
Archiving and sharing a small extract in a human-readable form

How to Export OSM XML

1
Select area
Draw a rectangle or polygon on the interactive map at osm2cdr
2
Choose OSM XML
Select OpenStreetMap XML (.osm) from the list of 127 available export formats
3
Export
Click Export and receive your .osm file in 1-5 minutes
4
Download
Download the ready OSM XML file and open it in JOSM

Popular maps in OSM XML

Free

Get OpenStreetMap XML (.osm) map exports

Download professional OSM XML maps from OpenStreetMap. Instant generation, any area.

Free / export
Export OSM XML now →

Frequently Asked Questions

Can I upload this file back into OpenStreetMap?
How does OSM XML differ from OSM PBF?
Are relations and multipolygons preserved?
Can I open the result in QGIS?

Related Formats

Related Articles