EPSG:4326 vs EPSG:3857: Degrees vs Metres, and Which to Use
Published
EPSG:4326 and EPSG:3857 are the two most common coordinate reference systems in GIS and web mapping: EPSG:4326 is a geographic system that records latitude and longitude in degrees on the curved WGS 84 ellipsoid, while EPSG:3857 is a projected system (Web Mercator) that flattens those coordinates onto a square grid measured in metres for online map tiles. EPSG:4326 covers the entire planet from -180° to +180° longitude and -90° to +90° latitude, whereas EPSG:3857 runs from -20,037,508.34 m to +20,037,508.34 m on both axes and cuts off the poles at ±85.0511° latitude.
Think of EPSG:4326 as the address book and EPSG:3857 as the wallpaper. GPS receivers, GeoJSON files and web APIs store coordinates in EPSG:4326 degrees, then web map libraries project those degrees into EPSG:3857 metres on the screen so your points sit cleanly on top of Google Maps or OpenStreetMap tiles. Neither code should ever be used to measure flat distances or areas.
DegreesEPSG:4326
WGS 84 latitude and longitude
Covers -180° to +180° and -90° to +90°
MetresEPSG:3857
Web Mercator square tile grid
±20,037,508.34 m, clipped at ±85.0511° latitude
×3.98area inflation
at Oslo's latitude (59.9°N) in 3857
1 hectare on the ground measures nearly 4 ha on the grid

