THE FILE FIELD GUIDE
.osm

OpenStreetMap XML Data

Maps & GPS

OSM usually stores OpenStreetMap elements and tags in XML, not a rendered map. Copying it to a phone does not automatically create a navigation map.

Main use
Store nodes, ways and relations
Data type
Text data
All sections, questions and sources

Content reviewed: · Editor:Kai

Opening steps

Choose your environment or purpose to see its steps.

OSM-capable GIS/editor

Preserve the original and inspect a working copy in a compatible application.

  1. Check geographic extent and size.
  2. Load a copy with an OSM-capable tool.
  3. Inspect imported points, lines, areas and tags.
Inspect the received file and its requirements

Establish dependencies and settings before proceeding.

  1. Distinguish regional extracts from full datasets.
  2. Check date and required tags/relations.
  3. Check the target application’s conversion workflow.

Menu labels and support vary by app, OS and version. Preserve the original before making changes.

Troubleshooting by symptom

  • No image: use a GIS renderer.
  • Too large: obtain a regional extract.
  • Features missing: inspect related elements/tag interpretation.
  • Navigation device rejects it: use its required map format.

OSM → GeoPackage or another dataset

  1. Choose required elements/tags and use a supported conversion tool.
  2. Reopen the output and check it against the preservation points in this guide before handoff.

Simple tables do not preserve all relations, tags or history.

Road lines versus a routing network

Displaying roads does not mean a routing network has been built.

Source for these steps:OpenStreetMap · OSM XML / OpenStreetMap · OSM file formats

Worked example: checks before handoff

Example: inspect major/minor-road coverage after filtering a regional extract.

Source for these steps:OpenStreetMap · OSM XML / OpenStreetMap · OSM file formats

Related-format differences

Related-format differences
Format / methodPurpose and preserved information
.osmStore nodes, ways and relations
PBF / GPXOSM binary data and other uses / GPS-track exchange.
OSM → GeoPackage or another datasetSimple tables do not preserve all relations, tags or history.

Handling and security

Check licensing/attribution and any private unsubmitted content.

Questions and answers

Rename to an image?

Render/export it.

Same information as PBF?

They can represent matching data, but check date/extent.

Does it imply uploaded edits?

Local storage and OSM submission differ.

Format facts: name, steward and MIME type
Formal name
OpenStreetMap XML Data
Steward / specification
OpenStreetMap
MIME type
Consult the producer or delivery system. The extension alone does not establish a MIME type.

Primary and official sources

  • Project documentationOSM XML

    XML nodes, ways and relations.

    OpenStreetMap · Link checked:
  • Project documentationOSM file formats

    OSM formats and conversion distinctions.

    OpenStreetMap · Link checked: