I asked ChatGPT and there seems to be two options to view OSM extracts:
QGIS can open .osm and .pbf
JOSM can open .osm
I did not verify or test this by myself. Maybe some people have more experience?
@redd @Irelephant Correct, both tools will work!