1618.dev

small tools, one committed a day

Unit converter

Convert length, mass, and volume between metric and imperial units, using exact international conversion factors.

How it works

Every unit is stored as a single factor — how many base units it equals (metre for length, kilogram for mass, litre for volume). To convert, we scale the input to the base unit and back out to the target unit, so there's no per-pair lookup table. Factors use the exact international definitions: 1 inch = 0.0254 m, 1 pound = 0.45359237 kg, and US fluid measures derive from the US gallon = 3.785411784 L.