MBTiles 是一种将地图瓦片存储在单个 SQLite 文件中的格式。紧凑、快速,便于离线地图和移动应用使用。MapLibre、TileMill、Mapbox 和 GeoServer 均支持。
主要特点

关于 MBTiles 格式
MBTiles is a Mapbox specification describing how to pack map tiles into a single SQLite file: a tiles table with zoom level, coordinates and the image, plus a metadata table with the name, bounds and zoom range. Instead of thousands of small files on disk you get one portable container understood by QGIS, TileServer GL, MapLibre and mobile apps.
The format is chosen when the map has to work without internet or be served from your own server: an offline layer in a mobile app, a backdrop on a field tablet, a local tile service for an internal portal. Copying and handing over one file is easier than a folder with tens of thousands of images.
The OSM2CDR export delivers raster MBTiles: the selected area is rendered on the server in your style and cut into 256x256 PNG tiles. By default zooms 10 through 16 are built, and the range is set at export time; rows are numbered in TMS order, as the specification requires, and the name, area bounds and zoom bounds are written into metadata. Inside are images, not vector tiles — the style is chosen at export and cannot be changed on the client.
打开 MBTiles 文件的程序
以下程序可以打开、编辑和处理从 OSM2CDR 导出的 MBTiles (SQLite Tiles)(.mbtiles)文件:
格式规格
- 开放标准
- 仅 2D
- 无损(无质量损失)
- 无属性
- 输出:1 个文件
- MBTiles SQLite container with rendered raster tiles. Opens in QGIS, OsmAnd, Locus Map, TileServer-GL. For restyleable vector tiles pick MBTiles Vector.
谁在使用 MBTiles 地图
如何导出 MBTiles
导出后如何打开
- QGIS (free) — drag the .mbtiles into the program window or add it through the Browser panel: the layer will sit as a backdrop under your data.
- TileServer GL or mbview — run a local tile server over the file and get an address of the form /{z}/{x}/{y}.png for Leaflet, MapLibre and OpenLayers.
- mb-util — unpack the container into a plain folder tree z/x/y.png if your hosting can only serve static files: mb-util map.mbtiles tiles/.
- DB Browser for SQLite — look inside: how many tiles were written, what is in metadata, which zoom range actually got built.
- A mobile app with MBTiles support — put the file into its maps folder; that is how an offline backdrop appears on a tablet with no internet.
MBTiles 格式的热门地图
导出 MBTiles (SQLite Tiles) 地图
从 OpenStreetMap 下载专业的 MBTiles 地图。即时生成,任意区域。
常见问题
与其他格式比较
相关格式
经常一起导出
Related Articles
MBTiles: how to open it on desktop and Android + where to download Russia maps
Got an .mbtiles file and not sure how to open it? On desktop — QGIS, on Android — OsmAnd, Locus Map, OruxMaps. And if yo
formatMBTiles — SQLite Tile Container for Offline Map Apps (Mapbox)
MBTiles is a Mapbox SQLite tile container for vector and raster tiles: the offline-map standard for OSMAnd, Maps.me, Loc
guidePMTiles: Cloud-Native Tile Format for Modern Maps
What is PMTiles, how it differs from MBTiles, usage with MapLibre GL JS and Leaflet. A guide to cloud-native maps.