Home / Science / Astronomy and space / Spaceflight and astrodynamics / Orbital elements and state vector converterTool #831

Orbital elements converter: Keplerian elements to state vectors and back, anomalies, TLE reader and propagation

Turn classical orbital elements into position and velocity vectors and back for any central body, with the true, mean, eccentric and hyperbolic anomalies, period, apsides and energy. Read every field of a two-line element set with its checksums, propagate the orbit by Kepler's equation and see it in a 3D view you can turn, or flat on the reference planes.

Keep it one tap away for everyday use.

Bookmark Orbital elements and state vector converter?

Press Ctrl + D now. Your browser opens its own bookmark box, where you choose the name and folder.

  1. Elements
  2. r and v
  3. Propagate
  4. 3D view
Nothing is uploadedWorks offline once open

Central body

μ is the body's gravitational parameter. The presets are general constants (Earth's is the WGS 84 value used with TLEs); type any μ for another body. The radius only sets the altitudes and the drawing.

Start from

For a hyperbola (e > 1) a is negative; give q or p instead if that is easier. A parabola (e = 1) needs q or p. Angles in degrees; the eccentric anomaly becomes the hyperbolic anomaly H for e > 1 and Barker's D = tan(ν/2) for e = 1 (type D itself then).

What it does

An orbit around one body can be described two ways. Classical (Keplerian) elements give its size and shape (semi-major axis a and eccentricity e), how it is tilted (inclination i and the longitude of the ascending node Ω), where its closest point is (the argument of periapsis ω), and where the object is along it (an anomaly). State vectors give the position r and velocity v at one moment. This page turns one into the other for any central body, and adds:

  • All the anomalies: true anomaly ν, eccentric anomaly E (ellipse), hyperbolic anomaly H (hyperbola), Barker’s D = tan(ν/2) (parabola), and the mean anomaly M. You can give the position as any of them, or as the time since periapsis.
  • Orbit facts: periapsis and apoapsis distance and altitude, speeds there, period and mean motion, specific energy −μ/2a, angular momentum, flight-path angle, and for a hyperbola the excess speed v∞, C3 and turn angle.
  • Two-line element sets (TLEs): every field is read (catalogue number, international designator, epoch, ṅ/2, n̈/6, B*, element set and revolution numbers), and both checksums are checked. The mean motion gives a by Kepler’s third law.
  • Propagation by Kepler’s equation, with a table and a CSV download.
  • A drawing you can turn in 3D, or view flat on the x-y, x-z and y-z planes or in the orbit’s own plane.

The special cases are handled: a circular orbit has no periapsis, so ω is set to 0 and ν becomes the argument of latitude; an equatorial orbit has no node, so Ω is 0 and ω becomes the longitude of periapsis; a circular equatorial orbit uses the true longitude.

How to use it

  1. Pick the central body, or type μ = GM (km³/s²) and a radius.
  2. Choose what you know: elements, state vectors, or a TLE. The examples fill in each kind.
  3. For elements, give the size as a, the periapsis distance q or the semi-latus rectum p. A parabola needs q or p, and a hyperbola has a negative a.
  4. Read the results, then use “Edit as elements” or “Edit as state vectors” to go the other way.
  5. Set a span and step to propagate, and turn the drawing with the sliders or by dragging.

Worked example

Vallado’s textbook example has r = (6524.834, 6862.875, 6448.296) km and v = (4.901327, 5.533756, −1.976341) km/s around Earth (μ = 398600.4418 km³/s²). The page gives p = 11067.80 km, a = 36127.34 km, e = 0.83285340, i = 87.8691°, Ω = 227.8983°, ω = 53.3849° and ν = 92.3352°, a period of 18.983 h and a periapsis of 6038.6 km, which is below Earth’s radius: as the page warns, this orbit would hit the surface.

The page opens on a made-up Molniya-like orbit: a = 26600 km, e = 0.74, i = 63.4°, ω = 270°, so the long, slow apoapsis is over the northern hemisphere. The period is 11.993 h, the periapsis altitude 537.9 km and the apoapsis altitude 39905.9 km.

Tips

  • TLEs hold SGP4 mean elements, not two-body ones, so positions here differ by a few km from SGP4. For passes and ground tracks use the satellite tracker.
  • Keep units in km and km/s; μ for the Sun is about 1.327 × 10¹¹ km³/s².
  • Two-body propagation is exact for two point masses but ignores the body’s flattening, drag and other bodies, which matter over days for low orbits.

FAQ

Why is ν different from what I typed after a round trip? For circular or equatorial orbits some angles are undefined, and the page uses the standard replacements described above.

What frame are the vectors in? Whatever inertial frame your elements refer to: x toward the reference direction (for Earth, usually the vernal equinox) and z along the reference pole.

Is anything sent anywhere? No. Everything runs in your browser.

Where the numbers come from

  • Two-body orbital mechanics (conic sections, the anomalies, Kepler's and Barker's equations, the conversions between elements and state vectors) is standard textbook material; the code is written by fibub and checked against an independent NumPy implementation, SciPy's solve_ivp integrating the two-body equations, SciPy brentq, the sgp4 package's TLE reader and Vallado's RV2COE worked example.
  • Gravitational parameters and radii of the preset bodies are general physical constants. The ISS example is a public NORAD two-line element set from 2008 (a common test case); the other examples are made up.

Standard scientific values, such as constants, atomic weights and melting points, are facts found in every textbook; we name where ours were checked. If you are an author or publisher and want a value, a credit or a table changed or removed, tell us and we will act quickly.

Last updated 2026-11-09.

Related tools

Rocket equation and delta-v calculator #46 Enter each stage's dry mass, propellant and Isp and get the delta-v of every stage and the whole rocket, the payload fraction, and how it compares with the delta-v needed for orbit, the Moon or Mars. Link budget calculator #59 Work out whether a radio link will close: a CubeSat downlink, a ground station or a point-to-point link. Gives EIRP, free-space loss, G/T, C/N0, Eb/N0, the margin, the fastest data rate and the margin through a satellite pass. Orbit transfer calculator #47 Delta-v, burn by burn, and transfer time between two circular orbits around Earth, the Moon, Mars, Jupiter or the Sun, with the target's lead angle, how often launch windows come round, and a bi-elliptic comparison. Porkchop plot #63 Draw a porkchop plot for a trip from one planet to another: launch energy and arrival speed for every launch date and flight time, the cheapest window, and the burns from a parking orbit. Satellite ground track and passes #66 Paste a satellite's TLE or design an orbit to see its ground track on a world map, its period, speeds and how Earth's bulge turns it, and the times it passes over your place. CubeSat power budget #510 Work out a small satellite's orbit-average power: eclipse time from altitude and beta angle, solar panel output by attitude (nadir, Sun pointing or tumbling) with efficiency, packing, temperature and ageing, loads with duty cycles in each operating mode, and a battery simulation over several orbits with depth of discharge.