geoprimsField-grade geospatial math

Latitude and longitude to Web Mercator

Converts a WGS 84 latitude and longitude to Web Mercator (EPSG:3857) x and y, the grid of web map tiles, with its scale along the meridian and the parallel.

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

-11,169,055.576m

Easting -11,169,055.576 m, northing 2,800,000.003 m.

Northing
Grid convergence
Scale along the meridian
Scale along the parallel
Provenance
Computed by
geodesy.projection.web-mercator-forward 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; agrees with PROJ within 1 mm
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; agrees with PROJ within 1 mm

When to use this: Use this to place a latitude and longitude on a web map's grid: the meters that tile servers, vector tiles, and most online maps work in. It is the projection behind EPSG:3857, and the numbers match what those maps and PROJ produce.

Limitations: Web Mercator applies the sphere's Mercator formulas to WGS 84 latitudes, so it is not conformal on the ellipsoid: the scale north-south and east-west differ by up to about 0.7 percent, and angles are slightly off. Its scale grows without bound toward the poles, and the map stops at 85.05112878 degrees north and south, where it becomes square; points beyond are refused. Its distances and areas are not ground distances and areas: at 60 degrees a map meter is half a ground meter.

Worked example: The IOGP example in Mexico. Source: IOGP Guidance Note 7-2, 3.4.5 example: E = -11,169,055.58 m, N = 2,800,000.00 m. It is golden test vector v001, and every build checks the tool still gives its answer within its tolerance.

You enter

Latitude
24°22'54.433"N
Longitude
100°20'00.000"W

You get

Easting
-11,169,055.576 m
Northing
2,800,000.003 m
Grid convergence
0°
Scale along the meridian
1.103426365
Scale along the parallel
1.097291434

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: 23 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