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

Raster · Tiles & pyramids

MBTiles raster — MBTiles (raster tiles)

SQLite-based single-file container for pre-rendered PNG or JPEG map tiles in a Web Mercator tile pyramid.

Type
Raster · Tiles & pyramids
Extension
.mbtiles
Converter
Read & write
Coordinate system
Always Web Mercator tiling scheme (EPSG:3857)
Bands
Typically RGB; RGBA if PNG.

What is a MBTiles raster file?

MBTiles is a specification defined by Mapbox for storing map tiles in a single SQLite database file. In its raster form, each tile is a pre-rendered image, usually PNG or JPEG, addressed by zoom level, column and row. The format is used to package basemaps, orthophotos and other rendered imagery for offline use on mobile devices, for serving tiles from a lightweight tile server, and for moving large tile sets as one file.

The database contains a tiles table, or an equivalent view, holding the image blobs, and a metadata table with name–value pairs such as format, bounds and zoom range. Tiles follow the spherical Web Mercator (EPSG:3857) grid, with rows numbered in the TMS scheme from the bottom. Pixel data is limited to what the image payload supports: 8-bit RGB with JPEG, or RGB and RGBA with PNG. Original analytical values, such as elevation or reflectance, are therefore not preserved.

MBTiles raster files are usually exchanged by people who publish basemaps or orthophotos, or who need map imagery on a phone without a network connection. The file is a SQLite database, so it can become very large and is best copied as a whole. Check the zoom range and bounds in the metadata, and the tile image format, before sharing or converting it.

Typical uses

  • Packaging a basemap for offline use in a mobile mapping app.
  • Serving pre-rendered orthophoto tiles from a lightweight tile server.
  • Moving a large tile set between systems as a single file.
  • Archiving a rendered map style at fixed zoom levels.
Files: Z/X/Y tiles (PNG/JPEG) stored in SQLite tables.

Sample MBTiles raster 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 from Sentinel-2 (true colour) st-helena-sentinel2-rgb.mbtiles

Sentinel-2 true colour (raster tiles)

Sentinel-2 L2A true-colour image of Saint Helena from 20 April 2024 (S2A_29LRC_20240420_0_L2A), 8-bit RGB with a contrast stretch, 10 m pixels (1812×1524), UTM zone 30S. Web Mercator JPEG tiles with overviews.

  • 4 bands · Byte
  • 1812 × 1524 px
  • 10 m
  • EPSG:3857
  • 776 kB

Contains modified Copernicus Sentinel data 2024

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

Shaded relief (raster tiles)

Colour shaded relief of Saint Helena (hypsometric tint × multidirectional hillshade) from Copernicus DEM, 20 m, 8-bit RGB, UTM zone 30S. Web Mercator PNG tiles with overviews.

  • 4 bands · Byte
  • 906 × 762 px
  • 20 m
  • EPSG:3857
  • 872 kB

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

Frequently asked questions

MBTiles numbers rows in the TMS scheme from the bottom, while many web maps use XYZ numbering from the top. Software that mixes the two flips the tile row, so the Y value must be converted as 2^zoom − 1 − y.

Ready to convert your data?

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