How can I convert a set of ShapeFiles to an OSM file?

3 Answers 3


You can do it with JOSM + OpenData plugin. With this extension JOSM can open SHP (4326) than you can save it as OSM file

  • 1
    For repeated needs ogr2osm is more easy to use in scripts wiki.openstreetmap.org/wiki/Ogr2osm.
    – user30184
    Commented Sep 7, 2014 at 20:50
  • I tried to use the OpenData plugin to convert a 600mb shape file but it looks like there is a memory leak in the plugin.
    – skubski
    Commented Jan 15, 2021 at 8:23
  • 1
    Actually, turned out that it required 20GB of memory to open aforementioned file. JOSM became unresponsive, laggy at best, after it finally processed my .shp file. This is an unacceptable tool / method to convert .shp files into .osm files.
    – skubski
    Commented Jan 15, 2021 at 14:16
  • I agree with @skubski; JOSM is incredibly sluggish ans slow and sucks memory. Another tools should be used.
    – Ted
    Commented Apr 30, 2023 at 8:59

shp-to-osm.jar has a simple configuration file to translate shapefile attributes to SOM key-value pairs




On the OSM Wiki Import Page you find an exhautive list of tools, that can convert shapefiles to an OSM file (All above mentioned tools are included).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.