OGR
From OpenStreetMap Wiki
The OGR Simple Features Library is a C++ Open Source library (and commandline tools) providing read (and sometimes write) access to a variety of GIS databases and vector file formats.
Osmium has support for OGR geometries and can be used to build converters from OSM to various GIS databases and file formats.