GNSS Simulator
Talk to an engineer
GNSS Simulator

GNSS ENGINEERING TOOLS

LLA ↔ ECEF Coordinate Converter

Convert WGS 84 geodetic latitude, longitude and ellipsoidal height to Earth-centered, Earth-fixed X, Y, Z coordinates—or convert ECEF back to LLA. Check receiver positions and trajectory inputs with explicit units and height references.

WGS 84 ellipsoid Two-way conversion Decimal degrees + metres

Convert coordinates

Calculation runs in your browser

North / east positive; south / west negative. Latitude −90° to +90°; longitude −180° to +180°.

Height above the WGS 84 ellipsoid. Mean sea level / orthometric height requires a separate geoid correction.

Supported ellipsoidal height: −100,000 to 1,000,000,000 m. Deep-interior coordinates are outside this tool’s scope.

TRY A REFERENCE POINT

ECEF RESULT

Calculated
X (m) —
Y (m) —
Z (m) —
Reference ellipsoid
WGS 84
Height reference
Ellipsoidal
Distance from Earth’s centre
—

Displayed digits are numerical output, not a statement of survey accuracy.

Fixed WGS 84 parameters: a = 6,378,137 m; 1/f = 298.257223563. This is a coordinate conversion within one reference system; it does not apply a datum, epoch or geoid transformation.

WGS 84 reference points

These points use zero ellipsoidal height unless stated. At either pole, any longitude describes the same Cartesian point.

Latitude / longitude / h X (m) Y (m) Z (m)
0° / 0° / 0 m 6,378,137 0 0
0° / 90° / 0 m 0 6,378,137 0
90° / any / 0 m 0 0 6,356,752.314245
−90° / any / 0 m 0 0 −6,356,752.314245
45° / 45° / 100 m 3,194,469.145061 3,194,469.145061 4,487,419.119544

LLA to ECEF formulas

Let φ be geodetic latitude, λ longitude and h ellipsoidal height. Convert decimal degrees to radians before evaluating trigonometric functions. N is the prime vertical radius of curvature.

f = 1 / 298.257223563       e² = f(2 − f)
N = a / √(1 − e² sin²φ)
X = (N + h) cosφ cosλ
Y = (N + h) cosφ sinλ
Z = [N(1 − e²) + h] sinφ

The inverse calculation uses atan2(Y, X) for longitude and iterates the latitude equation. Height is then evaluated without dividing by cosφ, which avoids that division near the poles. On the Z axis, longitude is returned as 0° by convention; at the origin, latitude and longitude are undefined.

Check the coordinate definition before import

Use ellipsoidal height

If H is orthometric height and Ng is a compatible geoid undulation, h = H + Ng. This tool does not supply a geoid model or convert MSL height automatically.

Keep axis order explicit

LLA inputs are latitude, longitude, height. ECEF inputs are X, Y, Z. X points through 0° latitude / 0° longitude, Y through 0° / 90° E, and Z toward the north pole.

Match frame and epoch

Coordinates from another datum, an inertial frame or a different reference-frame epoch may need additional transformations. ENU also needs a local reference origin and is outside this converter.

Frequently asked questions

What does LLA mean in this converter?

LLA means geodetic latitude, longitude and altitude. Here altitude is specifically ellipsoidal height above the WGS 84 ellipsoid, in metres. Latitude and longitude are entered in decimal degrees, with north and east positive.

Can I enter altitude above mean sea level?

Not directly. Use ellipsoidal height h. For compatible height systems, h = H + Ng, where H is orthometric height and Ng is geoid undulation. The converter does not load a geoid model or apply this correction automatically.

What happens at the poles or the Earth’s centre?

On the Z axis, latitude is +90 or −90 degrees and longitude is indeterminate. Inverse conversion returns longitude 0 degrees by convention. The ECEF origin has no defined latitude or longitude and is rejected. Deep-interior coordinates are outside the supported height range.

Is geodetic latitude the same as geocentric latitude?

No. Geodetic latitude is defined by the ellipsoid normal. Geocentric latitude uses the line from the Earth’s centre to the point. Enter geodetic latitude in the LLA fields; substituting geocentric latitude generally changes the resulting coordinates.

Does the converter transform datums or reference-frame epochs?

No. It changes coordinate representation using the fixed WGS 84 ellipsoid. It does not transform other datums, apply plate-motion or epoch corrections, rotate inertial coordinates, or perform ECEF-to-ENU conversion.

What input range and output precision are supported?

Latitude is −90 to +90 degrees, longitude is −180 to +180 degrees, and ellipsoidal height is −100,000 to 1,000,000,000 metres. ECEF inputs must resolve within that height range. Results display six decimal places in metres and ten in degrees; displayed digits are not a guarantee of positional accuracy. Copied results use the available JavaScript numeric precision.

Scroll to Top