# Unit Converter

> Convert between 120+ units across 14 categories: length, weight, temperature, volume, speed, area, data, time, energy, and more.

- Open the tool: https://overtooled.com/unit-converter
- Category: Math & Finance
- Privacy: Runs entirely in your browser. Nothing is uploaded, no account is needed, and it works offline once loaded.
- Price: free, no sign-up
- Keywords: length, weight, temperature, volume, speed, area, data, convert

## In short

Convert length, weight, temperature, volume, and more.

## Overview

Converts a value into every unit of a category at once, across 14 categories from length and weight to data, fuel economy and force. Results are listed from the largest to the smallest unit, with optional advanced (scientific) units, mixed-unit breakdowns such as feet and inches, and a reference panel of real-world benchmarks.

## Features

- 14 categories: Length, Weight, Temperature, Time, Volume, Data, Speed, Area, Energy, Pressure, Force, Frequency, Angle, Fuel Economy
- One input, all results: every unit in the category is shown at once, the input unit highlighted
- Linear units convert through a base unit (value x fromFactor / toFactor); temperature (C, F, K, Rankine) and L/100km use their own formulas
- Advanced toggle reveals extra units such as femtometer, angstrom, astronomical unit, light-year, nautical mile, Rankine, Mach, speed of light, electronvolt, therm, kilobit to gigabit, petabyte/exabyte and pebibyte/exbibyte
- Data has decimal units (KB, MB, GB, TB: 1000-based) and binary units (KiB, MiB, GiB, TiB: 1024-based) side by side: the unit picker names them "Kilobyte (KB)" and "Kibibyte (KiB)", and each result row adds its size ("= 1000 bytes", "= 1024 bytes")
- The value field and a unit dropdown sit side by side ("1 [Meter (m)]"); the dropdown lists the same units in the same order as the results (largest first; Advanced units only when Advanced is on), and phones open it in their own picker
- Lock value toggle: when on, switching the input unit converts the typed number so the quantity stays the same (computed from a full-precision base value)
- Decimal mode shows 10 significant digits; otherwise values show up to 6 decimal places with thousands separators, and very large (>= 1e12) or small (< 0.0001) values use compact exponential notation with 5 significant digits (1.057e-16; Decimal mode: 1.057001e-16)
- Values are never cut off: on a narrow screen a long value wraps onto its own line under the unit name
- A "Mixed units" line under the list shows each mixed-unit form once: ft/in, yd/ft/in, mi/ft, lb/oz, st/lb, ton/lb, gal/qt, gal/qt/pt, TiB/GiB/MiB, GiB/MiB/KiB, yr/mo/d, yr/d, wk/d, dec/yr/mo/d (a form appears while one of its units is listed and the value has at least two parts)
- Tap (or click) any row or mixed-unit value to copy it; the row briefly shows "Copied" and a check. A "Copy with unit" toggle adds the unit symbol ("0.001 km")
- One Pipeline action for the list: it sends the last row tapped (the input row until then) as a plain number, e.g. "km to Pipeline"
- Collapsible Reference panel with benchmarks per category (e.g. Earth to Moon 384,400 km, speed of sound 343 m/s)

## How to use it

1. Pick a category: the Category menu above "Convert from" on phones, the row of category chips on wider screens.
2. Type a value and pick the unit it is in from the dropdown next to it.
3. Read every conversion in the All Conversions list and tap the one you need to copy it.
4. Turn on Advanced for scientific units, Decimal mode for fixed precision, or Lock value to re-express the same quantity in a different input unit.

## Inputs

- A number (negative values allowed) and a source unit; default is 1 meter

## Outputs

- The value in every unit of the category, plus mixed-unit breakdown strings where defined

## Limits and notes

