Free contour-line vector tiles for the whole world — 10 m intervals derived from the Copernicus GLO-30 elevation model, smoothed so they look like a printed topo map rather than a pixel lattice. One PMTiles file, no API key, no server required.
Live demo — contours are range-read straight out of the world archive in your browser, no tile server involved; basemap by OpenFreeMap. Zoom in for full 10 m detail, or drag anywhere on Earth. Lines appear from zoom 9.
| Archive | ARCHIVE_URL |
|---|---|
| z/x/y endpoint | https://tiles.contour-map-tiles.net/world/{z}/{x}/{y}.pbf |
| Coverage | All land on Earth except the Antarctic and Greenland ice sheets (Iceland is in) |
| Source DEM | Copernicus GLO-30 (~30 m) |
| Size | ~613 GB, ~232 million tiles |
| Licence | Copernicus DEM licence (free, attribution notice required) |
Use the world archive everywhere, Australia included.
An Australia-only archive built from Geoscience Australia's 1-second SRTM DEM-S is still downloadable but no longer maintained: last built 2026-10-23, it will not be rebuilt, and the z/x/y endpoint no longer serves it. Compared tile for tile against the world archive at seven Australian trails, the two drew near-identical lines (elevations within 10–30 m); the world archive has slightly more detail because DEM-S is hydrologically smoothed.
| Archive | AUSTRALIA_URL |
|---|---|
| Coverage | Mainland Australia + Tasmania (112.92°E–154°E, 43.86°S–10°S) |
| Source DEM | Geoscience Australia 1-second SRTM DEM-S (~30 m, hydrologically smoothed) |
| Size | 13.5 GB, ~9.6 million tiles |
| Licence | CC-BY 4.0 (see below) |
It shares the world archive's schema and zoom range, so a style written for one works with the other unchanged.
The archives are served with CORS enabled and HTTP range support, so MapLibre can read tiles directly from them using the pmtiles protocol — no tile server involved. A client only ever fetches the directory entries and tiles for the area on screen, so the size of the world archive is irrelevant to page weight:
<!-- maplibre-gl v5 is the last major with a script-tag (UMD) build; v6+ is ESM-only -->
<script src="https://cdn.jsdelivr.net/npm/maplibre-gl@5.24.0/dist/maplibre-gl.js"></script>
<script src="https://cdn.jsdelivr.net/npm/pmtiles@4.5.0/dist/pmtiles.js"></script>
<script>
const protocol = new pmtiles.Protocol();
maplibregl.addProtocol("pmtiles", protocol.tile);
const map = new maplibregl.Map({ container: "map", /* your base style */ });
map.on("load", () => {
map.addSource("contours", {
type: "vector",
url: "pmtiles://ARCHIVE_URL",
attribution: "Contours produced using Copernicus WorldDEM-30 © DLR e.V. 2010-2014 and © Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA; all rights reserved",
});
// is_index arrives as the STRING "0"/"1", so wrap it in to-number —
// ["==", ["get","is_index"], 1] silently matches nothing.
map.addLayer({
id: "contour-regular", type: "line",
source: "contours", "source-layer": "contour",
filter: ["!=", ["to-number", ["get", "is_index"]], 1],
paint: { "line-color": "rgb(179,134,89)", "line-width": 0.5, "line-opacity": 0.5 },
});
map.addLayer({
id: "contour-index", type: "line",
source: "contours", "source-layer": "contour",
filter: ["==", ["to-number", ["get", "is_index"]], 1],
paint: { "line-color": "rgb(166,116,66)", "line-width": 1.1, "line-opacity": 0.65 },
});
});
</script>
The same file works anywhere PMTiles is supported: MapLibre (web and native),
QGIS 3.32+, Felt, and the pmtiles CLI.
If your client can't speak PMTiles, a conventional tile endpoint fronts the archive, edge-cached on Cloudflare's network:
https://tiles.contour-map-tiles.net/world/{z}/{x}/{y}.pbf
/contours/{z}/{x}/{y}.pbf, which used to serve the Australia archive, is now an
alias of /world/: it returns the same tiles, so carry the Copernicus notice. Empty
tiles (ocean, the ice sheets) answer 204 rather than 404;
GET /health reports the archive. Prefer the pmtiles:// URL where you
can — it's served straight from storage with no request limits in front of it.
The world archive is ~613 GB, so you almost certainly don't want all of it. Pull just your area of interest with the pmtiles CLI — it range-reads only the tiles inside your bounding box, so it's fast and small (Switzerland is a few GB, Tasmania ~350 MB, a single national park usually a few MB):
# bbox = minLon,minLat,maxLon,maxLat (this one is Switzerland)
pmtiles extract ARCHIVE_URL \
switzerland-contours.pmtiles \
--bbox=5.9,45.8,10.5,47.9
Extracts of the world archive from mountain regions run larger than the same area of
Australia: there is simply more relief to draw. Cap the zoom with --maxzoom=13
for a much smaller file if 20 m detail is enough.
The deprecated Australia archive is small enough to take whole (13.5 GB):
curl -O AUSTRALIA_URL
Need MBTiles for an offline mobile app? pmtiles convert does the conversion.
| Layer | One vector layer, contour (MVT/pbf, gzip) |
|---|---|
| Attributes | elevation — metres, a number · is_index — "1" on 50 m multiples (bold "index" lines), else "0".
Note the quotes: is_index is encoded as a string, so compare it with
["==", ["to-number", ["get", "is_index"]], 1] — a plain
["==", ["get", "is_index"], 1] is type-strict in MapLibre and silently matches nothing,
which renders every line at intermediate weight with no labels. |
| Interval | 10 m contours, 50 m index contours |
| Zoom range | z9–z15 (overzooms cleanly beyond 15) |
| Density by zoom | z9: 100 m contours · z10–11: 50 m · z12: 20 m · z13+: full 10 m |
| Coverage | World: every land mass covered by the Copernicus DEM, excluding the Antarctic and Greenland ice sheets (contours there are enormous and almost meaningless). |
| Source DEM | World: Copernicus GLO-30 (~30 m, a surface model — tree canopy and buildings are in it) |
| Size | ~613 GB, ~232 million tiles |
| Built with | GDAL (cubic-spline oversampled warp + gdal_contour) and tippecanoe |
The DEM is warped to 2× its native density with cubic-spline resampling before contouring, which traces smooth curves between the 30 m elevation samples instead of polygonal lines along the pixel lattice. The world is processed as ~7,000 2°×2° cells with buffered edges, so contours join seamlessly across cell boundaries, and the cells are grouped into continental shards that are tiled separately and stitched into the one archive.
These tilesets are a by-product of building offline topo maps for
a hiking-trail guide app. The full pipeline —
chunked, resumable, per-cell and per-shard — is open source in that repo:
contours/scripts/build-contours-world.ts,
with the rented-machine runbook in
contours/docs/world-contours-remote-build.md.
The world archive was last built in October 2026 on a single 32-core NVMe instance:
~7,000 cells, ten continental tippecanoe merges and a final join, about 40 hours end to end.
Elevation data from the Copernicus GLO-30 DEM, provided free of charge under the Copernicus DEM licence. The licence requires this notice on any product derived from it, so carry it through to your map attribution:
Contours produced using Copernicus WorldDEM-30 © DLR e.V. 2010-2014 and © Airbus Defence and Space GmbH 2014-2018 provided under COPERNICUS by the European Union and ESA; all rights reserved
The contour geometry itself is free for any use, including commercial, as long as that notice stays attached.
Elevation data © Commonwealth of Australia (Geoscience Australia), licensed under CC-BY 4.0. The derived contour tiles are likewise CC-BY 4.0 — free for any use, including commercial, with attribution:
Contours © Geoscience Australia, CC-BY 4.0
The tiles are provided as-is, with no uptime guarantee — for production use, please
pmtiles extract your region and host it yourself (any static bucket works).