Developer and Text Tools

How to View an MBTiles File and Extract Its Map Tiles

MBTiles hold whole offline maps in one file. Learn how to preview raster or vector tiles, read metadata, inspect zoom levels and extract tiles as a ZIP.

Saizul Amin
Saizul Amin19 Nov 2026 · 3 min read
How to View an MBTiles File and Extract Its Map Tiles

How to View an MBTiles File and Extract Its Map Tiles

Offline map apps, drone ground stations, hiking and sailing apps and self-hosted web maps all use MBTiles. It is a convenient container, but you cannot double-click it to see the map. The free MBTiles Map Tile Viewer and Extractor opens one in a browser, draws it on a map and lets you pull tiles out. This guide covers what the format is and how to check and extract a file.

How MBTiles works

Web maps are made of square tiles, usually 256 pixels, arranged in zoom levels. At zoom 0 the whole world is one tile; each level doubles the number of tiles across and down. An MBTiles file is an SQLite database with a tiles table holding the zoom level, column, row and image or data for every tile, and a metadata table with the name, format, bounds and other details.

There are two kinds:

  • Raster MBTiles store finished pictures in PNG, JPEG or WebP, as made by QGIS, MapTiler or gdal.
  • Vector MBTiles store PBF tiles with geometry and attributes, as made by tippecanoe or OpenMapTiles. An app styles them on the fly.

One detail trips people up: MBTiles counts rows from the bottom of the map (the TMS scheme), while most web maps count from the top (XYZ). The viewer handles the flip.

Step 1: open the file

Drop the .mbtiles file onto the page. SQLite loads in the browser, then the summary shows the name, raster or vector format, the zoom range, the number of tiles and the total size. The map zooms to the bounds stored in the metadata.

Step 2: check the coverage

The tiles are drawn over OpenStreetMap. Lower the opacity to compare them with the base map and check that the area and alignment are right. Zoom through the levels: beyond the highest stored zoom, the viewer stretches the last level, and below the lowest it shrinks the first one, so blurry or crowded tiles quickly tell you whether the levels you need are there.

For vector files, each layer gets its own colour and its own checkbox, so you can see roads, buildings or water on their own.

Step 3: inspect tiles and zoom levels

Tap the map to inspect the tile underneath. You see its zoom, column and row in both schemes, its size and, for vector tiles, the layers it contains with feature counts and attribute names. That is the fastest way to confirm a tippecanoe export kept the attribute your app needs.

The zoom table lists each level's tile count, column and row ranges and size. It often explains why a file is huge: the deepest zoom level usually holds three quarters of the data.

Step 4: extract tiles

Choose a zoom range and the folder naming:

  • XYZ for web maps, Leaflet, OpenLayers and most apps that read a folder of tiles.
  • TMS to keep the stored row numbers.

For vector tiles, decide whether to keep them gzip-compressed, as most tile servers expect, or write plain PBF for tools that read raw protobuf. The button shows the number of tiles and megabytes before you start, and a metadata.json file is included in the ZIP.

Practical examples

A drone pilot can confirm an offline base map covers the survey site at zoom 18 before driving out. A web developer can pull a handful of zoom levels into a static site without a tile server. Someone with an app that limits file size can drop the deepest zoom level and see how much smaller the export becomes.

Limits worth knowing

The browser has to hold the whole file in memory, so very large files above about 1 to 2 GB may not open; split them by zoom with a desktop tool first. Vector tiles are drawn plainly, not with the map's style. And extracted tiles keep the licence of the original data: if the map came from OpenStreetMap or a commercial provider, keep the attribution and follow its terms. The file itself is read locally and never uploaded.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages