🔒 Processed locally in your browser — no data uploaded
← Back to Home

Unit Converter

Length

8 units

What the Unit Converter does

The converter covers twelve categories of measurement: length, weight, temperature, area, volume, speed, time, data storage, pressure, energy, power and fuel economy. Pick a category tab, choose a unit on each side of the equals sign, and the value you type is converted as you type it. The result appears in a read-only field, and the panel header states how many units the category contains.

Length and weight span the metric and US customary systems, temperature offers Celsius, Fahrenheit and Kelvin with an absolute-zero guard, and data storage lists decimal units next to the binary ones that share their names. Fuel economy is built on division, because litres per hundred kilometres and miles per gallon measure opposite quantities: a larger figure in one unit means a smaller value in the other.

How to use it

  1. Choose a category tabTwelve tabs run across the top, from Length through to Fuel Economy. Selecting one reloads both unit lists, keeps the number you typed, and re-runs the conversion under the new category's units.
  2. Set the from and to unitsUse the two dropdowns, one beneath each input, to choose what you are converting from and into. The target unit starts on the second entry of the list.
  3. Type a value and read acrossEnter a number in the From field and the result updates on every keystroke; there is no convert button to press. To work the other way round, swap the two unit dropdowns.
  4. Watch the status lineRefused values are reported under the panel rather than in the result field. An empty result above a message means the number was rejected, usually for a negative temperature or a fuel figure at or below zero.

Options and formats

Length and areaLength spans metres, kilometres, millimetres, inches, feet, yards and miles. Area covers square metres and kilometres, square feet and yards, acres and hectares. Any pairing inside a category converts in either direction.
Weight, volume and speedWeight uses kilograms, grams, milligrams, metric tons, pounds and ounces. Volume uses litres, millilitres, cubic metres, cubic feet and US gallons. Speed covers metres per second, kilometres per hour, miles per hour, knots and feet per second.
TemperatureCelsius, Fahrenheit and Kelvin, routed through Celsius as the base. A result below absolute zero is refused with a message instead of being printed, which keeps nonsense numbers out of whatever you paste them into.
Data, pressure, energy and powerData storage lists decimal kilobytes up to terabytes beside binary kibibytes, mebibytes and gibibytes. Pressure, energy and power cover the usual engineering units, including pascals, bar, psi, joules, kilocalories, watt-hours, BTU and horsepower.
Fuel economyLitres per hundred kilometres, kilometres per litre, and both US and Imperial miles per gallon. Values must be above zero, and because the conversion is reciprocal, a high litres-per-hundred figure means a low miles-per-gallon number.

Things to watch out for

Binary and decimal storage units differA kilobyte is a thousand bytes while a kibibyte is 1024 bytes, so two neighbouring entries give different answers for one file size. Drive makers quote decimal units and many operating systems report binary ones, which is where the lost capacity comes from.
Volume units are US, not ImperialThe gallon and pint entries follow US definitions, where a gallon is about 3.785 litres. A British or Canadian recipe written in Imperial pints will come out roughly twenty percent light if you convert it here without adjusting.
Calorie is not the calorie on a food labelThe energy list uses the small calorie of about 4.184 joules, but nutrition labels count kilocalories and print them as calories. Use the kcal entry, or multiply by a thousand, before comparing a diet figure.
Only one temperature direction is guardedThe absolute-zero check applies only when the target unit is Kelvin. Converting minus 500 Celsius to Fahrenheit still returns a number that is arithmetically consistent but physically meaningless.

Frequently asked questions

How precise is the result?

The output is rounded to twelve significant digits, which is far more than everyday work needs and avoids the long decimal tails that binary floating point produces. Very small and very large values appear as plain decimals rather than scientific notation, so count the digits before copying.

Why does one acre give such an untidy number of square metres?

The conversion factors are the exact legal definitions rather than round approximations. An acre is fixed at 4046.8564224 square metres and a pound at 0.45359237 kilograms, so the untidy decimal is the true value. Rounding it yourself is what introduces error.

Can I convert straight from kilograms to litres?

No. Each category treats its units as independent, and there is no density baked in, so mass and volume have no direct path between them. Convert within a category to a common base, then apply the physical relationship you know by hand.

Which storage unit should I use for an API payload?

Data storage is the usual trap. Cloud billing and file-size APIs generally use decimal units, where a gigabyte is a thousand million bytes, while libraries and disk tools report binary gibibytes. Pick the entry that matches how the consumer defines the unit.

Is there a copy or export button?

No. The result field holds selectable text, so copy it the normal way or retype the value into your document. Because the page converts live, changing either dropdown or the input immediately replaces the number you were about to copy.

Does switching tabs keep the number I typed?

Yes, the value in the From field stays where it is, but both unit lists are rebuilt for the new category, so the same digits now mean something different. Check the two dropdowns after a tab change before trusting the result field.