EPSG:4326 vs EPSG:3857 at a glance
Both codes come from the EPSG Geodetic Parameter Dataset, maintained by the International Association of Oil & Gas Producers (IOGP, originally the European Petroleum Survey Group). Esri's developer documentation names 4326 and 3857 as the two most common spatial reference identifiers in web mapping. Our guide on what a CRS is explains how geographic and projected coordinate systems fit together, and you can browse any code in our CRS lookup.
| Feature | EPSG:4326 (WGS 84) | EPSG:3857 (Web Mercator) |
|---|---|---|
| Official EPSG name | WGS 84 | WGS 84 / Pseudo-Mercator |
| CRS type | Geographic 2D (on an ellipsoid) | Projected (on a flat plane) |
| Coordinate units | Degrees (latitude and longitude) | Metres (x and y, or easting and northing) |
| X / longitude range | -180° to +180° | -20,037,508.34 m to +20,037,508.34 m |
| Y / latitude range | -90° to +90° | -20,037,508.34 m to +20,037,508.34 m (about ±85.0511° latitude) |
| Poles included | Yes (all the way to 90°N and 90°S) | No (cut off above 85.0511°N and below 85.0511°S) |
| Primary job | Storing and exchanging coordinates, GPS, GeoJSON, databases, APIs | Displaying basemap tiles in web maps (Google Maps, OpenStreetMap, Bing Maps) |
| Suitable for planar distance or area measurement? | No (units are degrees, and 1° of longitude shrinks toward the poles) | No (scale inflates with latitude as 1 / cos(latitude)) |
The same point in both coordinate systems
To see the difference in raw numbers, take the Statue of Liberty in New York Harbor:
- In
EPSG:4326: latitude40.6892, longitude-74.0445(angles in decimal degrees north of the equator and west of the Prime Meridian). - In
EPSG:3857:x = -8,242,596 m,y = 4,966,606 m(projected Web Mercator metres west of the Prime Meridian and north of the equator).
Both pairs describe the exact same spot on the WGS 84 datum. You can translate any coordinate pair between the two in our coordinate converter.
What is EPSG:4326 (WGS 84)?
EPSG:4326 is the identifier for WGS 84 (World Geodetic System 1984), a geographic 2D coordinate reference system that locates points by latitude and longitude in degrees on an oblate ellipsoid. The WGS 84 ellipsoid has a semi-major axis (equatorial radius) of 6,378,137 m and an inverse flattening of 298.257223563. You can inspect the full parameter record on our EPSG:4326 reference page.
Every consumer GPS receiver computes and reports positions in WGS 84. It is also the mandatory coordinate system of GeoJSON: the IETF RFC 7946 specification published in 2016 requires all GeoJSON coordinates to be WGS 84 longitude and latitude in decimal degrees and dropped the older "crs" property altogether. Most other GIS file formats, spatial databases and REST APIs use EPSG:4326 as their default exchange format because it covers the whole Earth without seams or zone borders.
When you open an EPSG:4326 layer in desktop GIS without picking a separate map projection, the software plots longitude on the horizontal x-axis and latitude on the vertical y-axis (an equirectangular or Plate carrée view). Because a degree of longitude is about 111 km wide at the equator and shrinks to zero at the poles, drawing degrees as a flat square grid stretches high-latitude countries horizontally, as shown on the left side of the world map figure above.
What is EPSG:3857 (Web Mercator / Pseudo-Mercator)?
EPSG:3857, officially named WGS 84 / Pseudo-Mercator in the EPSG registry, is the projected coordinate reference system behind nearly all interactive web maps. Google Maps, OpenStreetMap tiles, Bing Maps and most XYZ tile services cut their basemap pyramids in EPSG:3857. You can read its full parameters on our EPSG:3857 reference page.
Web maps use EPSG:3857 rather than drawing EPSG:4326 directly for four reasons:
- A square world for square tiles. Web maps slice the planet into a pyramid of
256 × 256pixel square tiles: 1 tile at zoom level 0, 4 tiles at zoom 1, 16 at zoom 2, and so on. By cutting the Mercator projection off at ±85.0511° latitude,EPSG:3857makes the projected world an exact square measuring40,075,016.68 mon each side (from-20,037,508.34 mto+20,037,508.34 min both x and y). - North is always straight up. Meridians are parallel vertical lines and parallels of latitude are horizontal lines everywhere on the map.
- Street intersections keep their right angles. Mercator preserves local angles, so when a user zooms in on a city, roundabouts look round and 90-degree street corners stay at 90 degrees regardless of latitude.
- Simple spherical math. Web Mercator takes WGS 84 ellipsoid latitude and longitude and feeds them into the spherical Mercator formulas, pretending the Earth is a sphere of radius
6,378,137 mrather than a slightly flattened ellipsoid.
That spherical shortcut is why the official EPSG name is Pseudo-Mercator. Because it applies spherical equations to ellipsoidal coordinates, the projection is not strictly conformal on the ellipsoid, and its north-south positions differ from a true ellipsoidal Mercator projection by up to tens of kilometres at high latitudes. In the official EPSG record, the scope of EPSG:3857 is restricted to "Web mapping and visualisation", and the remarks state that it is "not a recognised geodetic system".
Legacy codes for EPSG:3857 (900913, 3785, 102100)
Before the EPSG registry assigned code 3857, software vendors invented their own identifiers for Web Mercator. You will still meet these codes in older shapefiles, .prj files, GeoServer configurations and ArcGIS services; they all refer to the same Web Mercator grid as EPSG:3857:
EPSG:900913: An unofficial code (900913spellsGOOGLEin digits).EPSG:3785: An earlier EPSG code for the same projection, now deprecated in favor ofEPSG:3857.ESRI:102100andESRI:102113: Esri Well-Known IDs (WKIDs) for Web Mercator.
Why you must never measure distances or areas in EPSG:3857 (or EPSG:4326)
A common mistake in GIS is loading a polygon layer in EPSG:3857 (because it came from a web service or matches the basemap) and running a flat area, length or buffer tool in metres. Because EPSG:3857 coordinate units are called "metres", the numbers look plausible at first glance, but away from the equator they are severely inflated.
In the Mercator projection, the converging meridians are pulled apart so they stay parallel all the way to the top and bottom of the map. To keep local shapes round, the projection stretches the north-south scale by the exact same factor. As a result, at any latitude φ:
- Linear scale grows as
1 / cos(latitude) - Area scale grows as
1 / cos²(latitude)
At 60° latitude (near Oslo or Anchorage), cos(60°) = 0.5, so 1 metre on the ground measures 2 metres in EPSG:3857 coordinates, and 1 square metre on the ground measures 4 square metres (2 × 2) on the grid.

