Map Zoom Level and Scale Calculator

For Leaflet, OpenLayers, Mapbox and Google style maps: ground resolution, 1:N scale at your screen or print DPI, tile ranges, storage estimates and a reference table.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Set the place

    Enter latitude and longitude or tap the map.

  2. 2
    Choose the tiles

    Pick 256 or 512 pixel tiles and set your screen DPI.

  3. 3
    Read the zoom

    Move the zoom slider and read metres per pixel and scale.

  4. 4
    Go from scale to zoom

    Type the scale you want or tap a common scale button.

  5. 5
    Plan a print

    In the print tab enter the paper size, scale and printer DPI.

  6. 6
    Count tiles

    In the tile tab enter the box and zoom range, then export the CSV.

About this tool

Almost every web map uses the same spherical Web Mercator projection and the same pyramid of square tiles: one tile shows the world at zoom 0, four at zoom 1, and the count quadruples at each level. That makes zoom a convenient number for developers, but people think in ground distances and paper scales. How many metres does one screen pixel cover at zoom 16 in Dhaka? Which zoom matches a 1:25,000 hiking map? How many tiles are needed to cache a city from zoom 0 to 17, and how much storage will they take? This calculator answers those questions for any latitude, with 256 or 512 pixel tiles, any screen or print resolution, and shows the footprint of your viewport or printed sheet on an offline world map.

The formula

At zoom z, the ground resolution in metres per pixel is 40,075,016.686 × cos(latitude) ÷ (tile size × 2^z). The first number is the equatorial circumference used by EPSG:3857. With 256-pixel tiles that gives 156,543 m per pixel at zoom 0 on the equator, halving at each zoom. Mapbox GL and MapLibre draw 512-pixel tiles, so the same zoom number shows twice the detail; switch the tile size to compare.

From resolution to scale

A scale such as 1:25,000 compares a length on the display or paper with the same length on the ground. Multiply metres per pixel by pixels per metre of the display: a 96 DPI screen has 96 ÷ 0.0254 = 3,780 pixels per metre. Real monitors vary from about 90 to over 200 DPI, so a screen scale is only an approximation. Enter your actual DPI if you know it.

Print tab

Enter the size of the map frame on paper, the print scale and the printer DPI. The tool shows how much ground the sheet covers, how many metres one printed dot represents, the zoom whose tiles match that detail, and the pixel size of the image you need to render. Render at the next whole zoom above the result to avoid blurry output.

Tile tab

Enter a bounding box and a zoom range. For each zoom the tool computes the tile x and y range, the count and the running total, plus a storage estimate from the average tile size you supply. Vector tiles are often 10 to 50 KB; raster PNG tiles vary more. The CSV export lists the ranges so you can feed them to your own seeding script.

Limits

Web Mercator stops at about 85.05 degrees north and south and stretches areas towards the poles, so scales far from the equator are only valid near the stated latitude. Distances on the ground are measured along the local parallel, not on the ellipsoid. The tool does not download tiles, and you should not bulk-download from public tile servers such as tile.openstreetmap.org, whose usage policy forbids it.

Worked example

A team builds a delivery map of Dhaka at latitude 23.81°. At zoom 15 with 256-pixel tiles one pixel covers 4.37 m, which is about 1:16,500 on a 96 DPI screen, and a 1280-pixel-wide viewport shows 5.6 km of ground. To print an A4 landscape map at 1:25,000 and 300 DPI they need 2.12 m per printed dot, zoom 16.05 detail (so render zoom 17 tiles) and an image of 3,508 by 2,480 pixels covering 7.4 km by 5.25 km. Caching the box from 23.70 to 23.90 north and 90.32 to 90.50 east for zooms 0 to 16 takes 1,879 tiles, about 46 MB at 25 KB per tile, and 1,360 of them are at zoom 16 alone.

Quick facts

Frequently asked questions

What zoom level equals 1:25,000?

It depends on latitude and screen DPI. At the equator on a 96 DPI screen it is about zoom 14.5; at 50° north it is about 13.9. The scale tab works it out for your values.

Why does the scale change with latitude?

Web Mercator stretches the map by 1 / cos(latitude), so each pixel covers less ground as you move away from the equator.

Are Google Maps and OpenStreetMap zoom levels the same?

Yes for 256-pixel raster tiles. Vector maps with 512-pixel tiles, such as Mapbox GL, are one zoom level apart for the same detail.

Can fractional zoom levels be used?

Many libraries allow them for display. Tiles exist only at whole zooms, so the tool rounds up when it recommends a level to render.

How accurate is the storage estimate?

It is the tile count times your average size. Oceans and empty land compress far smaller than dense cities, so measure a sample of your own tiles.

Does the map use an online tile service?

No. It draws bundled Natural Earth outlines, so nothing is requested from a tile server.

Guides for this tool

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