Enter a value in any base — the others update automatically.
Quick reference for the first 32 values across all four number systems.
| Decimal | Binary | Hex | Octal | Decimal | Binary | Hex | Octal |
|---|
Binary is a base-2 number system — it uses only two digits (0 and 1). Every position in a binary number represents a power of 2, doubling from right to left:
| Position | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|
| Power of 2 | 2⁷ | 2⁶ | 2⁵ | 2⁴ | 2³ | 2² | 2¹ | 2⁰ |
| Value | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 |
Repeatedly divide by 2 and collect the remainders. Read from bottom to top:
Modern computers are built from billions of transistors — tiny electronic switches that are either ON (conducting electricity) or OFF (not conducting). These two states map perfectly to binary digits:
Binary is also highly noise-resistant. In a circuit, a signal can vary slightly due to electrical interference. With only two valid states (high/low voltage), the computer can reliably distinguish 0 from 1 even with noise. A decimal system (requiring 10 distinguishable voltage levels) would be far more error-prone.
All of the complex software, images, music, and videos on your computer are ultimately stored and processed as sequences of 0s and 1s.
| Unit | Size | Binary Max | Decimal Max |
|---|---|---|---|
| 1 bit | 1 binary digit | 1 | 1 |
| 1 nibble | 4 bits | 1111 | 15 |
| 1 byte | 8 bits | 11111111 | 255 |
| 1 kilobyte (KB) | 1,024 bytes | 1,048,576 possible values | |
| 1 megabyte (MB) | 1,024 KB | ~1.05 million bytes | |
| 1 gigabyte (GB) | 1,024 MB | ~1.07 billion bytes | |
| 1 terabyte (TB) | 1,024 GB | ~1.1 trillion bytes | |
Note: Hard drive manufacturers often use SI prefixes (1 KB = 1,000 bytes), which is why a "500 GB" drive shows as ~465 GB in Windows.
ASCII (American Standard Code for Information Interchange) assigns a number to each character, which is stored in binary. Every character you type is ultimately a binary number in memory:
| Character | Decimal | Binary | Hex |
|---|---|---|---|
| A | 65 | 01000001 | 41 |
| B | 66 | 01000010 | 42 |
| Z | 90 | 01011010 | 5A |
| a | 97 | 01100001 | 61 |
| z | 122 | 01111010 | 7A |
| 0 | 48 | 00110000 | 30 |
| Space | 32 | 00100000 | 20 |
The word "Hello" in ASCII binary: 01001000 01100101 01101100 01101100 01101111
An IPv4 address consists of four octets (8-bit groups) separated by dots. Enter any IPv4 address to see its binary representation:
This converter provides instant, accurate results for your measurement conversions. The UK uses a mix of metric and imperial measurements in daily life, which can make conversions a frequent necessity. Road signs use miles, food is sold in grams and kilograms, and height is often quoted in feet and inches despite the metric system being the official standard.
Understanding the conversion formula helps verify results and perform quick mental calculations when a tool is not available.
Common UK conversion factors: 1 inch = 2.54 cm, 1 foot = 30.48 cm, 1 mile = 1.609 km, 1 pound (lb) = 0.4536 kg, 1 stone = 6.35 kg, 1 pint (UK) = 568 ml, 1 gallon (UK) = 4.546 litres, 1 acre = 0.4047 hectares. Temperature conversions use the formula: Celsius = (Fahrenheit - 32) x 5/9.
To convert 5 feet 10 inches to centimetres: first convert to total inches (5 x 12 + 10 = 70 inches), then multiply by 2.54 to get 177.8 cm. For weight, a person weighing 12 stone 7 lbs is 12.5 stone, which equals 79.4 kg (12.5 x 6.35).
Source: Based on international measurement standards. Last updated March 2026.
Data verified against official UK government sources. Last checked April 2026.