๐พ Data Storage Converter: Bytes, KB, MB, GB, TB and PB
By Shihab Mia ยท Updated 2026-07-07
Decimal units (SI)
1 KB = 1000 bytes. Used by drive makers, networks, and most marketing.
Binary units (IEC)
1 KiB = 1024 bytes. How operating systems usually count memory and files.
Type a number in any box and every other unit updates instantly.
A data storage converter changes any digital size into bits, bytes, kilobytes (KB), megabytes (MB), gigabytes (GB), terabytes (TB) and petabytes (PB). The core rule is simple: 8 bits make 1 byte, and in decimal (SI) units each step up multiplies by 1000, so 1 KB = 1000 bytes, 1 MB = 1000 KB, and 1 GB = 1000 MB. Type a number into any field and every other unit updates instantly. This tool uses decimal units by default, and also shows binary (IEC) units such as KiB and MiB where each step multiplies by 1024, so you can match whichever system your drive, phone or operating system reports.
What is the Data Storage Converter?
Digital storage starts with the bit, a single binary digit that is either 0 or 1. Eight bits form one byte, the smallest unit that typically holds one character of text such as the letter A. Four bits are sometimes called a nibble. Everything larger than a byte is just a multiple of the byte, but there are two competing ways to count those multiples, and that difference is the single biggest source of confusion when people convert storage units.
The decimal or SI system uses powers of 1000. One kilobyte is 1000 bytes, one megabyte is 1000 KB (1,000,000 bytes), one gigabyte is 1000 MB, one terabyte is 1000 GB, and one petabyte is 1000 TB. This is the system hard drive and SSD makers print on the box, the system used to quote network and internet speeds, and the system behind most marketing figures. It matches everyday intuition because the numbers stay round.
The binary or IEC system uses powers of 1024 and prefixes that end in "bi": 1 kibibyte (KiB) is 1024 bytes, 1 mebibyte (MiB) is 1024 KiB, 1 gibibyte (GiB) is 1024 MiB, and 1 tebibyte (TiB) is 1024 GiB. Computers work in binary and address memory in powers of two, and 1024 is the nearest power of two to 1000 (2 to the power 10). Operating systems such as Windows still display file and memory sizes using 1024 multiples while labelling them KB, MB or GB, which is exactly why a drive sold as 1 TB shows as about 931 GB in File Explorer. No space is missing; the two systems just count differently.
The gap between the two systems compounds at every step. At the kilobyte level the difference is only about 2.4 percent, but it grows to roughly 4.9 percent at mega, 7.4 percent at giga, and about 10 percent by the terabyte level. That is why a 500 GB SSD (decimal) usually reports as around 465 GiB inside Windows, and a 2 TB drive shows near 1.82 TiB. For small files the difference is trivial, but across a full drive it adds up to tens of gigabytes.
Knowing which unit you need depends on the job. Use decimal MB, GB and TB for drive capacity, cloud storage plans, bandwidth caps and any customer-facing figure. Use binary MiB, GiB and TiB for RAM, memory buffers, and the exact sizes your operating system reports. This converter keeps both systems side by side and clearly labelled, and it routes every calculation through a single base unit, the byte, so results stay consistent no matter which box you type into.
A related trap is confusing bits with bytes. Internet and network speeds are quoted in bits per second, while file sizes are quoted in bytes. Because there are 8 bits in a byte, a 100 megabit per second (Mbps) connection transfers about 12.5 megabytes (MB) per second at best, not 100 MB. Getting that factor of 8 right is essential for estimating real download times and data usage.
When to use it
- Checking how many MB are in a GB when comparing a phone or cloud storage plan.
- Working out why a 1 TB drive shows up as about 931 GB in Windows or macOS.
- Converting a raw file size from bytes to KB or MB for a quick sanity check.
- Estimating how many photos, songs or videos fit on a card of a given capacity.
- Translating a network speed in Mbps into how many MB per second you actually get.
- Sizing a backup or database export by converting between GB, TB and petabytes.
How to use the Data Storage Converter
- Find the unit you already know in the decimal (SI) or binary (IEC) section.
- Type your number into that box; leave the others blank.
- Read the converted value from every other unit, which updates instantly.
- Use the decimal section for drive, plan and network figures.
- Use the binary section to match what your operating system reports on screen.
Formula & method
Worked examples
Convert 2 GB to MB (decimal).
- 1 GB = 1000 MB
- 2 GB = 2 x 1000 MB
Result: 2 GB = 2000 MB
Convert 500,000 bytes to KB (decimal).
- 1 KB = 1000 bytes
- 500,000 / 1000 = 500
Result: 500,000 bytes = 500 KB
See why a 1 TB drive reads as about 931 GB in your OS.
- 1 TB (decimal) = 1,000,000,000,000 bytes
- The OS divides by 1024 three times: bytes / (1024 x 1024 x 1024)
- 1024 x 1024 x 1024 = 1,073,741,824
- 1,000,000,000,000 / 1,073,741,824 = about 931.32
Result: A 1 TB drive shows as about 931.32 GiB (labelled GB) in the OS.
Find real download speed of a 100 Mbps connection in MB per second.
- Speed is in megabits (Mb), file size is in megabytes (MB)
- 1 byte = 8 bits, so divide the bit figure by 8
- 100 Mbps / 8 = 12.5
Result: A 100 Mbps line downloads at most about 12.5 MB per second.
Decimal (SI) versus binary (IEC) units in bytes
| Decimal unit | Bytes | Binary unit | Bytes |
|---|---|---|---|
| 1 KB | 1,000 | 1 KiB | 1,024 |
| 1 MB | 1,000,000 | 1 MiB | 1,048,576 |
| 1 GB | 1,000,000,000 | 1 GiB | 1,073,741,824 |
| 1 TB | 1,000,000,000,000 | 1 TiB | 1,099,511,627,776 |
| 1 PB | 1,000,000,000,000,000 | 1 PiB | 1,125,899,906,842,624 |
Common decimal conversions
| From | Equals |
|---|---|
| 1 nibble | 4 bits |
| 1 byte | 8 bits |
| 1 KB | 1000 bytes |
| 1 MB | 1000 KB (1,000,000 bytes) |
| 1 GB | 1000 MB (1,000,000 KB) |
| 1 TB | 1000 GB (1,000,000 MB) |
| 1 PB | 1000 TB (1,000,000 GB) |
Rough real-world capacity (decimal units, approximate)
| Size | Roughly holds |
|---|---|
| 1 KB | A short plain-text email or a paragraph of text |
| 1 MB | About 1 minute of MP3 audio or a small photo |
| 5 MB | One high-resolution smartphone photo |
| 1 GB | About 250 songs or 500 photos |
| 1 TB | About 250,000 photos or 500 hours of HD video |
| 1 PB | About 500 billion pages of standard text |
Common mistakes to avoid
- Mixing up bits and bytes. A byte is 8 bits. Internet speeds are usually in megabits per second (Mbps) while file sizes are in megabytes (MB). A 100 Mbps connection moves about 12.5 MB per second, not 100 MB, because you divide the bit figure by 8.
- Expecting a 1 TB drive to hold a full 1 TB as the OS counts it. Makers use decimal (1 TB = 1,000,000,000,000 bytes), but Windows divides by 1024 and still writes "GB". The same drive then reads as roughly 931 GB, so no space is missing, it is just counted differently.
- Assuming KB always means 1024 bytes. In decimal (SI) usage 1 KB = 1000 bytes. The 1024-byte unit has its own correct name, the kibibyte (KiB). Picking the wrong base adds about a 2.4 percent error per step, which compounds to roughly 10 percent by the terabyte level.
- Using a lowercase b and uppercase B as if they were the same. By convention a lowercase b means bits and an uppercase B means bytes. So Mb is megabits and MB is megabytes, an 8-fold difference. Reading Mbps as MBps overstates real transfer speed by eight times.
- Forgetting that reported free space is always less than the label. Formatting, the file system, and reserved space all consume capacity. Combined with the 1000 versus 1024 gap, a new 256 GB phone often shows around 230 to 240 GB usable, which is normal and not a defect.
- Converting across many steps by eye. Jumping from bytes straight to GB in your head invites slipped decimal places. Convert to the byte base first, then divide once by the target unit size, so a single calculation replaces several error-prone multiplications.
Glossary
- Bit
- The smallest unit of digital data, a single binary digit that is either 0 or 1. Written with a lowercase b.
- Nibble
- A group of 4 bits, or half a byte. It maps neatly to a single hexadecimal digit.
- Byte
- A group of 8 bits and the basic unit for measuring file and storage size. Written with an uppercase B.
- Decimal (SI) units
- Units based on powers of 1000, such as KB, MB, GB and TB. Used by storage makers and networks.
- Binary (IEC) units
- Units based on powers of 1024, with names like KiB, MiB, GiB and TiB, used to count exact memory sizes.
- Kibibyte (KiB)
- Exactly 1024 bytes. The binary counterpart to the 1000-byte kilobyte, standardised by the IEC.
- Mbps
- Megabits per second, a measure of data transfer speed. Divide by 8 to get megabytes (MB) per second.
- Petabyte (PB)
- One thousand terabytes in decimal units, or 1,000,000,000,000,000 bytes. Common in data centres and cloud storage.
Frequently asked questions
How many MB are in a GB?
In decimal (SI) units there are 1000 MB in 1 GB, which is the figure most people and storage makers use. In binary (IEC) units, 1 GiB equals 1024 MiB.
How do I convert bytes to KB?
Divide the number of bytes by 1000 for decimal KB, so 500,000 bytes is 500 KB. If you need the binary kibibyte (KiB) your operating system may use, divide by 1024 instead.
How many KB are in an MB?
In decimal units 1 MB = 1000 KB, which is 1,000,000 bytes. In binary units 1 MiB = 1024 KiB, which is 1,048,576 bytes.
How many GB are in a TB?
In decimal units 1 TB = 1000 GB. In binary units 1 TiB = 1024 GiB, so a drive labelled 1 TB shows as about 931 GiB on screen.
Why does my 1 TB hard drive show as 931 GB?
The maker sells it as 1 TB = 1,000,000,000,000 bytes (decimal). Your operating system divides by 1024 three times and still labels it GB, giving about 931 GiB. No space is lost, it is just a different counting system.
What is the difference between a bit and a byte?
A bit is a single 0 or 1, the smallest unit of data. A byte is 8 bits. File sizes are quoted in bytes (KB, MB, GB) while connection speeds are usually quoted in bits (Mbps).
What is the difference between KB and KiB?
KB (kilobyte) in the SI system is 1000 bytes. KiB (kibibyte) in the IEC system is 1024 bytes. The same logic applies to MB versus MiB and GB versus GiB.
How do I convert Mbps to MB per second?
Divide the megabit figure by 8, because there are 8 bits in a byte. So 100 Mbps is at most 12.5 MB per second, and 1 Gbps is about 125 MB per second before overhead.
How much can 1 GB actually hold?
Roughly, 1 GB stores about 250 average songs, about 500 typical photos, or a few hundred pages of documents. Video is far heavier, so 1 GB is only a few minutes of high-quality footage.
What comes after a terabyte?
After the terabyte (TB) comes the petabyte (PB), then the exabyte (EB), zettabyte (ZB) and yottabyte (YB). Each step is 1000 times larger in decimal units, or 1024 times in binary units.