SM Datum

Web Mercator to Lat Long Converter

To convert Web Mercator (EPSG:3857) x and y in metres to WGS84 latitude and longitude, enter both values. The converter returns decimal degrees, one point or a whole list. The results agree with PROJ to far better than a millimetre, and your numbers never leave your browser.


Convert many at once

One point per line: x then y in metres, separated by a space, comma, semicolon or tab.

How to convert Web Mercator to latitude and longitude

  1. Enter x and y. Use the EPSG:3857 values in metres, for example -8242596.04 and 4966621.82.
  2. Click Convert. The latitude and longitude appear in decimal degrees on the WGS84 datum, with a link to open the point in Google Maps.
  3. Check the order. x comes first and is the east-west value; y is the north-south value.
  4. Or convert a list. Paste many, one per line, and download the results as a CSV.

The formula

Web Mercator is the Mercator projection on a sphere of radius R = 6,378,137 m. The inverse gives longitude λ and latitude φ from x and y:

λ = x / R
φ = 2 × atan( exp( y / R ) ) - π/2

Both results are in radians and are converted to degrees for display. The latitude and longitude are then read as WGS84.

Worked example

Convert x = -8,242,596.04 m and y = 4,966,621.82 m:

longitude = -8242596.04 / 6378137 = -1.29231 rad = -74.044500°
latitude  = 2×atan(exp(4966621.82 / 6378137)) - π/2 = 40.689306°

That is the Statue of Liberty in New York harbour.

Valid range

  • x: -20,037,508.34 to 20,037,508.34 m, which is longitude -180° to 180°.
  • y: -20,048,966 to 20,048,966 m, which is latitude -85.06° to 85.06°, the area of use of EPSG:3857.
  • Web map tiles use x and y inside the square ±20,037,508.34 m (latitude 85.0511°). A y beyond ±20,048,966 m has no real location, and the tool says so.

Common mistakes

  • Treating the numbers as degrees. A value such as -8242596 is metres. If your numbers are already between -180 and 180, they are probably latitude and longitude already.
  • Swapping x and y. x is the east-west value (about ±20 million at the date line). Swapping them usually gives an error or a point in the wrong ocean.
  • Thousands separators. Commas inside numbers such as -8,242,596.04 are read as thousands separators when they sit between groups of three digits. Prefer plain numbers.
  • Confusing 3857 with a local grid. Many national grids are also in metres. If your coordinates are from a UTM zone or a state plane system, use UTM to lat long or the CRS Converter.

What this converter does and does not do

  • EPSG:3857 only. It does not guess the CRS. If your numbers are in another projection, the result will be wrong.
  • Accuracy. We compared random points from around the world with PROJ and the inverse agrees to far better than a millimetre.
  • Runs in your browser. No coordinates are sent to a server.

Related converters

To go the other way, use WGS84 to Web Mercator. For other grids see UTM to lat long and the CRS Converter.

Frequently asked questions

How do I convert Web Mercator to latitude and longitude?

Enter x and y in metres and click Convert. The page uses longitude = x / R and latitude = 2 atan(exp(y / R)) - π/2 with R = 6,378,137 m, and returns decimal degrees.

What is EPSG:3857?

Web Mercator, the projected coordinate system used by Google Maps, OpenStreetMap and most web map tiles. Its units are metres.

What is the range of valid x and y values?

x runs from -20,037,508.34 to 20,037,508.34 m. y is valid up to 20,048,966 m, which is a latitude of 85.06°; web map tiles stop at 20,037,508.34 m (85.0511°).

How do I know my coordinates are Web Mercator?

They are metres, usually seven or eight digits, and the layer or service is labelled EPSG:3857, 900913 or ESRI:102100. Web map tile coordinates use this system.

Why do my coordinates look like normal degrees?

If both values lie between -180 and 180, they are probably already latitude and longitude (EPSG:4326).

Is the result WGS84?

Yes. The latitude and longitude returned are read as WGS84, which EPSG:3857 is defined from.

Is this the same result as PROJ or QGIS?

Yes. We tested random points from around the world against PROJ and they agree to far better than a millimetre.

Can I convert a whole file?

For files, use the CRS Converter. This page converts single points and pasted lists.

What if my y value is out of range?

The tool rejects it with a message. A y beyond 20,048,966 m is outside the area of use of EPSG:3857.

Can I convert a list at once?

Yes. Paste one entry per line into the batch box, click Convert list, then copy the results or download them as a CSV. Lines that cannot be read are flagged with the reason instead of being skipped silently.

Does it send my coordinates to a server?

No. The conversion runs in your browser, and once the page has loaded it needs no connection.

Related tools and guides

Need survey data cleaned, projected or mapped at scale? Sagarmekhla GIS Consultancy offers GIS and remote sensing services.

Request a consultation

Last updated 2026-10-15. Published by Sagarmekhla GIS Consultancy.