PMTiles (created by Brandon Liu / Protomaps and released under the BSD-3-Clause open-source license) is a cloud-native, single-file archive format and CLI toolkit (`go-pmtiles`) for storing and serving tiled vector (MVT) and raster (PNG, JPEG, WebP, AVIF) map pyramids. Designed for web GIS developers, cartographers, and cloud mapping architectures, PMTiles eliminates dedicated tile servers and millions of tiny files—allowing MapLibre GL JS, Leaflet, OpenLayers, and QGIS to stream map tiles directly from standard static object storage (AWS S3, Cloudflare R2, Google Cloud Storage, or Nginx/Apache) via HTTP Range Requests.
1. In-Depth Review: Why Web GIS & Cloud Mapping Teams Use PMTiles
- Zero-Server Static Map Hosting on Object Storage: Stores an entire global or regional zoom pyramid inside a single `.pmtiles` file on S3, Cloudflare R2, or standard web hosting—requiring no Node.js, Python, or database server for static basemaps and overlays.
- Spatial Hilbert-Curve Indexing for Fast HTTP Range Requests: Orders tile directories along a Hilbert space-filling curve so clients fetch only the exact byte ranges needed for the current map viewport in 1–2 HTTP requests.
- Seamless MBTiles Conversion & MapLibre / QGIS Integration: Converts existing `.mbtiles` archives cleanly with `pmtiles convert` and integrates natively with MapLibre GL JS (`pmtiles://` protocol), OpenLayers, Leaflet, Martin, and QGIS.
2. Key Features & Capabilities
- Single-File Vector & Raster Tile Pyramid: Packages Mapbox Vector Tiles (MVT) or raster tiles (WebP, PNG, JPEG, AVIF) into one portable, cloud-friendly `.pmtiles` archive.
- HTTP Range Request Streaming: Reads directory headers and tile payloads directly from static HTTP/HTTPS servers supporting `Range` headers.
- `go-pmtiles` Cross-Platform CLI Toolkit: Convert `.mbtiles` to `.pmtiles`, extract regional bounding-box subsets (`pmtiles extract`), verify archive integrity (`pmtiles verify`), and run a local dev server (`pmtiles serve`).
- Native Client & Server Ecosystem Support: Works out of the box with `pmtiles.js` in MapLibre GL JS, Leaflet, OpenLayers, Martin tile server, Tippecanoe, GDAL, and QGIS.
- Compact Storage & Built-In Deduplication: Deduplicates identical tiles (such as solid ocean or empty tiles) automatically to minimize file size and storage costs.
- 100% Free & Open-Source (BSD-3-Clause): Free to use, self-host, and deploy in personal, government, and commercial web GIS platforms.

- Official Links: Free Trial, Free / Education & Pricing
Always download `go-pmtiles` binaries, JavaScript libraries, and specification docs directly from official Protomaps portals:
- Official PMTiles Documentation & Guides: https://docs.protomaps.com/pmtiles/
- Official `go-pmtiles` CLI GitHub & Releases: https://github.com/protomaps/go-pmtiles
- Official PMTiles Format Specification & JS Library: https://github.com/protomaps/PMTiles
- Official Protomaps OpenStreetMap Basemap Builds: https://maps.protomaps.com/builds/
4. Step-by-Step Installation Guide
- Check Operating System & Storage Requirements: Confirm your Linux, macOS, or Windows (64-bit) workstation has sufficient SSD space for your `.mbtiles` / `.pmtiles` map archives.
- Download the Official `go-pmtiles` Binary: Visit https://github.com/protomaps/go-pmtiles/releases and download the compiled archive for your OS (`Linux`, `macOS`, or `Windows`).
- Extract & Add `pmtiles` to Your System PATH: Extract the `pmtiles` executable (`pmtiles.exe` on Windows) into a folder in your system `PATH` and verify by running `pmtiles --version` in your terminal.
- Optional JavaScript Client Setup: For web map integration, install `pmtiles` via npm (`npm install pmtiles`) or include the official `pmtiles` script alongside MapLibre GL JS or Leaflet.
5. How to Use PMTiles: Beginner Workflow
- Generate or Prepare an MBTiles / Vector Dataset: Create vector tiles using Tippecanoe, Tilemaker, or GDAL/QGIS (`Generate XYZ Tiles (MBTiles)`), or download an existing `.mbtiles` file.
- Convert `.mbtiles` to `.pmtiles`: Run `pmtiles convert input.mbtiles output.pmtiles` in your terminal to build a Hilbert-indexed `.pmtiles` archive with tile deduplication.
- Inspect Metadata & Preview Locally: Run `pmtiles show output.pmtiles` to verify zoom levels, bounds, and layer names, or run `pmtiles serve .` to test tiles locally over HTTP.
- Upload to Static Hosting or Object Storage: Upload `output.pmtiles` to Cloudflare R2, AWS S3, or your web server with CORS (`Access-Control-Allow-Origin`) and `Range` requests enabled.
- Load in MapLibre GL JS or QGIS: Register the `pmtiles` protocol in MapLibre GL JS (`pmtiles://https://yourdomain.com/output.pmtiles`) or open the `.pmtiles` file directly in QGIS.
6. Frequently Asked Questions (FAQ)
- Is PMTiles free and open-source?Yes. Both the PMTiles format specification and the `go-pmtiles` / `pmtiles.js` tools are open-source under the BSD-3-Clause license.
- What is the difference between MBTiles and PMTiles?MBTiles is an SQLite database file best suited for local desktop apps or server-side tile servers, whereas PMTiles is structured specifically for direct HTTP Range Request streaming from static cloud object storage without a database server.
- Can QGIS open `.pmtiles` files directly?Yes. Recent versions of QGIS support reading `.pmtiles` vector and raster archives natively via GDAL/OGR without needing a separate tile server.