Format Code Now
/

Astronomical Unit Converter

CU-30

Type a distance such as 1 ly or 8.3 light-minutes and see it in astronomical units, light-years, parsecs, kilometers, miles and more, using exact definitions.

Runs in your browser. Nothing is uploaded.

Values, one per line (such as 12.5 or 12.5 unit)

Converted

How to use it

  1. Type or paste one distance per line, for example 1 AU or 4.2 ly.
  2. Leave the unit off a line to use the one chosen under Unit when none is typed.
  3. Choose All units, or one unit under Show, and set the significant digits.
  4. Press Convert and copy the result.

How the astronomical units are defined

The astronomical unit is fixed at exactly 149,597,870,700 meters, which is about 149.6 million kilometers. A light-year is the distance light travels in a Julian year of 365.25 days: exactly 9,460,730,472,580,800 meters, or about 63,241 AU. A parsec is about 3.26 light-years and about 206,265 AU. Its exact value involves pi, so the tool uses the IAU 2015 figure of 30,856,775,814,913,673 meters, rounded to whole meters.

Light-time units and nominal radii

Light-seconds, light-minutes, light-hours and light-days are the distance light covers in that time at 299,792,458 meters per second, so one AU is about 8.3 light-minutes. The solar, Earth and Jupiter radii are the nominal values the IAU adopted in 2015, 695,700 km, 6,378.1 km and 71,492 km. They are agreed conversion constants, not new measurements, and the actual size of those bodies varies by definition and measurement.

Error messages and what to do

MessageWhat it meansFix
Line 1: could not find a number at the start of "abc". Write a value such as 12.5 km, or just 12.5.The line has no number at the start, so there is nothing to convert.Start each line with a value such as 12.5.
Line 1: unknown unit "foo". Known units: m, km, mi, AU, ly, pc, kpc, light-second, light-minute, light-hour, light-day, R☉, R⊕, R♃.The text after the number is not a unit this tool knows.Use one of the units named in the message, or its full name.

Questions people ask

How many kilometers are in an astronomical unit?

One astronomical unit is exactly 149,597,870,700 meters, which is 149,597,870.7 kilometers. Type 1 AU and choose km under Show to see it, or leave Show on All units to see miles and light-minutes too.

How many AU are in a light-year?

One light-year is about 63,241 astronomical units. It is 9,460,730,472,580,800 meters divided by 149,597,870,700 meters. Type 1 ly and read the AU line to see the value to the number of digits you choose.

How do I convert parsecs to light-years?

One parsec is about 3.2616 light-years. Type a value such as 1 pc, leave Show on All units or pick ly, and press Convert. The parsec value used here is the IAU 2015 figure rounded to whole meters.

How long does light from the Sun take to reach Earth?

About 8.3 minutes on average. One astronomical unit is about 499 light-seconds. Type 1 AU and read the light-minute line to see it. The real figure varies a little as Earth moves in its orbit.

Is the parsec exact in this converter?

No, and no decimal can be exact for it, because a parsec is defined through pi. The converter stores the IAU 2015 value, 30,856,775,814,913,673 meters, which is rounded to the nearest meter. The other astronomical units here are exact.

About this tool

Converts between meters, kilometers, miles and astronomical distance units. The astronomical unit is exactly 149,597,870,700 m (IAU 2012) and the light-year is exactly 9,460,730,472,580,800 m, a Julian year of 365.25 days at the speed of light. The parsec is stored as 30,856,775,814,913,673 m, the IAU 2015 value rounded to whole meters, because the true parsec involves pi and has no exact decimal form. Light-seconds, minutes, hours and days use 299,792,458 m/s. The solar, Earth and Jupiter radii are the IAU 2015 nominal values (695,700 km, 6,378.1 km and 71,492 km), which are fixed conversion constants rather than measurements of the bodies. Results are exact up to the chosen number of significant digits, rounded half up, with trailing zeros removed; very large or very small results switch to e-notation. Each line is echoed with the unit it was read as. Nothing is looked up online, and the conversion runs in your browser.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.