Data Storage Converter
Convert data sizes between bits, bytes, KB, MB, GB, TB and PB. Enter a value and pick your units.
What this converter returns
Enter a size and choose the unit you have and the unit you want. At the defaults, 1 GB converts to 1,024 MB. This converter uses the binary convention throughout, where each step is a factor of 1,024 rather than 1,000, because that is how memory is addressed and how most operating systems report file sizes. The distinction matters at gigabyte scale, where the two conventions differ by 7.4%.
Why storage counts in 1,024s
Memory is built from cells that hold one bit and are addressed by binary numbers, so every capacity that falls out of the hardware is a power of two. Ten address lines reach 1,024 locations, twenty reach 1,048,576, and thirty reach 1,073,741,824. The metric prefixes were borrowed for convenience and quietly redefined, which is the source of every confusing number on a storage label.
Why the shortfall grows with capacity
The gap between the two definitions grows with each step. At the kilobyte level it is 2.4%, at the megabyte level 4.9%, at the gigabyte level 7.4%, and at the terabyte level 10.0%. That progression is why a discrepancy nobody notices on a floppy disk becomes a 69 GB shortfall on a drive sold as 1 TB.
The 1,000 versus 1,024 problem
Drive manufacturers sell in decimal, because a 1 TB drive really does hold 1,000,000,000,000 bytes. Windows divides by 1,024 three times and reports 931 GB. Divide 1,000,000,000,000 by 1,073,741,824 and you get 931.32, so the missing 69 GB is a units disagreement rather than lost space. macOS has displayed decimal values since 2009, which is why the same drive looks bigger on a Mac.
The IEC names that end the argument
In 1998 the IEC introduced unambiguous prefixes: kibibyte (KiB) is 1,024 bytes, mebibyte (MiB) is 1,048,576, gibibyte (GiB) is 1,073,741,824, and tebibyte (TiB) is 1,099,511,627,776. Under those names a 1 TB drive is 0.909 TiB and a 16 GB memory kit is 16 GiB, with no ambiguity in either direction. Most consumer software still ignores the standard, so both vocabularies remain in use.
Worked example at the defaults
The defaults convert 1 GB to MB: 1 × 1,073,741,824 ÷ 1,048,576 = 1,024 MB, exactly. The same gigabyte is 8,589,934,592 bits, since each byte holds eight bits, and 1,048,576 KB. A 4 GB video file is 4,096 MB, or 4,294,967,296 bytes, which is the number a file system actually stores.
Scale it to a drive. A retail 12 TB drive holds 12,000,000,000,000 bytes. Divide that by 1,099,511,627,776 and the result is 10.91 TiB, which is what Windows reports on the properties tab. The label and the operating system are both telling the truth, in different units, and neither of them is broken.
Conversion table
| From | To | Multiply by |
|---|---|---|
| byte | bit | 8 |
| KB | byte | 1,024 |
| MB | KB | 1,024 |
| GB | MB | 1,024 |
| TB | GB | 1,024 |
| PB | TB | 1,024 |
| GB | byte | 1,073,741,824 |
| TB | byte | 1,099,511,627,776 |
Read the table from the bottom up and the pattern is a single number repeated. Every row is 1,024 or a power of it, apart from the byte-to-bit row, which is 8 and belongs to a different question. If you internalise only two facts, take 1,024 between adjacent prefixes and 8 between bits and bytes, and you can rebuild the rest.
What the numbers look like on real devices
| Label | Decimal bytes | Shown as binary |
|---|---|---|
| 500 GB SSD | 500,000,000,000 | 465.7 GiB |
| 1 TB hard drive | 1,000,000,000,000 | 931.3 GiB |
| 4.7 GB DVD | 4,700,000,000 | 4.38 GiB |
| 25 GB Blu-ray | 25,000,000,000 | 23.28 GiB |
| 16 GB RAM kit | 16,000,000,000 | 14.90 GiB |
The RAM row is the odd one, because memory is genuinely binary and a 16 GB kit is 16 GiB, or 17,179,869,184 bytes, so it shows as 16 GB. Storage and memory use the same words with different arithmetic, which is why a machine with 16 GB of RAM and a 512 GB SSD reports two different kinds of gigabyte in the same system information panel.
Video is where storage units stop being abstract. A 4K stream at 25 Mbps consumes about 11.25 GB per hour, so a 1 TB drive holds roughly 88 hours of it, while the same drive holds about 275 hours of 1080p at 8 Mbps. Both figures assume decimal GB, which is how streaming services and drive labels count.
Where storage conversions go wrong
- Dividing by 1,000 instead of 1,024: a 1 TB drive is 931 GiB, not 1,000 GiB, and the 7% gap is the whole complaint.
- Confusing bits and bytes on a network plan: a 100 Mbps line delivers 12.5 MB/s, not 100 MB/s.
- Assuming a 512 GB phone has 512 GB free, when the operating system occupies 20 to 30 GB before any apps.
- Adding decimal and binary figures in one budget, so a 2 TB backup plan and a 2,000 GB quota are treated as equal.
- Forgetting overhead: a RAID 5 array of four 8 TB drives yields 24 TB usable, not 32 TB.
The overhead point is the one that ruins backup plans. File systems reserve space for metadata, snapshots and parity, and a 1 TB volume typically presents 931 GiB before the file system takes its share. Budget 90% of the advertised capacity as usable, and a 10 TB array becomes a realistic 9 TB target rather than a number you argue with later.
Precision: how many digits are meaningful
Storage figures are exact integers, so the only rounding is the one you choose. A file of 1,234,567 bytes is 1.18 MiB or 1.23 MB depending on the convention, and the two differ by 4.9%. For capacity planning, one decimal place is enough. For checksums and byte counts, keep every digit, because a file that is one byte short will not open.
- State the convention when you quote a size: GB decimal or GiB binary, never a bare GB.
- Convert once, at the end of the calculation, rather than between units in a chain.
- Round storage up to the next whole unit when provisioning, and never round a byte count at all.
- Remember that throughput and capacity use different prefixes: networks are decimal, memory is binary.
Frequently asked questions
How many MB are in a GB?
1,024 under the binary convention this converter uses. Drive manufacturers use 1,000, which is why a 1 TB drive holds 931 GiB rather than 1,000 GiB.
Why does my 1 TB drive show only 931 GB?
The drive holds 1,000,000,000,000 bytes. Windows divides by 1,024 three times, giving 931.32 GiB. Nothing is missing; the two sides define the gigabyte differently.
What is the difference between MB and MiB?
A megabyte is ambiguous between 1,000,000 and 1,048,576 bytes, while a mebibyte is exactly 1,048,576. This converter uses the binary values behind the familiar MB and GB labels.
How many bytes are in a gigabyte?
1,073,741,824 in binary, or 1,000,000,000 in decimal. A 4 GB file is 4,294,967,296 bytes under the binary convention.
How many bits are in a byte?
Eight. That is why a 100 Mbps network connection downloads at 12.5 MB/s, since 100 ÷ 8 = 12.5.
How many GB is a 4.7 GB DVD?
4.7 GB decimal, which is 4.38 GiB in binary. A 25 GB Blu-ray is 23.28 GiB by the same arithmetic.
How many TB are in a PB?
1,024 in binary, so a petabyte is 1,125,899,906,842,624 bytes. In decimal terms that is 1.126 PB, because the binary petabyte is 12.6% larger.
Is a 512 GB SSD really 512 GB?
It is 512,000,000,000 bytes, which is 476.8 GiB. After formatting and the operating system, expect about 450 GB of usable space.
How big is a 16 GB RAM kit in bytes?
17,179,869,184 bytes, because memory is genuinely binary and 16 GiB × 1,073,741,824 = 17.18 billion bytes. That is 7.4% more than 16 decimal GB.
Method and sources
- Binary prefixes (1 KiB = 1024 B) and the IEC 80000-13 standard.
- SI decimal prefixes used by storage vendors.