Geodetic → ECEF
Lat/long/height → XYZ meters
X = 1,334,000.5 m
Y = -4,654,052.1 m
Z = 4,138,306.8 m
ECEF → Geodetic
XYZ meters → lat/long/height
Lat = 40.711001°
Lng = -74.005836°
H = -228.2 m
All conversions run on the WGS84 ellipsoid entirely in your browser. Encoded strings are handy for compact storage, database keys, and sharing locations without long decimal coordinates.
Runs entirely in your browser — your inputs never leave this page.
How this tool works
- 1
Uses the WGS84 ellipsoid closed-form equations to map geodetic coordinates into 3D Cartesian space, with an iterative solution for the reverse conversion.
Common uses
- GPS satellite orbit math
- Surveying network adjustments
- Coordinate system research
Frequently asked questions
ECEF puts Earth’s center at 0,0,0 and measures position in meters along three axes. GPS satellites are tracked in this system.
More in Coordinates & Projections
- Geohash ConverterEncode any latitude/longitude into a geohash string and decode geohashes back to coordinates with bounding-box visualization.
- Plus Codes ConverterEncode coordinates into Plus Codes and decode Plus Codes back to latitude/longitude — pure math, no API key needed.
- Maidenhead LocatorConvert latitude/longitude to Maidenhead grid squares for amateur radio, and decode grid squares back to coordinates.
- EPSG ConverterTransform coordinates between hundreds of global EPSG datums, including WGS84 (EPSG:4326), Web Mercator (EPSG:3857), UTM zones, and US State Plane systems.
- Radius Around CoordinatesGenerate mathematically exact geodesic buffer circles centered on specific latitude and longitude coordinates with adjustable radii in miles, km, and nautical miles.
- Lat Long FinderFind the exact GPS latitude and longitude coordinates of any place on Earth by clicking on the interactive map or entering an address.
- Coordinate ConverterUniversal geospatial coordinate converter translating seamlessly between Decimal Degrees, Degrees Minutes Seconds, UTM, MGRS, and Web Mercator.
- MGRS ConverterConvert military MGRS alphanumeric coordinates to standard civilian WGS84 latitude/longitude, UTM easting/northing, and NATO grid references.
- Coordinate Offset CalculatorMove a latitude and longitude to a new point: head out on a bearing for a set distance, or shift it a number of feet or meters east and north. Results are shown in decimal degrees and in degrees, minutes and seconds, with both points plotted on a map.
- Geographic Center FinderAdd places by pasting coordinates, filling a small form, or clicking the map, and find their true geographic center. The math runs on the sphere, not on a flat average — and the tool shows both answers so you can see the difference.
- Bounding Box GeneratorDraw a bounding box three ways — around a center point and radius, between two corners, or by clicking two corners on the map — and copy it as a GeoJSON bbox array, a GeoJSON Polygon, Leaflet bounds, or an OSM-style bbox string.
- Random Location GeneratorDrop a truly random point anywhere on the planet — every square mile of land and ocean equally likely. See its coordinates in decimal degrees and DMS, a pin on the map, and the nearest place name, with a land-only mode that keeps drawing until the point falls inside a country.
- UK Grid Reference ConverterConvert latitude and longitude to an Ordnance Survey National Grid reference — and turn any grid reference back into GPS coordinates. Uses the real OSGB36 datum transformation and Transverse Mercator projection, with 6, 8 or 10-figure references.
A Berlin Engineer Checks a GNSS Receiver That Only Speaks XYZ
An engineer in Berlin is testing a survey-grade GNSS receiver on a rooftop. The receiver's raw output does not give latitude and longitude at all — it reports three big numbers in meters: X = 3,783,281, Y = 901,653, Z = 5,038,267. These are ECEF coordinates, measured from the very center of the Earth, and she opens the ECEF XYZ Converter to find out where the receiver thinks it is.
Pasted in, the three numbers unfold into something human: latitude 52.5200° N, longitude 13.4050° E, with the antenna about 60 meters above the ellipsoid — her rooftop in central Berlin, exactly where she is standing. In the ECEF system, the X axis points out through the equator at longitude zero, the Y axis points out through the equator at 90 degrees east, and the Z axis points out through the North Pole. Her Z value, just over 5 million meters, is essentially her distance from the equatorial plane. She does one more sum on a sticky note: square each of the three numbers, add the results, and take the square root. For her Berlin rooftop the answer is about 6,365,000 meters — her true distance from the center of the Earth. It is less than the equatorial radius, and it should be: Earth bulges at the equator, so a point at Berlin's latitude sits a little closer to the center than a point standing on the equator, rooftop or not. When that check lands where she expects, she trusts the receiver's fix completely.
She checks the converter against two anchor cases to be sure she trusts it. A point on the equator at longitude zero must come out as X = 6,378,137 meters, Y = 0, Z = 0 — because 6,378,137 meters is Earth's equatorial radius. It does. And her Berlin Z of about 5.04 million meters is less than that radius, which makes sense: at latitude 52.5 degrees she is well north of the equator, so her height above the equatorial plane is smaller than the full radius.
Why bother with such an awkward system? Because satellites and computers love it. GPS satellites broadcast their positions in Earth-centered coordinates, distances are straight-line subtractions with no curved-surface math, and a receiver can compute its position in any orientation without special cases for poles or date lines. Latitude and longitude are for humans; XYZ is how the machines talk among themselves — and this converter is the translator between the two. Her team feels the benefit the following week, comparing the rooftop antenna with a second one at a partner institute across Berlin. In latitude and longitude, the exact straight-line distance between two points means curved-surface formulas and careful bookkeeping. In ECEF it is schoolbook geometry: subtract the X values, subtract the Y values, subtract the Z values, and one square root gives the distance — about 6.2 miles of Berlin between the two antennas, measured as the satellite sees it, with no map projection anywhere in the calculation.
Common mistakes to avoid
- Feeding in latitude and longitude where X, Y, Z belong. ECEF values are millions of meters. If your 'X' looks like 52.52, you are holding degrees, not ECEF — convert in the right direction.
- Confusing ellipsoidal height with elevation above sea level. The height in these conversions is measured from the smooth WGS84 ellipsoid, which can differ from sea-level elevation by 100 meters or more. GPS height is not the number on a topo map.
- Losing the signs. Berlin's X and Y are positive, but a receiver in Denver reports negative X and negative Y. Dropping a minus sign throws the point to another continent and another ocean.
Pro tips
- Sanity-check any ECEF point by its size: real values are always in the millions of meters, and X squared plus Y squared plus Z squared should come out near Earth's radius squared.
- Keep at least one decimal place — rounding ECEF to whole meters is fine, but rounding to hundreds blurs your position by a city block.
- When a data sheet gives a height, confirm whether it is ellipsoidal or sea-level before converting; mixing them is the most common ECEF error of all.
Coordinates, Datums & Field Surveying: Finding Anything on Earth
Latitude and longitude are just the beginning. Learn the datums, grids, and projections behind every coordinate — and why mixing them up can move your point by hundreds of feet. Written for ECEF XYZ Coordinate Converter and the everyday mapping tasks around it.
Latitude & Longitude: The Global Address
Latitude measures how far north or south you are, from 0 at the equator to 90 at the poles. Longitude measures east or west from Greenwich, England, from 0 to 180. Together they name every spot on Earth with two numbers — the closest thing geography has to a universal address.
Coordinates come in three dialects. Decimal degrees write New York as 40.7128, -74.0060 — the format computers prefer. Degrees-minutes-seconds splits the same point into 40°42'46"N, 74°0'22"W, the traditional navigator's format. Degrees-decimal-minutes sits in between. All three describe the identical point; converters just translate the notation.
Precision has a simple scale. One degree of latitude is about 69 miles everywhere. Each decimal place you add zooms roughly tenfold: two decimals place you within half a mile, four decimals within 30 feet, and six decimals within 4 inches — more precision than consumer GPS can actually deliver.
Watch the signs. In decimal format, southern latitudes and western longitudes are negative. Forgetting the minus sign on a Chicago longitude (-87.6) teleports your point to central China. It is the most common coordinate mistake in existence.
Datums: The Invisible Foundation
Coordinates are meaningless without a datum — the mathematical model of the Earth they refer to. The global standard is WGS84, the datum your phone's GPS uses. But much American mapping still references NAD83, tuned for North America, and the two disagree by a few feet in places.
A few feet sounds trivial until it is not. Property lines, utility trenches, and runway thresholds all live in that margin. Mixing a WGS84 coordinate into a NAD83 dataset shifts every point slightly — usually harmless on a web map, potentially expensive on a construction site.
Older maps add more ghosts. The 1927 North American Datum (NAD27) can differ from modern coordinates by up to 300 feet in some regions. If you are digitizing a decades-old paper map or reading coordinates from a historic document, confirm the datum before trusting the numbers.
Europe went through the same evolution. Many countries mapped on national datums for a century before adopting the European ETRS89 system. Cross-border datasets must declare their datum or inherit silent errors.
This page shows the first two chapters. Read the complete this category field guide →