The table below shows the exact length and area inflation factors (1 / cos(lat) and 1 / cos²(lat)) across seven cities from the equator to the high Arctic:
| City | Latitude | Length factor in EPSG:3857 | Area factor in EPSG:3857 |
|---|---|---|---|
| Quito | 0° | ×1.00 | ×1.0 |
| Johannesburg | 26.2°S | ×1.11 | ×1.24 |
| New York | 40.7°N | ×1.32 | ×1.74 |
| London | 51.5°N | ×1.61 | ×2.58 |
| Oslo | 59.9°N | ×1.99 | ×3.98 |
| Reykjavik | 64.2°N | ×2.29 | ×5.26 |
| Longyearbyen (Svalbard) | 78.2°N | ×4.90 | ×23.99 |
The formula holds in practice: in QGIS we drew a real 1 km² square in Oslo, reprojected it to EPSG:3857 and read 3.966 km², within 0.6% of 1 / cos²(latitude) (the measurement for six cities is in our CRS guide). You can see this distortion interactively by dragging countries north and south on our true size map.
Measuring flat geometry in EPSG:4326 is just as broken, for a different reason: its units are degrees, not metres. If you ask a GIS tool for a "100" buffer on an EPSG:4326 layer, it builds a buffer with a radius of 100 degrees, a large part of the planet. And because 1 degree of longitude is about 111 km at the equator and 0 km at the poles, a "square degree" does not have a constant area anywhere on Earth.
What to use for measurements instead:
- Reproject your layer to a local UTM zone (which you can find on our UTM zone map) or your country's official national grid before running planar buffers, lengths or areas.
- Or use geodesic (ellipsoidal) calculations, which compute distances and areas directly on the curved WGS 84 ellipsoid regardless of how the map is drawn on screen.
Which should you use: EPSG:4326 or EPSG:3857?
Follow one simple rule across your whole workflow: store and exchange in EPSG:4326, display web tiles in EPSG:3857, and measure in a local projected CRS.
- Storing data in files, databases and APIs -> use
EPSG:4326. Save GeoJSON files, CSV tables with coordinates, GPS tracks and global PostGIS tables inEPSG:4326. It covers the poles, has no projection distortion baked into the stored coordinates, and is the format every web mapping library expects as input. - Writing code with Leaflet, MapLibre or OpenLayers -> pass
EPSG:4326, let the map render inEPSG:3857. Web map libraries default their view canvas toEPSG:3857so raster and vector tiles line up, while their API functions take coordinates inEPSG:4326degrees and project them on the fly in the browser. (Note that Leaflet methods take[lat, lon], whereas MapLibre GL JS and GeoJSON take[lon, lat].) - Displaying a project with an OpenStreetMap or Google basemap in desktop GIS -> set the project display CRS to
EPSG:3857(or a local CRS). Keeping the project canvas inEPSG:3857avoids warping the raster text labels on web tile layers, while your vector layers remain stored inEPSG:4326or your local grid on disk. - Running buffers, distances, overlays or area calculations -> use neither. Reproject the layer to a local UTM zone or an equal-area projection first.
How to handle EPSG:4326 and EPSG:3857 in QGIS
In QGIS, every layer has its own CRS, and the project canvas has a display CRS shown in the bottom-right corner of the window (or under Project > Properties > CRS). Because QGIS reprojects layers on the fly, you can load a GeoJSON file in EPSG:4326 on top of an OpenStreetMap XYZ tile basemap in EPSG:3857 and they will line up automatically without converting any files on disk.
Check each layer's CRS vs the project CRS
Right-click your layer in the Layers panel and open Properties > Information (or Source) to see the CRS stored in the file. Look at the bottom-right corner of the main QGIS window to see the project display CRS. They do not need to match for the map to line up visually.
Reproject a layer when you need to convert the coordinates in the file
If a web service, script or analysis tool requires the file itself in the other coordinate system, use Vector > Data Management Tools > Reproject Layer (or right-click the layer and choose Export > Save Features As...), select
EPSG:4326orEPSG:3857as the target CRS, and save a new file. This recalculates the coordinate numbers between degrees and metres.Fix layers that appear at (0, 0) off the coast of Africa
If your layer lands at
0°N, 0°Ein the Gulf of Guinea ("Null Island") or refuses to line up with the basemap, someone assigned the wrong CRS label to the file without converting the numbers. Do not run Reproject Layer. Instead, right-click the layer, choose Layer CRS > Set Layer CRS, and pick the CRS that matches the numbers actually stored inside the file (EPSG:4326if the coordinates look like-74.04, 40.68;EPSG:3857if they look like-8242596, 4966606).
The (0, 0) bug works like this. If a file contains EPSG:4326 degree numbers like (-74.04, 40.68) and you tell QGIS via Set Layer CRS that the file is in EPSG:3857 metres, QGIS plots the layer 74 metres west and 41 metres north of the origin (0, 0) off the coast of West Africa. Conversely, if a file contains EPSG:3857 metre numbers in the millions and you label it EPSG:4326, the coordinates exceed ±180° / ±90° and vanish off the globe.
If you are working with several layers in mixed coordinate systems, AI Agent, the QGIS plugin we build, can check each layer's CRS and reproject it from one sentence in the QGIS side panel.
Questions people ask
EPSG:4326 is a geographic coordinate reference system (WGS 84) that expresses positions as latitude and longitude in degrees on a curved ellipsoid, covering the whole globe from -90° to +90° latitude. EPSG:3857 (Web Mercator / Pseudo-Mercator) is a projected coordinate system that flattens those coordinates onto a square grid in metres (within ±20,037,508.34 m, clipped at ±85.0511° latitude) to display online map tiles such as Google Maps and OpenStreetMap.
Yes, EPSG:4326 is the official EPSG code for the 2D geographic WGS 84 coordinate reference system used by GPS receivers and mandated by the GeoJSON specification (RFC 7946). Note that the phrase "WGS 84" also names the underlying ellipsoid and datum, which is reused by projected systems such as EPSG:3857 (WGS 84 / Pseudo-Mercator) and the WGS 84 UTM zones (EPSG:32601 to EPSG:32760).
Web maps use EPSG:3857 because clipping the Mercator projection at ±85.0511° latitude turns the entire world into an exact square, which can be subdivided neatly into a pyramid of 256 × 256 pixel square tiles at every zoom level. It also keeps north straight up everywhere and preserves local street angles when users zoom into cities.
Yes, the coordinate unit of EPSG:3857 is the metre, running from -20,037,508.34 m to +20,037,508.34 m along both the x and y axes. However, those grid metres only equal real ground metres along the equator: away from the equator, lengths are inflated by 1 / cos(latitude) and areas by 1 / cos²(latitude), so you must never use EPSG:3857 metres to measure distances or areas.
Store and exchange your spatial data in EPSG:4326 (unless you are working strictly inside a single national or local surveying grid). EPSG:4326 covers the poles, is required by the GeoJSON standard, and is the input format expected by web mapping libraries like Leaflet, MapLibre and OpenLayers, which project coordinates into EPSG:3857 automatically when drawing tiles on screen.
For individual points, paste your latitude and longitude into our online coordinate converter and select EPSG:3857 as the output. For a vector layer in QGIS, open Vector > Data Management Tools > Reproject Layer (or right-click the layer and choose Export > Save Features As...), set the target CRS to EPSG:3857, and save the new file.
When a layer appears near (0, 0) in the Gulf of Guinea off West Africa, its coordinates are actually in EPSG:4326 decimal degrees (numbers between -180 and +180), but the layer's CRS was mistakenly set to a projected system in metres like EPSG:3857, causing QGIS to plot them a few dozen metres from the origin. Fix it by right-clicking the layer, selecting Layer CRS > Set Layer CRS, and choosing EPSG:4326 without running Reproject Layer.

Do it in QGIS by asking for it
AI Agent carries out the task you describe, in your own QGIS project. Free, no card.
, every layer has its own CRS, and the project canvas has a display CRS shown in the bottom-right corner of the window (or under Project > Properties > CRS). Because QGIS reprojects layers on the fly, you can load a GeoJSON file in 

