You are trying the new MyGeodata Cloud. Send feedback Back to the previous version

Vector · Database & container

MBTiles — MBTiles (vector content)

Single-file SQLite container for vector map tiles on a Web Mercator grid, used for offline and portable maps.

Type
Vector · Database & container
Extension
.mbtiles
Converter
Read & write
Coordinate system
Always Web Mercator tiling scheme (EPSG:3857)
Layers
Multiple

What is a MBTiles file?

MBTiles is a specification published by Mapbox for storing map tiles in a single SQLite database file. This entry covers its vector side, where each tile holds vector geometry rather than an image. The database contains a metadata table of name/value pairs describing the tileset. A tiles table is indexed by zoom_level, tile_column and tile_row and holds the tile content in a tile_data blob. Rows follow the TMS scheme, so the y index is flipped relative to the XYZ scheme used by most web maps. For vector tilesets the format value is pbf, and a json metadata entry lists the vector layers and their fields.

Because it is a single file, MBTiles is convenient for offline maps, mobile apps and tile servers. Data is fixed to the Web Mercator tile grid and stored at discrete zoom levels. It is therefore a delivery format rather than an editable data source: geometries are clipped to tiles and generalised per zoom level.

Vector MBTiles files are usually produced by a data publisher or web-mapping team and handed to people who run tile servers, build mobile apps or need an offline basemap. The file is a ready-to-serve package, not a working dataset. Check the zoom range, the layer and field list in the json metadata, and the y-axis (TMS versus XYZ) before use. Source data cannot be fully restored from it.

Typical uses

  • Serving vector tiles from a tile server such as TileServer GL or Martin.
  • Bundling an offline vector basemap inside a mobile or desktop app.
  • Moving a whole tileset between systems as one portable file.
  • Inspecting layers and attributes of a tileset in QGIS or GDAL/OGR.
Files: Tile database; vector tiles typically MVT encoded within SQLite blobs.

Sample MBTiles files — free download

Small, real datasets of the island of Saint Helena (OpenStreetMap, Copernicus DEM, Sentinel-2). Download them, open them in your software, or convert them in one click.

Preview of the sample data: Saint Helena basemap st-helena-basemap.mbtiles

Basemap vector tiles (z10–14)

MBTiles database with Mapbox Vector Tiles, zoom 10–14, layers island, landcover, waterways, contours, roads, buildings and places.

  • island · MultiPolygon · 37
  • landcover · MultiPolygon · 262
  • waterways · MultiLineString · 158
  • contours · MultiLineString · 177
  • EPSG:3857
  • 476 kB
Attributes (3)
nameStringarea_km2Realosm_idString
Saint Helena122.914868269

© OpenStreetMap contributors, ODbL 1.0 · Copernicus DEM © DLR e.V. 2010-2014 and © Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA

Frequently asked questions

MBTiles stores rows in the TMS scheme, where the y index counts from the bottom, while most web maps use XYZ, where it counts from the top. If a client or script does not flip y, tiles are requested from the wrong rows and appear misplaced or missing.

Ready to convert your data?

Drop the files and the Converter does the rest — no install, no account needed for your first conversions.