# MVT — Mapbox Vector Tiles (directory layout)

> MVT (Mapbox Vector Tiles (directory layout)): Tiled vector map data encoded as Protocol Buffers, stored in a z/x/y directory tree for web and mobile rendering. Specs, software and free sample files; convert MVT to 39 formats online.

- Page: https://beta.mygeodata.cloud/formats/mvt



## What is a MVT file?

Mapbox Vector Tiles (MVT) is an open specification published by Mapbox for encoding tiled vector map data. It underlies many modern web and mobile vector basemaps. Each tile is a Google Protocol Buffers message containing one or more named layers. Features store geometry as compact drawing commands in integer tile coordinates, typically on a 4096-unit extent, and attributes as indexed key and value tables. In the directory layout, tiles are stored as z/x/y.pbf or .mvt files, usually gzip-compressed, often alongside a metadata.json file that describes layers and zoom range.

Tiles normally follow the Web Mercator tiling scheme. Geometry types are point, linestring and polygon, each optionally multi-part, and one layer can mix them. The format is designed for rendering rather than analysis. Coordinates are quantised, features are clipped at tile edges and generalised per zoom level, and styling is supplied separately by the client.

MVT directory tilesets are usually produced by map servers or tile-generation tools and handed to web developers who host them for vector basemaps and overlays. When exchanging them, keep the whole z/x/y folder tree together, along with metadata.json if present, and zip it for upload. Tiles are often gzip-compressed, and the data is generalised per zoom level, so it differs from the source dataset.

### Technical details

| | |
|---|---|
| Full name | Mapbox Vector Tiles (directory layout) |
| Data type | Vector · Web & JSON |
| File extension | .pbf, .mvt |
| Files | Folder (.pbf) — upload as ZIP |
| Media type | application/vnd.mapbox-vector-tile |
| Geometry types | Point, LineString, Polygon |
| Multiple layers | Yes |
| Mixed geometry in a layer | Yes |
| Attribute names | — |
| Coordinate system | Always WGS 84 / Pseudo-Mercator (Web Mercator) (EPSG:3857) |
| Converter support | Read & write |
| Typical software | Tippecanoe, MapLibre GL JS, Mapbox GL JS, OpenLayers, QGIS, GDAL/OGR |
| Specification | https://github.com/mapbox/vector-tile-spec |

### Specifications & references

- https://github.com/mapbox/vector-tile-spec
- https://gdal.org/en/stable/drivers/vector/mvt.html

### Sample MVT files — free download

- [Basemap vector tiles (z10–14)](https://beta.mygeodata.cloud/static/landing/samples/v1/mvt/st-helena-basemap-mvt.zip) — Mapbox Vector Tiles (z/x/y.pbf, zoom 10–14) with layers island, landcover, waterways, contours, roads, buildings and places, plus metadata.json. (384.1 kB, EPSG:3857)

### Convert MVT to other formats

- [MVT to GeoPDF](https://beta.mygeodata.cloud/converter/mvt-to-geopdf)
- [MVT to SHP](https://beta.mygeodata.cloud/converter/mvt-to-shp)
- [MVT to GeoJSON](https://beta.mygeodata.cloud/converter/mvt-to-geojson)
- [MVT to CSV](https://beta.mygeodata.cloud/converter/mvt-to-csv)
- [MVT to GPKG](https://beta.mygeodata.cloud/converter/mvt-to-gpkg)
- [MVT to KML](https://beta.mygeodata.cloud/converter/mvt-to-kml)
- [MVT to DXF](https://beta.mygeodata.cloud/converter/mvt-to-dxf)
- [MVT to XLSX](https://beta.mygeodata.cloud/converter/mvt-to-xlsx)
- [MVT to GPX](https://beta.mygeodata.cloud/converter/mvt-to-gpx)
- [MVT to MapInfo](https://beta.mygeodata.cloud/converter/mvt-to-mapinfo)
- [MVT to KMZ](https://beta.mygeodata.cloud/converter/mvt-to-kmz)
- [MVT to TopoJSON](https://beta.mygeodata.cloud/converter/mvt-to-topojson)
- [MVT to SQLite](https://beta.mygeodata.cloud/converter/mvt-to-sqlite)
- [MVT to MIF](https://beta.mygeodata.cloud/converter/mvt-to-mif)
- [MVT to WKT](https://beta.mygeodata.cloud/converter/mvt-to-wkt)
- [MVT to GML](https://beta.mygeodata.cloud/converter/mvt-to-gml)
- [MVT to DGN](https://beta.mygeodata.cloud/converter/mvt-to-dgn)
- [MVT to MBTiles](https://beta.mygeodata.cloud/converter/mvt-to-mbtiles)

## Frequently asked questions

### Why does my MVT output look different from the original data?

Tiles are built for rendering, not analysis. Coordinates are quantised to integer tile units, features are clipped at tile edges and geometry is simplified at lower zoom levels. Converting tiles back therefore does not restore the original precision.

### Why can't I read the .pbf files in a text editor or open them directly?

Each .pbf tile is a binary Protocol Buffers message, and it is often gzip-compressed as well. It needs a vector tile reader such as QGIS or GDAL/OGR, which also need the z/x/y folder structure to place each tile correctly.

### Why does an MVT tileset contain several layers and how are they handled?

A single tile can hold multiple named layers, each with its own features and attributes. When converting, layers are typically treated as separate datasets, and a layer can mix point, line and polygon geometries.

### What is a MVT file?

Mapbox Vector Tiles (MVT) is an open specification published by Mapbox for encoding tiled vector map data. It underlies many modern web and mobile vector basemaps. Each tile is a Google Protocol Buffers message containing one or more named layers. Features store geometry as compact drawing commands in integer tile coordinates, typically on a 4096-unit extent, and attributes as indexed key and value tables. In the directory layout, tiles are stored as z/x/y.pbf or .mvt files, usually gzip-compressed, often alongside a metadata.json file that describes layers and zoom range.

Tiles normally follow the Web Mercator tiling scheme. Geometry types are point, linestring and polygon, each optionally multi-part, and one layer can mix them. The format is designed for rendering rather than analysis. Coordinates are quantised, features are clipped at tile edges and generalised per zoom level, and styling is supplied separately by the client.

### How do I open a MVT file?

MVT files can be opened in Tippecanoe, MapLibre GL JS, Mapbox GL JS, OpenLayers and QGIS. Without any software you can preview and convert them online in MyGeodata Cloud.

### What can I convert MVT to?

Popular conversions are GeoPDF, SHP, GeoJSON, CSV, GPKG and KML. In total the Converter writes MVT data to 39 formats.

### How do I create a MVT file?

Convert existing data to MVT — for example from GPKG, CSV, GeoJSON, GPX and KMZ. Upload the file, choose MVT as output and download the result.

### Which coordinate system does MVT use?

MVT always uses WGS 84 / Pseudo-Mercator (Web Mercator) (EPSG:3857).

