geoprimsField-grade geospatial math

Web Mercator to latitude and longitude

Converts Web Mercator (EPSG:3857) x and y back to a WGS 84 latitude and longitude.

Go the other way: Latitude and longitude to Web Mercator →

24.381786919°

That is 24.381786919°, -100.333333367°.

Longitude
Provenance
Computed by
geodesy.projection.web-mercator-inverse 1.0.0, core 0.1.0
Model
Popular Visualisation Pseudo Mercator (EPSG method 1024), WGS 84 semi-major axis
Accuracy
Exact to double precision
Notes
None
Cites
International Association of Oil & Gas Producers (IOGP), Coordinate Conversions and Transformations including Formulas, IOGP Publication 373-7-2 (Guidance Note 7-2); National Geospatial-Intelligence Agency, Implementation Practice Web Mercator Map Projection, NGA.SIG.0011

Something look off?

Your values

Showing an example. Change anything.
Run many at once from a CSV

Loading…

How we got thisFormula, worked example, sources, and proof

Model: Popular Visualisation Pseudo Mercator (EPSG method 1024), WGS 84 semi-major axis

Accuracy: Exact to double precision

When to use this: Use this to turn web map meters back into a latitude and longitude: a coordinate copied from a tile server, a vector tile, or a GIS layer in EPSG:3857. The result is on WGS 84, ready for a GPS, a geodesic distance, or another grid.

Limitations: The easting and northing must lie on the map: within 20,037,508.34 m of the origin each way, the half circumference of the sphere the formulas use. Beyond that the point is off the edge and is refused rather than wrapped around. The latitude comes back on WGS 84 as the map assumes, but a coordinate from a map that was drawn on another datum carries that datum's offset, which this can not see.

Worked example: Back to the IOGP example. Source: IOGP Guidance Note 7-2, 3.4.5 example reversed: 24°22'54.433" N, 100°20'00.000" W. It is golden test vector v001, and every build checks the tool still gives its answer within its tolerance.

You enter

Easting
-11169055.58 m
Northing
2800000 m

You get

Latitude
24.381786919°
Longitude
-100.333333367°

Review: Not yet independently reviewed by a geodesist.

Last verified: 2026-09-19, when a maintainer last confirmed this tool's sources at the issuer. See the sources ledger.

Status: version 1.0.0, core 0.1.0. See this tool in the verification report.

Changes

Checked against: 22 golden test vectors (download the test vectors, each with its source and tolerance). See how results are checked and every source.

Constants this tool assumes

Values you do not enter, and where each comes from.

Sphere radius, the WGS 84 semi-major axis
6378137 m — NGA.SIG.0011 Web Mercator implementation practice
Latitude limit
85.05112878 deg — NGA.SIG.0011 Web Mercator implementation practice

Sources