CityJSON 🏙

CityJSON (3D City Model)

Open Beta
.city.json · application/city+json

Export buildings to CityJSON 2.0 for 3D city modeling. Compact JSON format with vertex deduplication. Supported in 3DCityDB, QGIS 3D, ninja viewer.

Export CityJSON now ✨ Open Beta — free, no limits

Key Features

CityJSON 2.0
LOD1 (building blocks)
Vertex deduplication
Building attributes
Example CityJSON export (central Moscow, 1x0.5 km)
Example: central Moscow, ~1×0.5 km, medium detail

About CityJSON Format

CityJSON is a compact way of writing the same city model as CityGML, but in ordinary JSON instead of bulky XML. The same set of concepts (buildings, level of detail, attributes), only the file is many times smaller and is parsed by any language without special libraries. It is a recognized OGC community standard, not an amateur invention.

The format is chosen when a semantic 3D model is needed on the web, in scripts or in exchange between teams: to look at it in a browser viewer, to run it through Python, to put it into a repository, to hand it to colleagues without a heavy GIS stack.

The output is a single file: buildings at LOD1 detail are written as closed volumes extruded from OSM outlines. Vertices are stored as integers with millimeter precision through a scale factor and are deduplicated, so the file comes out noticeably lighter than the equivalent XML. The metadata records the coordinate system and the bounds of the model, and the buildings carry height, floor count and class.

What Program Opens CityJSON Files

The following programs and applications can open, edit, and work with CityJSON (3D City Model) (.city.json) files exported from OSM2CDR:

💻3DCityDB 🌎QGIS 3D 💻FME 💻ninja (web viewer) 💻azul 🎲Blender (plugin)

Format specifications

Who Uses CityJSON Maps

🏗
3D city models
A light 3D city model for the web and for exchange between teams.
💻
Urban planning
Material for planning projects and development assessment in a form convenient for scripts.
📊
Noise & energy analysis
Noise and energy consumption calculations, where building heights and volumes are needed.
🎨
Visualization
A quick display of the model in a browser without installing specialized software.
🗺
Analysis
Spatial analysis in Python: JSON reads without GIS libraries.

How to Export CityJSON

1
Select area
Draw a rectangle or polygon on the interactive map at osm2cdr
2
Choose CityJSON
Select CityJSON (3D City Model) from the list of 127 available export formats
3
Export
Click Export and receive your .city.json file in 1-5 minutes
4
Download
Download the ready CityJSON file and open it in 3DCityDB

How to Open After Export

Popular maps in CityJSON

Free

Get CityJSON (3D City Model) map exports

Download professional CityJSON maps from OpenStreetMap. Instant generation, any area.

Free / export
Export CityJSON now →

Frequently Asked Questions

Which layers are included in the 3D model?
Is terrain relief included?
How is it different from CityGML?
Can I open it in QGIS?
Why are the coordinates written as integers?
How can I look at the model quickly without installing anything?
Can the file be converted to CityGML or OBJ?

Compare with Other Formats

Related Formats

Frequently Exported Together

Related Articles