UnitSwap: Convert 200+ Units Across 17 Categories — Length, Weight, Temperature & More
Table of Contents
- What Is UnitSwap?
- 17 Categories, 201 Units
- Length: From Angstroms to Light Years
- Weight & Mass: Atomic to Astronomical
- Temperature: 8 Scales with Non-Linear Formulas
- Volume: US vs Imperial vs Metric
- Data Storage: SI vs Binary (KB vs KiB)
- The Conversion Algorithm
- Fuel Economy: The Inverse Relationship Problem
- Exotic Units: Barns, Jiffies, Slugs & Poundals
- Real-Time Bidirectional Conversion
- Privacy: Pure Math, Zero Transmission
- UnitSwap vs. Google Units, ConvertUnits & UnitConverters.net
- Frequently Asked Questions
- Conclusion
I once watched a recipe disaster unfold in real time when a friend used a US cup measurement with a British recipe that assumed Imperial cups. The cake was inedible. That is the kind of tiny measurement mix-up that can ruin your afternoon -- or, in engineering, something a lot more expensive.
Unit conversion is one of those invisible tasks that touches nearly every professional discipline and daily life scenario. An engineer in Germany specifying bolt torque in Newton-meters needs the foot-pound equivalent for an American manufacturer. A baker scaling a British recipe for an American kitchen discovers that an Imperial pint is not the same as a US pint. A physics student converting electron volts to joules realizes the factor involves 19 decimal places. A runner comparing her pace to a European friend's discovers that kilometers per hour and minutes per mile require more than simple division. These are not exotic edge cases -- they are the everyday reality of living in a world that, after thousands of years, still cannot agree on a single measurement system. The UnitSwap converter on ZeroDataUpload addresses this by providing 201 units across 17 categories, all running as pure client-side JavaScript with zero external libraries, zero server calls, and zero data transmission. Every conversion is a math operation executed in your browser and nothing more.
1. What Is UnitSwap?
UnitSwap is a comprehensive unit conversion tool that covers 17 measurement categories containing a total of 201 individual units. Unlike most online converters that give you the bare minimum, UnitSwap goes deep — offering 22 length units from Angstroms to light years, 8 temperature scales including historically significant ones like Réaumur and Delisle, and data storage units that correctly distinguish between SI prefixes (KB = 1,000 bytes) and binary prefixes (KiB = 1,024 bytes).
The tool provides real-time bidirectional conversion, meaning you can type a value in either the "From" or "To" field and the other updates instantly. A swap button reverses the direction with a single click. A formula bar displays the exact mathematical relationship between the two selected units, so you are never left wondering how the number was derived. A quick reference table shows conversion factors for the entire category at a glance. And a copy-to-clipboard button lets you grab the result without selecting and copying manually.
The entire converter runs as a single HTML page with embedded CSS and JavaScript. There are no external library dependencies — no math.js, no unit-conversion npm packages, no API calls to a conversion server. Every conversion factor is hardcoded as a precise constant, and every calculation is performed using native JavaScript arithmetic. This means UnitSwap works offline, loads instantly, and will keep working even if every CDN on the internet goes down simultaneously. No dependencies, no excuses.
2. 17 Categories, 201 Units
UnitSwap organizes its 201 units into 17 categories, each carefully curated to include both the everyday units people need most often and the specialized units that professionals in specific fields require. Here is the complete inventory:
- Length (22 units) — Kilometer, Meter, Centimeter, Millimeter, Micrometer, Nanometer, Angstrom, Mile, Yard, Foot, Inch, Nautical Mile, Fathom, Furlong, Light Year, Astronomical Unit, Parsec, Rod, Chain, League, Thou, Mil
- Weight & Mass (16 units) — Metric Ton, Kilogram, Gram, Milligram, Microgram, Pound, Ounce, Stone, US Ton, Imperial Ton, Troy Ounce, Slug, Carat, Grain, Quintal, Atomic Mass Unit
- Temperature (8 scales) — Celsius, Fahrenheit, Kelvin, Rankine, Réaumur, Delisle, Newton, Rømer
- Volume (18 units) — Cubic Meter, Liter, Milliliter, US Gallon, Imperial Gallon, US Pint, Imperial Pint, US Fluid Ounce, Imperial Fluid Ounce, Cup, Tablespoon, Teaspoon, Cubic Foot, Cubic Inch, Cubic Centimeter, Cubic Yard, Barrel (oil), Hectoliter
- Area (14 units) — Square Kilometer, Square Meter, Square Centimeter, Square Millimeter, Hectare, Acre, Square Mile, Square Yard, Square Foot, Square Inch, Rood, Are, Barn, Square Rod
- Speed (11 units) — Meters per Second, Kilometers per Hour, Miles per Hour, Feet per Second, Knot, Speed of Light, Mach, Centimeters per Second, Inches per Second, Yards per Second, Furlongs per Fortnight
- Data Storage (17 units) — Bit, Nibble, Byte, Kilobyte, Megabyte, Gigabyte, Terabyte, Petabyte, Exabyte, Kibibyte, Mebibyte, Gibibyte, Tebibyte, Pebibyte, Word, Double Word, Quad Word
- Time (13 units) — Nanosecond, Microsecond, Millisecond, Second, Minute, Hour, Day, Week, Fortnight, Month, Year, Century, Millennium, Jiffy, Shake
- Pressure (12 units) — Pascal, Kilopascal, Megapascal, Bar, Millibar, Atmosphere, PSI, Torr, mmHg, inHg, Kilogram-force per Square Centimeter, Pounds per Square Foot
- Energy (13 units) — Joule, Kilojoule, Megajoule, Calorie, Kilocalorie, Watt-hour, Kilowatt-hour, Electron Volt, BTU, Therm, Erg, Foot-pound, Ton of TNT
- Power (11 units) — Watt, Kilowatt, Megawatt, Gigawatt, Mechanical Horsepower, Metric Horsepower, Electrical Horsepower, Boiler Horsepower, BTU per Hour, Ton of Refrigeration, Foot-pound per Second
- Frequency (9 units) — Hertz, Kilohertz, Megahertz, Gigahertz, Terahertz, RPM, BPM, FPS, Radians per Second
- Angle (9 units) — Degree, Radian, Gradian, Arcminute, Arcsecond, Turn, Milliradian, Sign, Quadrant
- Fuel Economy (5 units) — Kilometers per Liter, Miles per Gallon (US), Miles per Gallon (UK), Liters per 100 Kilometers, Miles per Liter
- Force (8 units) — Newton, Kilonewton, Dyne, Pound-force, Kilogram-force, Kip, Poundal, Gram-force
- Density (9 units) — Kilogram per Cubic Meter, Gram per Cubic Centimeter, Kilogram per Liter, Pound per Cubic Foot, Pound per Cubic Inch, Pound per Gallon, Ounce per Cubic Inch, Slug per Cubic Foot, Ton per Cubic Meter
- Torque (7 units) — Newton-meter, Foot-pound force, Inch-pound force, Kilogram-force Meter, Dyne-centimeter, Ounce-force Inch, Kilonewton-meter
I want to be clear: 201 is not an arbitrary marketing figure. Every unit was included because it serves a documented, real-world purpose — whether in engineering, science, cooking, computing, aviation, automotive, or everyday measurement. There are no filler units and no duplicates. Each unit maps to a precise conversion factor relative to its category's base unit.
3. Length: From Angstroms to Light Years
The Length category is UnitSwap's largest, with 22 units spanning approximately 35 orders of magnitude — from the Angstrom (10−10 meters, used to measure atomic bond lengths and crystal lattice spacing) to the light year (9.461 × 10¹&sup5; meters, the distance light travels in one Julian year). This range is not merely academic. Semiconductor engineers routinely work in Angstroms and nanometers when specifying transistor gate widths. Astronomers use light years, astronomical units (the Earth-Sun distance, approximately 1.496 × 10¹¹ meters), and parsecs as their baseline measurements. Civil engineers think in meters and kilometers. American construction workers measure in feet and inches. Sailors navigate in nautical miles (1,852 meters, defined as one minute of latitude arc).
The historical units in this category carry some genuinely fascinating backstories. The fathom (6 feet) originates from the span of a man's outstretched arms and was the standard depth measurement in maritime navigation — hence "to fathom" meaning to understand the depth of something. The furlong (660 feet, or one-eighth of a mile) was the length of a plowed furrow in medieval English agriculture, literally a "furrow long." The thou (one-thousandth of an inch, also called a mil) remains critical in manufacturing for specifying wire diameters, paint thickness, and machining tolerances. Each of these units persists because the communities that use them have built entire infrastructures — tools, standards, regulations, and intuition — around those specific scales.
UnitSwap handles the extraordinary range of length scales by using the meter as its base unit and storing each conversion factor as a precise floating-point constant. When you convert 5 light years to Angstroms, the tool multiplies 5 by the light year factor (9.461 × 10¹&sup5;) and divides by the Angstrom factor (10−10), yielding a result with 26 significant digits. JavaScript's IEEE 754 double-precision arithmetic provides approximately 15-17 significant decimal digits, which is more than sufficient for any practical conversion in this range.
4. Weight & Mass: Atomic to Astronomical
The Weight & Mass category contains 16 units ranging from the atomic mass unit (1.66054 × 10−²&sup7; kilograms, the mass of one-twelfth of a carbon-12 atom) to the metric ton (1,000 kilograms). This category illustrates a perennial source of confusion: the difference between mass and weight. Technically, mass is an intrinsic property of matter measured in kilograms, while weight is the force exerted by gravity on that mass, measured in Newtons. In everyday usage and in UnitSwap, "weight" and "mass" are used interchangeably because on Earth's surface the gravitational field is effectively constant at 9.81 m/s².
Several units in this category surprise people who encounter them for the first time. The troy ounce (31.1035 grams) is used exclusively for precious metals and is heavier than the avoirdupois ounce (28.3495 grams) used for everything else — which means that an "ounce" of gold is actually heavier than an "ounce" of feathers, contrary to the classic trick question. The slug (approximately 14.594 kilograms) is the Imperial unit of mass in the foot-pound-second system, defined as the mass that accelerates at one foot per second squared when one pound-force is applied. The carat (200 milligrams exactly) is the standard unit for gemstone weight, established by international agreement in 1907. The grain (64.79891 milligrams) is one of the oldest units of mass still in use, originating from the weight of a single grain of wheat, and it remains the standard for measuring gunpowder charges and bullet weights.
The quintal (100 kilograms) bridges the gap between the kilogram and the metric ton and is widely used in agricultural trade across Europe, Asia, and Latin America for pricing bulk commodities like grain, sugar, and coffee. If you have ever seen commodity prices quoted "per quintal" and wondered what that meant, UnitSwap provides instant context.
5. Temperature: 8 Scales with Non-Linear Formulas
Temperature is the one category that gave us the most headaches during development, because UnitSwap cannot use its standard multiplication-based conversion algorithm here. The relationship between temperature scales is not proportional — it is affine (involving both multiplication and addition) or, more precisely, it requires custom formulas for each pair of scales. UnitSwap handles this by routing all temperature conversions through Celsius as an intermediary, using a toC() function that converts any scale to Celsius and a fromC() function that converts Celsius to any target scale.
The eight supported temperature scales and their conversion formulas are:
- Celsius (C) — The identity scale:
toC(v) = vandfromC(c) = c. Defined by water's freezing point (0°C) and boiling point (100°C) at standard pressure. - Fahrenheit (F) —
toC(v) = (v − 32) × 5/9andfromC(c) = c × 9/5 + 32. Fahrenheit and Celsius intersect at exactly −40 degrees — the only point where the two scales read the same number. This makes −40 a useful sanity check: if your formula produces −40°C = −40°F, the math is correct. - Kelvin (K) —
toC(v) = v − 273.15andfromC(c) = c + 273.15. Kelvin is the SI base unit for thermodynamic temperature, with its zero point at absolute zero (the lowest theoretically attainable temperature). Each Kelvin degree is the same size as a Celsius degree — the scale is simply offset by 273.15. - Rankine (Ra) —
toC(v) = (v − 491.67) × 5/9andfromC(c) = (c + 273.15) × 9/5. Rankine is to Fahrenheit what Kelvin is to Celsius: an absolute temperature scale with its zero at absolute zero, but using Fahrenheit-sized degrees. It is used in certain American engineering disciplines, particularly in thermodynamics calculations involving the ideal gas law. - Réaumur (Ré) —
toC(v) = v × 5/4andfromC(c) = c × 4/5. The Réaumur scale sets water's freezing point at 0° and boiling point at 80°, making each Réaumur degree 1.25 Celsius degrees. While largely obsolete, it was the dominant temperature scale in Europe throughout the 18th and early 19th centuries and is still referenced in some French and German cheese-making traditions, where specific fermentation temperatures were historically documented in Réaumur. - Delisle (De) —
toC(v) = 100 − v × 2/3andfromC(c) = (100 − c) × 3/2. Uniquely, the Delisle scale runs in the opposite direction — higher Delisle values correspond to lower temperatures. Water boils at 0°De and freezes at 150°De. It was used in Russia for over a century before being replaced by Celsius. - Newton (N) —
toC(v) = v × 100/33andfromC(c) = c × 33/100. Proposed by Isaac Newton around 1700, this scale sets water's freezing point at 0° and boiling point at 33°. It predates both Celsius and Fahrenheit and is primarily of historical interest. - Rømer (Rø) —
toC(v) = (v − 7.5) × 40/21andfromC(c) = c × 21/40 + 7.5. Created by the Danish astronomer Ole Rømer in 1701, this scale directly inspired Fahrenheit's work. Rømer set the freezing point of brine at 0° and the boiling point of water at 60°, with the freezing point of pure water at 7.5°.
The −40° intersection of Celsius and Fahrenheit is mathematically elegant and easy to derive. Setting C = F in the formula F = C × 9/5 + 32 gives C = C × 9/5 + 32, which simplifies to C − 9C/5 = 32, then −4C/5 = 32, yielding C = −40. This temperature is also physically significant — it occurs regularly during Arctic and Antarctic winters and represents the point where the Fahrenheit and Celsius thermometers would show the same reading if placed side by side.
With 8 temperature scales, a direct formula approach would require 56 individual conversion formulas (8 × 7). By routing through Celsius as an intermediary, UnitSwap needs only 14 formulas (7 toC + 7 fromC), reducing code complexity by 75% while maintaining identical accuracy. Every conversion is at most two arithmetic operations away from the answer.
6. Volume: US vs Imperial vs Metric
The Volume category with its 18 units is where the US customary and British Imperial systems diverge most confusingly. Most people assume that "a gallon is a gallon" regardless of which side of the Atlantic you are on. They are wrong. The US gallon (3.78541 liters) and the Imperial gallon (4.54609 liters) differ by approximately 20%. This discrepancy cascades through every derived unit: a US pint is 473 mL while an Imperial pint is 568 mL, a US fluid ounce is 29.57 mL while an Imperial fluid ounce is 28.41 mL, and so on. The irony is that the Imperial fluid ounce is smaller than the US fluid ounce, but the Imperial pint is larger — because the Imperial pint contains 20 fluid ounces while the US pint contains only 16.
UnitSwap's Volume category separates these clearly. Every unit with a US or Imperial variant is explicitly labeled, so there is no ambiguity when you select "US Gallon" versus "Imperial Gallon." The cooking units — Cup (236.588 mL, US legal), Tablespoon (14.787 mL), and Teaspoon (4.929 mL) — use the US definitions that align with standard American measuring spoons and cups. The oil barrel (158.987 liters, or 42 US gallons) is included because it is the standard unit of crude oil trading worldwide, appearing in every energy market report and petroleum contract.
The cubic units (cubic meter, cubic foot, cubic inch, cubic centimeter, cubic yard) provide the bridge between volume and the geometric dimensions engineers work with daily. Knowing that one cubic foot equals approximately 28.317 liters is essential when sizing HVAC systems, calculating aquarium capacity, or estimating concrete volumes for construction projects.
7. Data Storage: SI vs Binary (KB vs KiB)
The Data Storage category with 17 units tackles one of the most persistent and genuinely frustrating ambiguities in computing: what exactly does "kilobyte" mean? Ask a hard drive manufacturer and ask an operating system developer, and you will get two different answers. UnitSwap supports both.
In the SI (decimal) convention, prefixes follow the International System of Units: Kilo = 1,000, Mega = 1,000,000, Giga = 1,000,000,000. Under this convention, 1 KB = 1,000 bytes, 1 MB = 1,000,000 bytes, and 1 GB = 1,000,000,000 bytes. Hard drive manufacturers, network equipment vendors, and the IEC standard (IEC 80000-13) use this definition. When a hard drive label says "500 GB," it means 500,000,000,000 bytes.
In the binary convention, prefixes are based on powers of 2: Kibi = 1,024, Mebi = 1,048,576, Gibi = 1,073,741,824. Under this convention, 1 KiB = 1,024 bytes, 1 MiB = 1,048,576 bytes, and 1 GiB = 1,073,741,824 bytes. Operating systems (Windows, macOS, Linux) historically used binary calculations but displayed them with SI labels — which is why your "500 GB" hard drive shows up as "465 GB" in Windows. The 35 GB "missing" is not lost; it is the 7% difference between 500,000,000,000 bytes interpreted as gigabytes (SI) versus gibibytes (binary).
UnitSwap includes both conventions explicitly: KB/MB/GB/TB/PB/EB for SI, and KiB/MiB/GiB/TiB/PiB for binary. It also includes the foundational units that most converters ignore: the Bit (the atomic unit of information), the Nibble (4 bits, representing one hexadecimal digit), the Word (16 bits in most architectures), the Double Word or DWord (32 bits), and the Quad Word or QWord (64 bits). These are essential for systems programmers, embedded developers, and anyone working directly with processor registers and memory alignment.
The SI vs. binary debate is not just academic pedantry. A cloud storage provider advertising "1 TB" of space using SI gives you 1,000,000,000,000 bytes. If your operating system reports usage in binary, it will show the full drive as 931 GiB. You have not been short-changed — you are looking at the same number through two different lenses. UnitSwap lets you convert between them instantly so you always know exactly how many bytes you are dealing with.
8. The Conversion Algorithm
UnitSwap uses a base-unit multiplication algorithm for 13 of its 17 categories. The principle is simple and elegant: every unit in a category has a conversion factor that represents how many base units it equals. To convert between any two units, you multiply the input by the source unit's factor (converting to the base unit) and then divide by the target unit's factor (converting from the base unit to the target).
// Standard conversion (13 categories)
baseValue = inputValue × conversionFactor[fromUnit]
result = baseValue ÷ conversionFactor[toUnit]
// Example: Convert 5 miles to kilometers
// Base unit: meter
// Mile factor: 1609.344 (1 mile = 1609.344 meters)
// Kilometer factor: 1000 (1 km = 1000 meters)
baseValue = 5 × 1609.344 = 8046.72 meters
result = 8046.72 ÷ 1000 = 8.04672 kilometers
This approach has a critical advantage: adding a new unit to any category requires only a single line of code — the unit's name and its conversion factor relative to the base unit. There is no need to define pairwise conversion formulas between every combination of units. With 22 length units, a pairwise approach would require 231 formulas (22 choose 2). The base-unit approach requires only 22 factors.
The two exceptions to this algorithm are temperature (which uses the toC()/fromC() routing discussed in Section 5) and fuel economy (which requires special inverse handling discussed in Section 9). The remaining 13 categories — Length, Weight, Volume, Area, Speed, Data Storage, Time, Pressure, Energy, Power, Frequency, Angle, Force, Density, and Torque — all use the standard base-unit multiplication.
Each conversion factor is stored as a JavaScript number literal with maximum available precision. For example, the speed of light is stored as exactly 299,792,458 meters per second (this is an exact defined value since 2019, when the meter was redefined in terms of the speed of light). The electron volt is stored as 1.602176634 × 10−19 joules (also exact by definition since the 2019 SI redefinition). Where possible, UnitSwap uses the exact defined values from the current International System of Units rather than rounded approximations.
9. Fuel Economy: The Inverse Relationship Problem
Fuel economy is a small category with only 5 units, but do not let the size fool you. It contains a mathematical subtlety that trips up many conversion tools -- including some popular ones that get it wrong: the inverse relationship between "distance per volume" and "volume per distance" metrics.
Four of the five fuel economy units — Kilometers per Liter (km/L), Miles per Gallon US (MPG US), Miles per Gallon UK (MPG UK), and Miles per Liter — are "distance per volume" metrics. Higher numbers mean better fuel efficiency. A car that gets 40 MPG is more efficient than one that gets 25 MPG. These four units can be converted between each other using the standard multiplication algorithm, with km/L as the base unit.
The fifth unit, Liters per 100 Kilometers (L/100km), is the standard fuel economy metric in most of Europe, Australia, and parts of Asia. It is a "volume per distance" metric, and crucially, it is inversely proportional to the other four. When fuel efficiency improves, L/100km goes down while MPG goes up. A car consuming 5 L/100km is more efficient than one consuming 8 L/100km — the lower number is better.
UnitSwap handles this with special-case logic in the conversion function:
// Fuel Economy conversion
// Step 1: Convert to base unit (km/L)
if (fromUnit is inverse) { // L/100km
kpl = 100 ÷ inputValue // Convert to km/L
} else {
kpl = inputValue × factor[fromUnit]
}
// Step 2: Convert from base unit (km/L) to target
if (toUnit is inverse) { // L/100km
result = 100 ÷ kpl // Convert from km/L
} else {
result = kpl ÷ factor[toUnit]
}
// Example: Convert 30 MPG (US) to L/100km
// MPG US factor: 0.425144 (1 MPG US = 0.425144 km/L)
kpl = 30 × 0.425144 = 12.754 km/L
result = 100 ÷ 12.754 = 7.84 L/100km
The non-linearity of this inverse relationship catches people off guard. Improving from 10 MPG to 20 MPG (a 10 MPG improvement) saves far more fuel than improving from 30 MPG to 40 MPG (also a 10 MPG improvement). In L/100km, this is immediately obvious: 10 MPG = 23.5 L/100km, 20 MPG = 11.8 L/100km (saving 11.7 L/100km), while 30 MPG = 7.8 L/100km and 40 MPG = 5.9 L/100km (saving only 1.9 L/100km). The European metric makes the diminishing returns of fuel economy improvements intuitively visible — which is one reason transportation economists often prefer it.
Researchers at Duke University demonstrated that people consistently overestimate the fuel savings from improving already-efficient vehicles. Replacing a 10 MPG truck with a 20 MPG truck saves 500 gallons over 10,000 miles. Replacing a 30 MPG sedan with a 40 MPG hybrid saves only 83 gallons over the same distance. The L/100km metric makes this immediately clear because the relationship is linear in terms of actual fuel consumed. UnitSwap lets you convert between both perspectives instantly.
10. Exotic Units: Barns, Jiffies, Slugs & Poundals
Scattered throughout UnitSwap's 17 categories are units that, honestly, sound like they belong in a comedy sketch but are deadly serious in their respective fields. These exotic units reveal fascinating stories about the history of measurement and the specialized needs of specific scientific and engineering communities.
Barn (10−²&sup8; m²) — The barn is a unit of area used in nuclear and particle physics to measure the cross-sectional area of atomic nuclei and the probability of nuclear reactions. The name is deliberately humorous: during the Manhattan Project, physicists needed a name for 10−²&sup4; cm², and since uranium nuclei seemed "as big as a barn" compared to other nuclear targets, the name stuck. It was initially classified information. A typical uranium-235 fission cross section is about 580 barns, while a neutrino interaction cross section might be measured in femtobarns (10−¹&sup5; barns) — hence the collider physics term "inverse femtobarn" for luminosity measurements at CERN.
Jiffy (0.01 seconds) — In electronics and computing, a jiffy is a unit of time equal to one tick of the system timer interrupt. The most common definition is 10 milliseconds (0.01 seconds), corresponding to a 100 Hz timer frequency, though the exact duration varies by system. The Linux kernel defines a jiffy based on the CONFIG_HZ setting, which can be 100, 250, or 1000 Hz. UnitSwap uses the 0.01-second convention. The colloquial phrase "I'll be back in a jiffy" now has a precise engineering meaning — approximately 10 milliseconds.
Shake (10−&sup8; seconds, or 10 nanoseconds) — The shake is a unit of time used in nuclear physics, specifically in the timing of nuclear chain reactions and explosions. The name derives from the phrase "two shakes of a lamb's tail" — a folksy expression for a very short time. One shake (10 nanoseconds) is approximately the time for one generation of neutron multiplication in a fission chain reaction. Nuclear weapons designers at Los Alamos needed a convenient time unit for these calculations, and the shake became standard in that community.
Slug (approximately 14.594 kg) — The slug is the unit of mass in the Imperial foot-pound-second system. It is defined as the mass that is accelerated by 1 ft/s² when a force of one pound-force is applied. The name reportedly comes from the slug's perceived "sluggishness" — it represents a large amount of mass. While largely replaced by the kilogram in most engineering contexts, the slug still appears in American aerospace engineering calculations, fluid dynamics textbooks, and some HVAC system specifications.
Poundal (approximately 0.1383 N) — The poundal is the unit of force in the British absolute system, defined as the force needed to accelerate one pound-mass at one foot per second squared. It was designed to create a coherent foot-pound-second system analogous to the metric Newton-kilogram-meter system, but it never gained widespread adoption because engineers preferred to work with the pound-force (which incorporates Earth's gravitational acceleration) rather than the poundal (which does not). It survives primarily in physics education and historical engineering literature.
11. Real-Time Bidirectional Conversion
Most unit converters operate in a single direction: you type a value in the "From" field and the "To" field updates. UnitSwap works in both directions simultaneously. If you type 100 in the "From" field while converting kilometers to miles, the "To" field shows 62.1371. But you can also type a value directly in the "To" field — enter 100 in the miles field, and the kilometers field updates to 160.934. This bidirectional approach eliminates the need to swap units when you want to work "backwards."
The swap button provides an alternative approach to reversing direction. Clicking it exchanges the selected units (kilometers becomes miles and vice versa) and recalculates the result. The combination of bidirectional input and the swap button means you can approach any conversion from whichever direction feels natural, without any unnecessary clicks or mental gymnastics.
The formula bar displays the mathematical relationship between the currently selected units in real time. When you select kilometers and miles, it shows the conversion factor: 1 Kilometer = 0.621371 Miles. This serves both as a learning aid and a verification tool — you can see at a glance whether the conversion makes sense before examining the specific numbers. The quick reference table extends this by showing the selected unit's conversion factors to every other unit in the category, creating a comprehensive reference card that updates dynamically as you change selections.
The copy button places the current result on your clipboard with a single click. No need to triple-click to select the text, right-click, and choose "Copy." This streamlines the workflow when you need to paste conversion results into emails, spreadsheets, reports, or chat messages.
12. Privacy: Pure Math, Zero Transmission
Unit conversion is pure arithmetic. When you think about it, there is genuinely no logical reason for a unit converter to phone home to any server. And UnitSwap does not. Every conversion factor is embedded directly in the JavaScript source code. Every calculation is performed using your browser's built-in arithmetic engine. No API calls are made, no telemetry is sent, no conversion history is logged to any remote database.
This matters more than it might initially seem. Consider an engineer converting units for a defense contract, a pharmaceutical researcher calculating drug dosages, or a student working on a take-home exam. In each case, the specific values being converted could be sensitive — revealing project specifications, proprietary formulations, or academic integrity concerns. A server-based converter could theoretically log these queries. UnitSwap cannot, because there is no server to log anything to.
The tool's privacy is not enforced by a policy document that could be changed — it is enforced by architecture. Open your browser's network tab while using UnitSwap and you will see zero outgoing requests after the initial page load. There is no fetch(), no XMLHttpRequest, no WebSocket connection, no beacon API call. The HTML, CSS, and JavaScript arrive in your browser, and from that point forward, every interaction is a local computation. This is the strongest possible privacy guarantee: data that never leaves your device cannot be intercepted, leaked, subpoenaed, or sold.
Open UnitSwap, press F12 to open your browser's DevTools, switch to the Network tab, and perform any conversion. You will see zero network activity. Then disconnect from the internet entirely and continue using the tool. Every conversion will work identically because no network connection is needed. This is not a trust-us claim — it is an inspect-it-yourself architectural fact.
13. UnitSwap vs. Google Units, ConvertUnits & UnitConverters.net
The unit conversion space has several established players, each with significant limitations that UnitSwap addresses.
Google Units — Typing "5 miles to km" into Google gives an instant answer with a small interactive converter widget. This is ideal for one-off conversions, but Google's unit converter covers a limited number of categories (primarily length, weight, temperature, speed, volume, and digital storage) and offers no formula display, no quick reference table, no bidirectional input, and no support for exotic units like barns, slugs, or jiffies. You also cannot see the conversion factor or the mathematical relationship — just the answer. For professionals who need to understand and verify their conversions, this is insufficient. Additionally, every conversion query becomes part of your Google search history and advertising profile.
ConvertUnits.com — This long-running site provides a broad catalog of units but sends every conversion to its server for calculation. The round-trip delay is noticeable, the interface is cluttered with banner advertisements, and the site does not work offline. The conversion factors are not displayed, making it impossible to verify results without an independent source. Server-side processing also means your conversion queries are logged in the site's server logs, which may be retained indefinitely.
UnitConverters.net — A comprehensive site with good unit coverage, but the interface is densely packed with links, categories, and advertisements that create significant visual clutter. Navigation requires multiple page loads as each category and conversion is a separate URL. There is no bidirectional conversion, no formula bar, and no way to see all conversion factors for a category in a single view. The site relies on server-side computation, so it requires an active internet connection and transmits your queries to their servers.
UnitSwap differentiates itself on four axes: depth (201 units including exotic and specialized units that casual converters omit), transparency (formula bar and quick reference table showing the exact math), interaction design (bidirectional input, swap, copy-to-clipboard), and privacy (zero network requests, fully offline-capable). It trades the "just type it into Google" convenience of a search-bar approach for the depth and verification capability of a purpose-built tool — while remaining faster and lighter than any server-dependent alternative.
14. Frequently Asked Questions
How many units does UnitSwap support?
UnitSwap supports 201 individual units organized into 17 categories: Length (22), Weight (16), Temperature (8), Volume (18), Area (14), Speed (11), Data Storage (17), Time (13), Pressure (12), Energy (13), Power (11), Frequency (9), Angle (9), Fuel Economy (5), Force (8), Density (9), and Torque (7).
Does UnitSwap require an internet connection?
Only for the initial page load. Once UnitSwap has loaded in your browser, every conversion is performed using local JavaScript arithmetic with no server communication. You can disconnect from the internet and continue using the tool indefinitely. All 201 conversion factors are embedded directly in the source code.
Why does −40°C equal −40°F?
Setting C = F in the Fahrenheit-Celsius formula F = C × 9/5 + 32 and solving for C yields C = −40. This is the unique mathematical intersection point of the two linear temperature scales. It occurs at a physically real and frequently experienced temperature — common during Arctic winters in Canada, Siberia, and Scandinavia.
What is the difference between KB and KiB?
KB (kilobyte) uses the SI decimal prefix where Kilo = 1,000, so 1 KB = 1,000 bytes. KiB (kibibyte) uses the IEC binary prefix where Kibi = 1,024, so 1 KiB = 1,024 bytes. The difference is 2.4% at the kilo level but compounds at higher prefixes: 1 TB = 1,000,000,000,000 bytes while 1 TiB = 1,099,511,627,776 bytes — a 10% difference. Hard drive manufacturers use SI; operating systems historically use binary. UnitSwap supports both conventions explicitly.
How does UnitSwap handle temperature conversions differently from other units?
Temperature scales have non-linear relationships that cannot be expressed as simple multiplication factors. UnitSwap routes all temperature conversions through Celsius using custom toC() and fromC() formulas for each of the 8 scales. This requires only 14 formulas instead of the 56 that a direct pairwise approach would need, while producing mathematically identical results.
Why does L/100km go down when fuel efficiency improves?
L/100km measures fuel consumption per distance (volume per distance), not distance per volume. A more efficient car consumes less fuel per 100 km, so the number decreases. This is the inverse of MPG, where higher numbers mean better efficiency. The relationship is non-linear: improving from 10 to 20 MPG saves far more fuel than improving from 30 to 40 MPG, a fact that L/100km makes intuitively visible.
What is a barn, and why is it in the Area category?
A barn is 10−²&sup8; square meters, a unit of area used in nuclear and particle physics to measure the cross-sectional area of atomic nuclei. The name was coined during the Manhattan Project — physicists considered uranium nuclei to be "as big as a barn" relative to smaller nuclear targets. Despite its humorous origin, the barn is a standard unit in particle physics literature and appears in CERN publications.
Can I verify UnitSwap's conversion factors?
Yes. The formula bar shows the exact mathematical relationship between any two selected units. The quick reference table shows the conversion factors for every unit in the current category. You can also view the complete source code in your browser's DevTools (Ctrl+U or F12 > Sources) to inspect every stored conversion factor directly.
Why are there four different types of horsepower in the Power category?
Mechanical horsepower (745.7 W) was defined by James Watt based on the output of draft horses. Metric horsepower (735.5 W) was later defined as exactly 75 kgf·m/s. Electrical horsepower (746 W exactly) was standardized for electric motor ratings. Boiler horsepower (9,810 W) measures the heat output of steam boilers. Each serves a different industry and has a distinct precise value, which is why UnitSwap includes all four.
Does UnitSwap use any external libraries or APIs?
No. UnitSwap is built entirely with vanilla HTML, CSS, and JavaScript. There are no external library dependencies (no math.js, no lodash, no React), no CDN resources loaded at runtime, and no API calls to conversion servers. Every conversion factor is a hardcoded constant in the source code, and every calculation uses native JavaScript arithmetic. This makes the tool fast, reliable, and fully self-contained.
15. Conclusion
Measurement is one of humanity's oldest technologies. The sheer diversity of units we have invented across thousands of years is both a testament to human creativity and, let's be honest, an ongoing source of practical frustration. The metric system was supposed to simplify everything, but we live in a world where American engineers still think in feet and pounds, British pubs still serve pints (Imperial pints, which are 20% larger than American ones), and nuclear physicists measure cross-sections in barns. Expecting universal standardization is unrealistic. What we need instead is a reliable, transparent, and private conversion tool that handles the full breadth of units people actually encounter.
UnitSwap delivers this with 201 units across 17 categories, covering everything from the subatomic (Angstroms, electron volts, atomic mass units) to the astronomical (light years, astronomical units) and from the ancient (grains, fathoms, furlongs) to the modern (gibibytes, terahertz, kilonewton-meters). The base-unit multiplication algorithm provides a clean, verifiable mathematical framework. Temperature conversions route through Celsius with exact formulas for all eight scales. Fuel economy correctly handles the L/100km inverse relationship that trips up less careful converters. And the entire tool runs as pure client-side JavaScript — no libraries, no servers, no data transmission.
Whether you are an engineer specifying tolerances, a scientist converting between measurement systems, a student solving homework problems, a home cook adapting a recipe from another country, or simply someone who wants to know how many furlongs are in a light year (approximately 5.878 × 10¹¹, if you were curious), UnitSwap provides the answer instantly, transparently, and privately. Open it, convert, and trust the math — because math is all it does.
Related Articles
Published: March 26, 2026
