Skip to main content

Online Calculator Lab

📏 3 Free Unit Converters

Unit Converters

Length, weight, temperature, volume, speed, data storage — live bidirectional conversion with all units on screen. Plus IP subnet and length converters.

All Unit Converters (3)

Click any converter to open it — all tools are free, instant, and require no sign-up.

Length Conversion — Metric and Imperial Reference

The metric system (millimeters, centimeters, meters, kilometers) and the imperial/US customary system (inches, feet, yards, miles) are the two most commonly used length measurement frameworks. All conversion factors below are exact or rounded to 6 significant figures — the same values used in the conversion calculator.

FromToMultiply ByExample
1 kmmiles0.6213715 km = 3.10686 mi
1 milekm1.6093410 mi = 16.0934 km
1 meterfeet3.28084100 m = 328.084 ft
1 footcm30.486 ft = 182.88 cm
1 inchcm2.5412 in = 30.48 cm
1 meterinches39.37012 m = 78.7402 in
1 meteryards1.0936150 m = 54.6807 yd

Weight Conversion — Key Reference Values

The kilogram is the base unit of mass in the SI (International System of Units). The pound and ounce are the primary imperial units used in the United States. All values below are calculated from the exact international definition: 1 pound = 0.45359237 kg exactly.

FromToMultiply ByExample
1 kgpounds (lb)2.2046270 kg = 154.324 lb
1 lbkg0.453592150 lb = 68.039 kg
1 kgounces (oz)35.2741 kg = 35.274 oz
1 ozgrams (g)28.349516 oz = 453.592 g
1 metric tonkg1,0002.5 t = 2,500 kg
1 US tonlb2,0001 ton = 2,000 lb

Temperature Conversion Formulas

Unlike length and weight, temperature conversion is not a simple multiplication — it requires both multiplication and addition because the scales have different zero points. The three scales in common use are Celsius (metric, water freezes at 0°), Fahrenheit (US customary, water freezes at 32°), and Kelvin (absolute scale, used in science).

Temperature Conversion Formulas: Celsius → Fahrenheit: °F = (°C × 9/5) + 32 Fahrenheit → Celsius: °C = (°F − 32) × 5/9 Celsius → Kelvin: K = °C + 273.15 Kelvin → Celsius: °C = K − 273.15 Verified examples: 0°C = 32°F (water freezes) 100°C = 212°F (water boils at sea level) 37°C = 98.6°F (average human body temperature) −40°C = −40°F (only point where scales are equal) 0°C = 273.15 K 100°C = 373.15 K 22.2°C = 72°F (comfortable room temperature) 37°C = 98.6°F ✓ verify: (98.6 − 32) × 5/9 = 37.0°C
📌 Quick mental estimate: To roughly convert Celsius to Fahrenheit, double the Celsius value and add 30. For 20°C: (20×2)+30 = 70°F (actual: 68°F). To go the other way, subtract 30 and halve: 70°F → (70−30)÷2 = 20°C. The estimate is off by 1–3°F for typical weather temperatures but useful when you need a quick approximation. Reference: NIST — Unit Conversion

IP Subnet Calculator — How CIDR Notation Works

CIDR (Classless Inter-Domain Routing) notation expresses an IP address and its subnet mask as a single value — for example, 192.168.1.0/24. The number after the slash tells you how many bits are used for the network portion, which determines how many host addresses are available.

CIDR to usable hosts formula: Usable Hosts = 2^(32 − prefix) − 2 (subtract 2 for network address and broadcast address) Common CIDR ranges (verified with ipaddress module): /24 → 2^8 − 2 = 254 hosts | Mask: 255.255.255.0 /16 → 2^16 − 2 = 65,534 hosts| Mask: 255.255.0.0 /8 → 2^24 − 2 = 16,777,214 | Mask: 255.0.0.0 /22 → 2^10 − 2 = 1,022 hosts | Mask: 255.255.252.0 Example — 192.168.1.0/24: Network address: 192.168.1.0 Broadcast address: 192.168.1.255 Usable host range: 192.168.1.1 – 192.168.1.254 Total usable hosts: 254

Data Storage Unit Conversion

Data storage units follow a binary-based system where each step up multiplies by 1,024 (2¹⁰), not 1,000 as in the metric system. This is why a "1 GB" hard drive formatted in a computer shows slightly less than 1 GB — hard drive manufacturers use 1 GB = 1,000,000,000 bytes (decimal), while operating systems use 1 GB = 1,073,741,824 bytes (binary).

UnitAbbreviationBinary ValueBytes
KilobyteKB2¹⁰1,024
MegabyteMB2²⁰1,048,576
GigabyteGB2³⁰1,073,741,824
TerabyteTB2⁴⁰1,099,511,627,776

Common quick references: 1 GB = 1,024 MB = 1,048,576 KB. 1 TB = 1,024 GB. 1 MB = 1,048,576 bytes. Source: NIST — SI Prefixes

5 Unit Conversion Tips

  • For km to miles, multiply by 0.6 for a quick estimate. The exact factor is 0.621371, so multiplying by 0.6 gives a result about 3% low — close enough for most navigation needs. For 50 km: 50 × 0.6 = 30 mi (actual: 31.07 mi). To go miles to km, multiply by 1.6 (exact: 1.60934) — 20 mi × 1.6 = 32 km (actual: 32.19 km).
  • 1 inch = 2.54 cm is an exact definition, not an approximation. Since 1959, the international inch has been defined as exactly 2.54 centimeters. This means all inch-to-metric conversions are exact values, not measured approximations. The foot (30.48 cm), yard (91.44 cm), and mile (1,609.344 m) are all derived from this exact definition.
  • −40° is the only temperature where Celsius and Fahrenheit are equal. This isn't a coincidence — it's a mathematical consequence of the two formulas crossing at that point. Verify: °F = (−40 × 9/5) + 32 = −72 + 32 = −40°F. Useful as a sanity check when working with temperature conversions at extreme values.
  • For CIDR subnets, the /prefix tells you exactly how many bits are fixed. A /24 network fixes 24 bits, leaving 8 bits for hosts: 2⁸ = 256 addresses, minus 2 reserved = 254 usable. A /22 fixes 22 bits, leaving 10 bits: 2¹⁰ = 1,024 − 2 = 1,022 usable hosts. Each step down in prefix (e.g., /24 to /23) exactly doubles the number of available addresses.
  • Hard drive "GB" and computer "GB" are different numbers. When a manufacturer advertises a 1 TB drive, they mean 1,000,000,000,000 bytes (decimal). Your operating system shows it as approximately 931 GB because it uses 1 TB = 1,099,511,627,776 bytes (binary). The 7% difference is not missing data — it's a difference in how the same byte count is expressed in decimal vs binary units. The data storage converter uses binary (1 GB = 1,024 MB) which matches how operating systems report storage.

Frequently Asked Questions — Unit Converters

Multiply kilometers by 0.621371 to get miles. For 5 km: 5 × 0.621371 = 3.10686 miles. To go the other way (miles to km), multiply by 1.60934. For 10 miles: 10 × 1.60934 = 16.0934 km. Quick mental estimate: km × 0.6 for miles, miles × 1.6 for km — both accurate within about 3%.
°F = (°C × 9/5) + 32. To go the other direction: °C = (°F − 32) × 5/9. Key reference points: 0°C = 32°F (freezing), 100°C = 212°F (boiling), 37°C = 98.6°F (body temperature), −40°C = −40°F (the only point where both scales are equal). The conversion calculator handles Celsius, Fahrenheit, and Kelvin in both directions instantly.
1 kilogram = 2.20462 pounds. To convert kg to lbs, multiply by 2.20462. To convert lbs to kg, multiply by 0.453592 (or divide by 2.20462). Examples: 70 kg = 154.324 lb; 150 lb = 68.039 kg. The value 2.20462 comes from the exact international definition: 1 lb = 0.45359237 kg exactly (set in 1959).
The /24 is the CIDR prefix — it means 24 of the 32 IP address bits are fixed (the network portion), leaving 8 bits for host addresses. 2⁸ = 256 total addresses, minus 2 reserved (network address 192.168.1.0 and broadcast 192.168.1.255) = 254 usable host addresses. The subnet mask for /24 is 255.255.255.0. The IP subnet calculator gives you network address, broadcast address, usable range, and mask for any CIDR prefix.
1 GB = 1,024 MB in binary (how operating systems measure storage). 1 GB = 1,000 MB in decimal (how hard drive manufacturers market capacity). This difference is why a "1 TB" hard drive shows as about 931 GB in your OS — both numbers represent the same bytes, just counted differently. The conversion calculator uses binary: 1 GB = 1,024 MB = 1,048,576 KB = 1,073,741,824 bytes.
The conversion calculator covers 8 categories: length (mm, cm, m, km, in, ft, yd, mi), weight (mg, g, kg, oz, lb, metric ton), temperature (°C, °F, K), area (cm², m², km², in², ft², acre, hectare), volume (ml, L, cm³, m³, fl oz, cup, gal), speed (m/s, km/h, mph, knots), time (seconds, minutes, hours, days, weeks, months, years), and data storage (bytes, KB, MB, GB, TB). Results update live as you type, and all units in the selected category are shown simultaneously.