FlatGeobuf

FlatGeobuf (FGB)

Open Beta
.fgb · application/flatgeobuf

FlatGeobuf is a high-performance binary format for geodata based on FlatBuffers. Optimized for cloud-native workflows and HTTP range requests. Built-in spatial index for instant access to any map fragment.

Export FlatGeobuf now ✨ Open Beta — free, no limits

Key Features

Binary compact format
Built-in spatial index
HTTP range requests
Fast fragment loading
Example FlatGeobuf export (central Moscow, 1x0.5 km)
Example: central Moscow, ~1×0.5 km, medium detail

About FlatGeobuf Format

FlatGeobuf is a binary vector data format based on FlatBuffers, which appeared in 2018 as "a shapefile for the cloud". Features are laid out in the file sequentially, with a spatial index written alongside, so the fragment you need is read directly, without parsing the whole file.

The main feature is working over HTTP range requests: you can put the file in object storage or on static hosting and read from the browser only the features that fall into the current screen. You don't have to stand up a geoserver for the sake of one layer.

All the selected layers are merged into a single .fgb, and every feature keeps a _layer attribute with the name of its source layer — it takes the export apart again into roads, buildings, water and greenery. OpenStreetMap attributes are preserved, coordinates are WGS84 (EPSG:4326), and the spatial index is written automatically.

Compared to GeoJSON the file is noticeably smaller and reads faster; compared to a shapefile there are no limits on field name length, encoding or size. There is one price to pay: you cannot look at such a file in a text editor.

What Program Opens FlatGeobuf Files

The following programs and applications can open, edit, and work with FlatGeobuf (FGB) (.fgb) files exported from OSM2CDR:

🌎QGIS 💻GDAL/OGR 💻GeoPandas 💻MapLibre 💻DeckGL 💻Leaflet (flatgeobuf plugin)

Format specifications

Who Uses FlatGeobuf Maps

🏗
Cloud GIS
The layer sits in object storage and is read directly, with no database and no geoserver.
💻
Geodata streaming
The client fetches only the features in the visible area — thanks to the index and range requests.
📊
Web maps
A vector source for MapLibre, deck.gl and Leaflet that loads faster than an equivalent GeoJSON.
🎨
Large datasets
Hundreds of thousands of features in one file, without the shapefile's limits on size and field names.
🗺
Serverless architecture
A static file instead of an API: nothing to stand up and nothing to maintain.

How to Export FlatGeobuf

1
Select area
Draw a rectangle or polygon on the interactive map at osm2cdr
2
Choose FlatGeobuf
Select FlatGeobuf (FGB) from the list of 127 available export formats
3
Export
Click Export and receive your .fgb file in 1-5 minutes
4
Download
Download the ready FlatGeobuf file and open it in QGIS

How to Open After Export

Popular maps in FlatGeobuf

Free

Get FlatGeobuf (FGB) map exports

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

Free / export
Export FlatGeobuf now →

Frequently Asked Questions

Why is FlatGeobuf better than GeoJSON?
Can I open FlatGeobuf in QGIS?
How do I split the export back into layers?
Which coordinate system does the data arrive in?
Does the file have to be on a server for range requests to work?

Related Formats

Frequently Exported Together

Related Articles