MBTiles Map Tile Viewer and Extractor
Drop an .mbtiles file to see its tiles on a map over OpenStreetMap, check each zoom level's tile count and size, inspect any tile's layers and attributes, read the metadata and vector layer list, and extract a zoom range as a ZIP in XYZ or TMS folders, with PBF tiles kept compressed or unpacked.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Open the file
Drop an .mbtiles file; SQLite loads once.
- 2Read the summary
Check the format, zoom range, tile count and size.
- 3Browse the map
Zoom and pan, change opacity and switch vector layers on or off.
- 4Inspect a tile
Tap the map to see the tile's size, layers and attributes.
- 5Choose what to extract
Set the zoom range, folder scheme and PBF compression.
- 6Download
Save the tiles as a ZIP, or the metadata and zoom table on their own.
About this tool
MBTiles packs a whole tiled map into one SQLite file: offline maps for field apps and drones, base maps exported from TileMill, QGIS, MapTiler or tippecanoe, OpenMapTiles extracts and the raster charts used by sailing and hiking apps. Checking what is inside normally means setting up a tile server. This viewer opens the file in the browser with sql.js and draws the tiles straight from the database on a Leaflet map, with OpenStreetMap underneath so you can see whether the coverage matches the area you expected. Raster tiles in PNG, JPEG or WebP are shown as images. Vector tiles in PBF are decompressed and decoded here, and every layer is drawn in its own colour, with a switch per layer from the metadata, so you can check roads, buildings or water separately. The zoom table lists every level with its tile count, column and row range and total size, and the metadata table shows name, format, bounds, centre, attribution and the vector layer JSON. Tap the map to inspect the tile under your finger: its size and, for vector tiles, each layer with its feature count and attribute names.
Extracting tiles
Choose a zoom range and a folder scheme. XYZ naming flips the rows to the z/x/y layout used by Google, OpenStreetMap, Leaflet and most web maps; TMS keeps the stored row numbers. The button shows how many tiles and megabytes the ZIP will hold before you start, and a metadata.json file is added. For vector tiles you can keep the gzip compression, which most servers expect, or write plain PBF for tools that need it.
Typical uses
Check that an offline map for a survey drone covers the site at zoom 18, find the zoom level that makes a file too big for a phone app, pull a few tiles out for a static website, or confirm that a tippecanoe export contains the attribute you need before you publish it.
Limits
The whole file is read into memory, so very large MBTiles above roughly 1 to 2 GB may not open in a browser tab. Vector tiles are drawn with plain colours to check coverage and attributes, not with the map's style file, and labels are not rendered. Tiles are copied as stored; the tool does not re-render, merge or re-encode tiles, and it does not check map licences, so respect the attribution and terms of the data you extract.
Worked example
A drone surveyor has farm.mbtiles, a 284 MB raster base map made in QGIS for an offline flight app. It opens with zoom levels 12 to 19 and 41,226 PNG tiles; zoom 19 alone holds 30,912 tiles and 212 MB. Tapping the field edge at zoom 19 shows tile z19 / x262143 / y174592 at 7.8 KB. The flight app on an old tablet allows 150 MB, so she extracts zoom 12 to 18 as an XYZ ZIP: 10,314 tiles, 71.4 MB, for a quick upload to the app's custom map folder.
Quick facts
- Category: Developer & Data
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: MBTiles 1.3 and Mapbox Vector Tile 2.1 specifications (Mapbox, CC BY 3.0); SQLite through sql.js (MIT)
Frequently asked questions
What is the difference between raster and vector MBTiles?
Raster MBTiles store ready-made pictures (PNG, JPEG or WebP) for each tile. Vector MBTiles store PBF files with map data (roads, buildings, labels as geometry and attributes) that an app styles and draws itself. This viewer shows both.
Why are rows flipped between XYZ and TMS?
The MBTiles specification stores rows in the TMS scheme, counted from the bottom of the map. Most web maps count from the top (XYZ). The viewer flips rows when it reads tiles for the map and lets you choose the scheme for the ZIP.
Why do vector tiles look plain?
Vector tiles need a style file to look like a finished map, and styles are not stored in MBTiles. The viewer colours each layer so you can check coverage and attributes; use a style-aware app for the final look.
Can I make an MBTiles file here?
No. This tool views and extracts. Use QGIS, MapTiler, gdal2tiles with an MBTiles driver or tippecanoe to create MBTiles from your data.
Is there a size limit?
The file has to fit in the browser's memory, which in practice is about 1 to 2 GB depending on your device. For bigger files, split them by zoom with a desktop tool first.
Are my maps uploaded?
No. The file is read locally with SQLite in your browser. Only the background map comes from OpenStreetMap.
