apprun.icuCalculator

Calculator · High-precision units

Convert any unit with exact arithmetic

Type one number and read it in every unit of the category at the same time. Length, weight, temperature, data size and speed are all handled with BigInt rationals, so 0.1 + 0.2 is exactly 0.3 and one mile is exactly 1.609344 kilometres.

Exact BigInt rationals18 digits significant figures40+ units in 5 categoriesPrivate runs in your browser

1 · Convert

10 units
Category
Plain numbers, thousands separators such as 1,024, fractions such as 3/4 and expressions such as 12*3+4 are all understood. An empty box is not an error.

2 · Precision

significant digits
Significant digits

3 · Presets

one click

Each preset fills the value and both units, then leaves the precision selector alone.

Every unit at once

click copy on any row
The same value expressed in every unit of the chosen category
Unit Name Value Copy

How to use Unit Converter

Everything below runs in this tab. Nothing is uploaded, and no account is needed.

Step by step

  1. Pick a category with the segmented control: length, weight, temperature, data size or speed.
  2. Type the value to convert. Plain numbers, thousands separators such as 1,024, fractions such as 3/4 and expressions such as 12*3+4 are all understood.
  3. Choose the from unit and the to unit, or press Swap units to reverse the direction.
  4. Set the significant digits to 6, 12 or 18 and switch on scientific notation if you prefer it. The default is 18 digits.
  5. Read Every unit at once for the whole category, copy a single row, copy every row, or download the table as CSV.

Details and limits

Why 1 KiB is not 1,000 bytes

Storage is sold in two systems. Decimal units follow the SI prefixes: 1 kB is exactly 1,000 bytes and 1 KB is exactly 8,000 bits. Binary units follow the IEC prefixes: 1 KiB is 1,024 bytes, because 1,024 is a power of two and memory is addressed in powers of two. A 1 GiB file is 1,024 MiB but only about 0.9537 GB, which is why a drive labelled 1 TB shows as roughly 931 GiB in the operating system.

Temperature needs formulas, not factors

Every other category here is a single multiplication: one inch is exactly 25.4 millimetres, forever. Temperature has two different zero points, so it is converted with formulas instead. Celsius to Fahrenheit is °F = °C × 9/5 + 32, Fahrenheit to Celsius is °C = (°F − 32) × 5/9, Kelvin is °C + 273.15 and Rankine is (°C + 273.15) × 9/5. A single factor would put 0 °C at 0 °F.

How exact this arithmetic is

Each value is stored as a BigInt numerator over a BigInt denominator and reduced after every operation, so nothing is ever a binary floating-point number. 0.1 + 0.2 is exactly 0.3, and 1 inch in centimetres is exactly 2.54. Two things are still not exact: the display is rounded to the number of significant digits you chose, and a result whose denominator has a prime factor other than 2 or 5 repeats forever, so 1 °F is −17.222222… °C and is rounded at the last digit shown.

Significant figures are not the same as precision

Converting a unit changes the number, never how well it was measured. If you type 1.0 miles the answer is 1.6 kilometres, not 1.609344, because the input carried two significant figures. Raise the digit selector when the input really is exact, for example 1 inch = 25.4 mm, and keep it low when the number came from a measurement. Mach is fixed here at 340.29 m/s, the standard atmosphere at sea level, because the speed of sound moves with temperature and altitude.

Percentage Calculator for shares and changes · Timestamp Converter for dates and Unix time · Install for offline use

Frequently asked questions

How do I convert miles to kilometres?

Choose the length category, type 1 in the value box, set the from unit to mi and the to unit to km. The answer is 1.609344 km exactly, because a mile is defined as 1,609.344 metres. The table below shows the same value in millimetres, centimetres, metres, kilometres, inches, feet, yards, nautical miles and thou at the same time.

What is the difference between KB and KiB?

KB is decimal: 1,000 bytes. KiB is binary: 1,024 bytes. Both are labelled in the data size category so you can see which one a number came from. The gap compounds, so 1 GiB is 1,073,741,824 bytes while 1 GB is 1,000,000,000 bytes, a difference of about 7.4 percent.

Why is 0 °C equal to 32 °F?

The two scales place their zero at different temperatures. Celsius puts zero at the freezing point of water and Fahrenheit puts it 32 degrees lower, at the temperature of a salt and ice mixture. The conversion adds 32 after scaling by 9/5. Kelvin and Rankine are the absolute versions of the same two scales and start at absolute zero instead.

Can this convert temperatures without rounding errors?

Yes. The arithmetic is exact rational arithmetic over BigInt, so 100 °C becomes exactly 212 °F and −40 °C becomes exactly −40 °F. Only results that repeat forever, such as 1 °F in Celsius, are rounded, and the tool tells you when a result is a repeating decimal and how many digits it is showing.

Does it accept fractions and expressions?

Type 3/4 for three quarters, 12*3+4 for forty, or 1,024 with a thousands separator. The parser handles plus, minus, times, divide, brackets and unary minus, and evaluates them exactly rather than through floating point. Anything it cannot read produces a short message instead of a wrong answer.

Is anything uploaded when I convert?

No. The conversion factors, the parser and the formatter all live in this page and run in your tab. There is no network request, no account and no storage of your input, so the page keeps working offline once it has loaded.