Conversions
Bytes converter
Converts between bytes, kilobytes, megabytes, gigabytes, terabytes and petabytes, counted in powers of 1024 (KiB, MiB, GiB) or of 1000 (kB, MB, GB).
How to use this tool
Pick a mode first. Binary uses steps of 1024 and labels the fields KiB, MiB, GiB, TiB and PiB. Decimal uses steps of 1000 and labels them kB, MB, GB, TB and PB. Then type a value in any of the six fields, from bytes to the largest unit, and the other five are recalculated from it. The two modes exist because the same word is used for two sizes. Drive and network vendors count in powers of 1000, while memory sizes and some operating systems count in powers of 1024. The gap widens with each unit: 2.4% at the kilobyte, 7.4% at the gigabyte, about 10% at the terabyte. Results are rounded to six decimal places, so a few bytes expressed in gigabytes show as 0.
Concrete examples
- 1 GiB = 1,073,741,824 bytes = 1,024 MiB (binary)
- 1 GB = 1,000,000,000 bytes = 1,000 MB (decimal)
- A 500 GB drive holds 500,000,000,000 bytes, which is 465.661287 GiB
- A 1 TB drive is 931.322575 GiB, the "931 GB" a computer may report
- 16 GiB of memory = 17,179,869,184 bytes
Frequently asked questions
- Why does a 1 TB drive show as 931 GB?
- The manufacturer counts 1 TB as 1,000,000,000,000 bytes. Windows divides that by 1024 three times and still writes GB, which gives 931.32. The drive holds what it says: the same bytes are counted in a larger unit. macOS counts in powers of 1000 and shows 1 TB.
- What is the difference between KB and KiB?
- kB is the SI kilobyte, 1,000 bytes. KiB is the kibibyte, 1,024 bytes, a prefix introduced by the IEC at the end of the 1990s so that each size has its own name. The same split applies upward: MB and MiB, GB and GiB, TB and TiB. In everyday use KB and GB are still written for both, which is where the confusion comes from.
- Which mode should I use?
- Decimal for anything a vendor states: drive and SSD capacities, data plans, file sizes on macOS. Binary for RAM and for sizes reported by Windows. When a figure only says GB, compare it with the byte count if you have it: 1 GB in decimal is 1,000,000,000 bytes, 1 GiB is 1,073,741,824.
- Is Mb the same as MB?
- No. A lowercase b means bits and an uppercase B means bytes, and a byte is 8 bits. A 100 Mb/s connection therefore moves at most 12.5 MB per second. This converter works in bytes only, so divide a figure in bits by 8 before typing it.