- Data units: KB, MB, GB, TB (and kilobit, megabit, gigabit) are decimal, 1 KB = 1000 bytes, as drive makers, macOS and internet speeds count; KiB, MiB, GiB, TiB are binary, 1 KiB = 1024 bytes, which is what Windows shows but labels "KB"
- Time uses fixed lengths: month = 30 days, year = 365 days; Mach is fixed at 343 m/s (sea level)
- Factors use exact definitions (US cup 0.2365882365 L, gallon 3.785411784 L, acre 4046.8564224 m2, psi 6894.757293168 Pa, BTU 1055.05585262 J), so 1 gallon is exactly 128 fl oz; Mach (343 m/s) and inches of mercury are conventional values
- A result too large to represent shows "--" (that row cannot be copied or sent); very small or large values use exponential notation without trailing zeros (1e-5)
- The "Copy with unit" choice and the unit picked for the pipeline are not saved
- Volume units are US customary except the advanced UK gallon; fuel economy includes US and UK mpg
- Advanced and Decimal mode settings are saved in localStorage (overtooled:unit-converter:settings); the value, category and Lock value are not saved
- Runs entirely in the browser; nothing is uploaded

## Questions and answers

### How does the Unit Converter work?

Each unit is stored with a conversion factor relative to a base unit in its category (e.g., meters for length). Converting between units multiplies the input by the source factor, then divides by the target factor. Temperature uses dedicated formulas since Celsius, Fahrenheit, and Kelvin are offset-based rather than ratio-based. All math runs in JavaScript with no server calls.

### What unit categories are supported?

There are 14 categories: Length, Weight/Mass, Temperature, Volume, Speed, Area, Data Storage, Time, Energy, Pressure, Frequency, Angle, Fuel Economy, and Force. Each category includes common everyday units plus advanced units for scientific and engineering work.

### Are the conversion formulas accurate?

Yes. Units use their exact definitions (inch = 0.0254 m, pound = 0.45359237 kg, US gallon = 3.785411784 L, acre = 4046.8564224 m2), so for example 1 gallon converts to exactly 128 fl oz. Turn on Decimal mode to see results to 10 significant digits.

### Can I convert between metric and imperial units?

Yes. Every applicable category supports both metric and imperial units. For example, you can convert between kilometers and miles, kilograms and pounds, Celsius and Fahrenheit, liters and gallons, or PSI and atmospheres.

### What does the Lock Value toggle do?

When Lock Value is on, switching the source unit recalculates the input so the converted values stay the same. For example, if you enter 1 kilometer and switch to miles, the input changes to 0.621371 miles. Turn it off to keep the same number and just change the unit.

### What are the Advanced units?

Toggle Advanced mode to reveal less common units like femtometers, angstroms, light-years, Rankine, Mach, nautical miles, and more. The setting is saved in your browser so it stays on across visits.

### Is 1 KB 1000 or 1024 bytes?

Both are in use, so the converter lists both. KB, MB, GB and TB are decimal: 1 KB = 1000 bytes, the way drive makers, macOS, iPhone storage and internet speeds count. KiB, MiB, GiB and TiB are binary: 1 KiB = 1024 bytes, which is what Windows shows, though it labels them KB, MB and GB. That is why a 1 TB drive shows up as about 931 GB in Windows.

### What does the Mixed units line show?

For length, weight, volume, data and time, a Mixed units line under the results breaks the value into whole larger units plus a remainder, such as "3 ft 3.37 in" for 1 meter or "2 yr 3 mo 15 d" for a number of days. Each form is shown once and can be tapped to copy it.

### What is the Reference section?

Each category includes a collapsible reference panel with real-world benchmarks to give context to your conversions. For example, the length category shows the Earth-to-Moon distance, and the speed category lists the speed of sound and light.

### Does this tool work offline?

Yes. All conversion formulas are built into the page with pure JavaScript. Once loaded, no internet connection is needed.

## Related tools

- [Fraction / Decimal Converter](https://overtooled.com/fraction-decimal.md): Convert fractions to decimals, simplify, and work with mixed numbers
- [Number Base Converter](https://overtooled.com/number-base-converter.md): Convert numbers between binary, decimal, hex, and octal
- [Salary to Hourly Converter](https://overtooled.com/salary-to-hourly.md): Convert between annual salary and hourly wage instantly
- [Calculator](https://overtooled.com/calculator.md): Calculator with keyboard shortcuts, history, and memory

---
Overtooled: 179 free tools that run in your browser. Index of all tools: https://overtooled.com/llms.txt
