Built for accuracy
History & favorites stay local
Storage vendors and operating systems toggle between decimal (powers of 10) and binary (powers of 2) units. This reference clarifies both systems so capacity reports stop disagreeing.
Hard drives, SSDs, memory modules, and file systems each use different conventions. The table highlights the decimal units (kB, MB, GB) alongside the binary versions (KiB, MiB, GiB) so you know how much space you really have.
This converter shows data storage units only. Pick any two and get results immediately.
Jump directly to any data storage conversion.
Every unit below references the SI base value so you can compare readings quickly.
| Unit | Symbol | 1 unit in B | Notes |
|---|---|---|---|
| Byte | B | Reference unit | — |
| Kilobyte | KB | 1 KB = 1K B | Also written kB |
| Kibibyte | KiB | 1 KiB = 1.02K B | — |
| Megabyte | MB | 1 MB = 1.0000×10^+6 B | — |
| Mebibyte | MiB | 1 MiB = 1.0486×10^+6 B | — |
| Gigabyte | GB | 1 GB = 1.0000×10^+9 B | — |
| Gibibyte | GiB | 1 GiB = 1.0737×10^+9 B | — |
| Terabyte | TB | 1 TB = 1.0000×10^+12 B | — |
| Tebibyte | TiB | 1 TiB = 1.0995×10^+12 B | — |
The same number of bytes can be written as 1 TB or as 931.32 GiB. Storage is counted in two systems: one goes up by 1,000 at each prefix, the other by 1,024.
KB · MB · GB · TB
Kilo means 1,000 here, exactly as in kilometer or kilogram. Makers of hard drives, SSDs, USB sticks and memory cards label capacity this way, and macOS (since OS X 10.6 Snow Leopard) and iOS (since iOS 11) show file and disk sizes the same way.
KiB · MiB · GiB · TiB
Kibi means 2¹⁰ = 1,024. RAM is sized this way, and Windows File Explorer and the df -h command count this way too, although Windows still labels the results KB, MB and GB.
| Decimal | Binary |
|---|---|
| 1 kilobyte (KB)1,000 bytes | 1 kibibyte (KiB)1,024 bytes2.40% larger |
| 1 megabyte (MB)1,000,000 bytes | 1 mebibyte (MiB)1,048,576 bytes4.86% larger |
| 1 gigabyte (GB)1,000,000,000 bytes | 1 gibibyte (GiB)1,073,741,824 bytes7.37% larger |
| 1 terabyte (TB)1,000,000,000,000 bytes | 1 tebibyte (TiB)1,099,511,627,776 bytes9.95% larger |
Computers address memory in binary. Every extra address bit doubles the number of locations that can be reached, so memory sizes come in powers of two. 2¹⁰ = 1,024 is close to 1,000, so early computing borrowed “kilo” for it, and “megabyte” ended up meaning 1,000,000 bytes to some people and 1,048,576 to others.
In December 1998 the International Electrotechnical Commission (IEC) approved separate prefixes for the binary meaning: kibi (Ki), mebi (Mi), gibi (Gi), tebi (Ti) and larger ones such as pebi (Pi). Each name blends the decimal prefix with “binary”, so kilo + binary gives kibi. With them, KB keeps its SI meaning of 1,000 bytes and KiB always means 1,024. NIST and IEC 80000-13 use this system, but many programs still use the older labels, so check which system a number is in.
A drive sold as 2 TB holds about 2,000,000,000,000 bytes. Divide that by 1,024 four times and you get 1.82 TiB, which Windows displays as “1.82 TB”. A Mac shows the same drive as 2 TB. No space is missing: both numbers count the same bytes. The gap grows at every prefix, from 2.4% at kilo to almost 10% at tera, which is why a 1 TB drive shows up as about 931 GB in Windows. Formatting and the operating system then take a little of the space as well.
df -h: binary, even when the label says GB. 16 GB of RAM is 16 GiB, or 17,179,869,184 bytes. (df -H shows decimal sizes instead.)These presets mirror the quick actions available inside the SwapUnits converter.
| Conversion | Example | Reference page | Why it matters |
|---|---|---|---|
| Gigabytes to Megabytes | 1 GB = 1K MB | Open | Ideal for quick checks inside the live converter. |
| Terabytes to Gigabytes | 1 TB = 1K GB | Open | Ideal for quick checks inside the live converter. |
| Terabytes to Gibibytes | 1 TB = 931.323 GiB | Open | Ideal for quick checks inside the live converter. |
Manufacturers use decimal units, so a 1 TB drive equals 1,000,000,000,000 bytes. Operating systems often divide by 1,073,741,824 to report gibibytes (GiB), which yields a smaller number.
MB (megabyte) equals 1,000,000 bytes. MiB (mebibyte) equals 1,048,576 bytes. Software developers prefer MiB to avoid ambiguity in memory size calculations.
In decimal terms, 1 TB equals 1,000 GB. In binary terms, 1 TiB equals 1,024 GiB. Check which prefix your tool displays before converting.
Head back to the SwapUnits converter to crunch numbers instantly and save your favorite presets.