What is Digital Data?
Digital data is any information stored as 0s and 1s. A photo, a song, a spreadsheet, and a text message all end up as long runs of the same two digits, because a computer's circuits only have to tell two states apart: on and off.
A longer video has more of those digits than a short one. Storage units are how we count them.
What is a Bit?
A bit, short for binary digit, is a single 0 or 1. On its own it can only answer a yes-or-no question. Two bits give four combinations (00, 01, 10, and 11), and every extra bit doubles the count.
You mostly meet bits when speed is involved. A 50 Mbps connection moves 50 million of them every second. The symbol is a lowercase b.
What is a Nibble?
A nibble is four bits, half a byte. Four bits make 16 combinations, exactly enough for one hexadecimal digit, and that is the main reason it still has a name. The nibble 1111, for example, is F in hexadecimal. You can try others in the Base Converter.
What is a Byte?
A byte is eight bits. That gives 256 combinations, enough to count from 0 to 255. In plain English text each letter takes one byte, so the word 'data' takes four. Other characters can need more: in UTF-8, the encoding most websites use, é takes two bytes and most emoji take four or more.
File sizes and storage capacities are counted in bytes, and the symbol is a capital B. A byte is eight bits in both the decimal and the binary system.
How is Digital Data Measured?
Bytes add up fast, so we put prefixes such as kilo, mega, and giga in front of them. The trouble is that two sets of prefixes are in use. One goes up in steps of 1,000 and the other in steps of 1,024. Which one you are looking at usually depends on where you see it:
| Family | Symbols | Where You See It |
|---|---|---|
| Bits | b, kb, Mb, Gb | Broadband plans, Wi-Fi and Ethernet speeds, video bitrates |
| Decimal bytes | kB, MB, GB, TB | Hard drives, SSDs, USB sticks, memory cards, most mobile data plans, macOS |
| Binary bytes | KiB, MiB, GiB, TiB | RAM, many Linux tools, and Windows, which writes them as KB, MB, GB, and TB |
| Data rates | Mbps, MB/s | Speed tests use bits per second; download windows usually show bytes per second |
How to Use the Data Storage Converter
The Syntax Toolbox Data Storage Converter handles 13 units, from bits to petabytes.
- Pick the unit you have under 'From:'. It starts on KiloBytes.
- Pick the unit you want under 'To:'. The arrow button between the two lists swaps them.
- Type your value. Both results update as you type, with binary on top and decimal below it.
- Use the copy button next to a result if you need it somewhere else.
You will not find KiB, MiB, or GiB in the lists. The binary result is the answer in those units, labeled KB, MB, or GB the way Windows does it. If you convert 500 MB to GB, for example, you get 0.4883 GB in binary (that is, 500 MiB in GiB) and 0.5 GB in decimal.
Common Data Storage Conversions
These are some everyday conversions. The binary column uses the exact binary symbols.
| Conversion | Binary Result (base 1,024) | Decimal Result (base 1,000) |
|---|---|---|
| 1 KB to bytes | 1,024 bytes | 1,000 bytes |
| 1 MB to KB | 1,024 KiB | 1,000 kB |
| 1 MB to bytes | 1,048,576 bytes | 1,000,000 bytes |
| 1 GB to MB | 1,024 MiB | 1,000 MB |
| 1 GB to KB | 1,048,576 KiB | 1,000,000 kB |
| 500 MB to GB | 0.4883 GiB | 0.5 GB |
| 1 TB to GB | 1,024 GiB | 1,000 GB |
| 1 PB to TB | 1,024 TiB | 1,000 TB |
| 1 Gb to MB | 128 MiB | 125 MB |
Data Storage Conversion Formulas
To reach a bigger unit, divide. To reach a smaller one, multiply. Do it once for each step between the two units. KB to GB is two steps, so divide by 1,000 twice in decimal, or by 1,024 twice in binary.
How to Convert MB to GB
This is one step up, so divide once. To go from GB to MB, multiply instead.
GB = MB ÷ 1,000
GiB = MiB ÷ 1,024
For a 750 MB download, or 750 MiB if the size comes from Windows:
750 MB ÷ 1,000 = 0.75 GB
750 MiB ÷ 1,024 = 0.7324 GiB
How to Convert GB to TB
The same rule applies one level higher.
TB = GB ÷ 1,000
TiB = GiB ÷ 1,024
With 6,400 of either:
6,400 GB ÷ 1,000 = 6.4 TB
6,400 GiB ÷ 1,024 = 6.25 TiB
How to Convert Megabits to Megabytes
Eight bits make a byte, so divide by 8. Mega means the same thing on both sides, so it does not matter whether you count in 1,000s or 1,024s.
MB = Mb ÷ 8
300 Mb ÷ 8 = 37.5 MB
When the prefix changes too, do both steps. In decimal, 1 Gb is 1,000 Mb, and 1,000 ÷ 8 is 125 MB.
How to Convert GB to GiB
Here you cross from one system to the other, so go through bytes. Multiply by the bytes in a GB, then divide by the bytes in a GiB.
GiB = GB × 1,000,000,000 ÷ 1,073,741,824
256 GB × 1,000,000,000 ÷ 1,073,741,824 = 238.42 GiB
To go back from GiB to GB, multiply by 1,073,741,824 and divide by 1,000,000,000. In the converter this takes two steps, shown under Hard Drives and SSDs.
Decimal vs. Binary Storage Units
The decimal system is the one used for meters and grams: kilo means 1,000, mega means a million, and giga means a billion. Those are the official SI meanings, and drive makers and network equipment follow them.
The binary system counts in powers of two, so each step is 1,024. Its proper names are kibibyte, mebibyte, gibibyte, and so on, where the 'bi' is short for binary. Hardly anyone says them out loud. Windows measures in binary but prints KB, MB, and GB, so the same two letters can stand for two different amounts.
Decimal and Binary Unit Chart
| Decimal Unit | Bytes | Binary Unit | Bytes |
|---|---|---|---|
| Kilobyte (kB) | 1,000 | Kibibyte (KiB) | 1,024 |
| Megabyte (MB) | 1,000,000 | Mebibyte (MiB) | 1,048,576 |
| Gigabyte (GB) | 1,000,000,000 | Gibibyte (GiB) | 1,073,741,824 |
| Terabyte (TB) | 1,000,000,000,000 | Tebibyte (TiB) | 1,099,511,627,776 |
| Petabyte (PB) | 1,000,000,000,000,000 | Pebibyte (PiB) | 1,125,899,906,842,624 |
Percent Difference Between Binary and Decimal
A kibibyte is only 2.4% larger than a kilobyte, but that 2.4% is added again at every step. By the time you reach terabytes, the binary unit is 10% larger.
| Binary Unit | In Decimal Units | Binary is Larger By |
|---|---|---|
| 1 KiB | 1.024 kB | 2.4% |
| 1 MiB | 1.0486 MB | 4.9% |
| 1 GiB | 1.0737 GB | 7.4% |
| 1 TiB | 1.0995 TB | 10.0% |
| 1 PiB | 1.1259 PB | 12.6% |
You can check any row with the Percentage Calculator. The percentage change from 1,000,000,000 to 1,073,741,824 is 7.37%.
Why 1,024 Instead of 1,000?
Memory chips find each location by an address made of bits. With 10 address bits a chip can point to 2¹⁰ locations, and 2¹⁰ is 1,024. Add one more bit and you get 2,048. No number of bits gives exactly 1,000, so memory naturally comes in sizes like 1,024 and 4,096.
Since 1,024 is close to 1,000, engineers borrowed the word kilo for it. Drives have no such limit, and their makers have long counted capacity in plain decimal.
How the Confusion Started
The word byte is older than the eight-bit byte. Werner Buchholz coined it in 1956, while IBM was designing its Stretch computer, for a group of one to six bits. The y is there so that nobody would misread it as bit. The eight-bit version became the norm after IBM's System/360 in the 1960s.
While computers had a few kilobytes of memory, 2.4% did not bother anyone. As capacities grew, the difference did too. In December 1998 the International Electrotechnical Commission (IEC) approved separate names for the binary units: kibi, mebi, gibi, and the rest.
That did not settle it. A lawsuit filed in 2005 claimed that an 80 GB Western Digital drive really held 74.4 GB. The company settled in 2006 without admitting wrongdoing, offered buyers free backup software, and agreed to explain usable capacity on its packaging. In 2009 Apple switched Mac OS X to decimal storage figures. Windows still counts in binary.
Why Two Results? Binary and Decimal Side by Side
A label that says GB does not tell you which system it means. So the converter works out both and lets you take the one that fits:
- Binary result (base-2): use it for RAM and for sizes shown by Windows.
- Decimal result (base-10): use it for drive and memory card labels, internet speeds, most mobile data plans, and sizes shown by macOS.
Each result keeps to one system from start to finish. Converting 1 TB to GB gives 1,024 in binary and 1,000 in decimal, and never 931. For that, see Hard Drives and SSDs.
Quick Conversion Reference Table
This is how many binary units one decimal unit makes. The percentages are a little lower than in the percent difference table because here the larger binary unit is the one you compare against.
| Decimal Unit | Binary Equivalent | Difference |
|---|---|---|
| 1 kB (1,000 B) | 0.9766 KiB | ~2.3% smaller |
| 1 MB (1,000,000 B) | 0.9537 MiB | ~4.6% smaller |
| 1 GB (10⁹ B) | 0.9313 GiB | ~6.9% smaller |
| 1 TB (10¹² B) | 0.9095 TiB | ~9.1% smaller |
| 1 PB (10¹⁵ B) | 0.8882 PiB | ~11.2% smaller |
How Big is a KB, MB, GB, TB, or PB?
Exact byte counts are in the unit chart. For a rough feel, this is what one of each can hold:
- Kilobyte (KB): About a third of a page of plain text. Small icons, short emails, and settings files are measured in kilobytes.
- Megabyte (MB): About one minute of MP3 music at 128 kbps. Photos, songs, PDFs, and phone apps usually run from a few to a few hundred megabytes.
- Gigabyte (GB): Around 17 minutes of 1080p phone video. Movies, games, RAM, and mobile data plans are counted in gigabytes.
- Terabyte (TB): A quarter of a million 4 MB photos. External drives and paid cloud plans are often 1 TB or more.
- Petabyte (PB): A thousand 1 TB drives. You will hardly ever see one outside a data center or a research archive.
Typical File Sizes
The audio sizes come straight from the bitrate. Photos and video vary with the camera, the settings, and the scene, so treat those as estimates.
| File | Size |
|---|---|
| Plain text, one full page (3,000 characters) | 3 KB |
| Phone photo, 12 megapixels, JPEG | 3 to 4 MB |
| RAW photo, 24 megapixels | 20 to 50 MB |
| MP3 song, 4 minutes at 128 kbps | 3.8 MB |
| MP3 song, 4 minutes at 320 kbps | 9.6 MB |
| Same 4 minutes as uncompressed CD audio | 42 MB |
| 1080p phone video at 30 fps, 1 minute (HEVC) | About 60 MB |
| 4K phone video at 30 fps, 1 minute (HEVC) | About 170 MB |
| DVD, single layer | 4.7 GB |
| Blu-ray disc, single layer | 25 GB |
Discs do not agree either. A DVD's 4.7 GB is decimal, but a '700 MB' CD-R holds about 737 million bytes, because its label counts in binary.
What Fits in 128 GB and 1 TB?
These use the full decimal capacity. On a phone or laptop, expect less once the system and apps have taken their share.
| Content | 128 GB | 1 TB |
|---|---|---|
| Photos at 4 MB | 32,000 | 250,000 |
| RAW photos at 50 MB | 2,560 | 20,000 |
| Songs at 9.6 MB | 13,333 | 104,166 |
| 1080p video at 60 MB a minute | 35 hours | 277 hours |
| 4K video at 170 MB a minute | 12 hours | 98 hours |
Real-World Applications
Hard Drives and SSDs: Why Your Drive Shows Less Space
Plug a new 1 TB drive into a Windows PC and it shows up as 931 GB. The drive does hold the trillion bytes on the label. Windows divides that trillion by 1,024 three times and calls the answer GB.
1,000,000,000,000 ÷ 1,024³ = 931.32 GiB, shown as 931 GB
On a Mac the same drive shows about 1 TB, because macOS counts the way the label does. Here are the usual sizes as Windows lists them, before formatting:
| Advertised | Binary Capacity | Shown in Windows |
|---|---|---|
| 128 GB | 119.21 GiB | 119 GB |
| 256 GB | 238.42 GiB | 238 GB |
| 500 GB | 465.66 GiB | 465 GB |
| 512 GB | 476.84 GiB | 476 GB |
| 1 TB | 931.32 GiB | 931 GB |
| 2 TB | 1.819 TiB | 1.81 TB |
| 4 TB | 3.638 TiB | 3.63 TB |
| 8 TB | 7.276 TiB | 7.27 TB |
Windows cuts off the digits it does not show, so 465.66 becomes 465 and not 466. To work out a size that is not listed:
- Convert the advertised size to Bytes and read the decimal result. 1 TB gives 1000000000000 B.
- Set 'From:' to Bytes and 'To:' to GigaBytes, enter that number, and read the binary result. It shows 931.3226 GB.
RAM and Operating Systems
RAM is always sized in binary. An 8 GB module holds 8 × 1,073,741,824 = 8,589,934,592 bytes, so strictly it is 8 GiB. Task Manager reports it as 8.0 GB, which matches the label because both count in binary.
For files and drives it depends on the system. Windows uses binary. macOS has used decimal since 2009, and
iPhones since iOS 11. Linux goes both ways: df -h prints binary sizes and df -H
prints decimal ones. So the same file can show a different size depending on the computer you open it on.
Internet Speed vs. File Size (Mbps vs. MB/s)
Internet plans are sold in megabits per second, but files are measured in megabytes. Divide the speed by 8 to see how many megabytes can arrive each second:
100 Mbps ÷ 8 = 12.5 MB/s
1 GB = 1,000 MB
1,000 MB ÷ 12.5 MB/s = 80 seconds
If the file is 1 GiB, it takes about 86 seconds. The converter has no per-second units, but the arithmetic is the same: convert 100 Megabits to MegaBytes and read 12.5 as MB/s.
Download Time Chart
These times assume the line runs at its full speed. Wi-Fi, busy servers, and network overhead usually make real downloads slower.
| File Size | 25 Mbps | 100 Mbps | 300 Mbps | 1 Gbps |
|---|---|---|---|---|
| 100 MB | 32 s | 8 s | 3 s | 1 s |
| 1 GB | 5 min 20 s | 1 min 20 s | 27 s | 8 s |
| 5 GB | 26 min 40 s | 6 min 40 s | 2 min 13 s | 40 s |
| 25 GB | 2 h 13 min | 33 min 20 s | 11 min 7 s | 3 min 20 s |
| 100 GB | 8 h 53 min | 2 h 13 min | 44 min 27 s | 13 min 20 s |
Cloud Storage and Streaming
Cloud plans do not all count the same way. In Microsoft's admin settings, 1 TB of OneDrive storage is entered as 1,048,576 MB, which is the binary count. Other providers may use decimal, and their help pages often leave it out. At 2 TB the two readings are nearly 200 GB apart, so leave some room if you are close to the limit.
Streaming is easier, because bitrates are always decimal. Multiply the bitrate by 3,600 seconds and divide by 8:
5 Mbps × 3,600 ÷ 8 = 2,250 MB, or 2.25 GB an hour
25 Mbps × 3,600 ÷ 8 = 11,250 MB, or 11.25 GB an hour
Common Data Storage Mistakes
- Reading Mb as MB: One letter makes an eightfold difference. A 200 Mbps plan downloads at 25 MB/s at best.
- Mixing 1,000 and 1,024 in one sum: If you turn 1 GB into 1,024 MB and then divide by a decimal 12.5 MB/s, you get 82 seconds. Decimal all the way through gives 80.
- Taking the GB in Windows as decimal: A folder that Windows lists as 50 GB is really 50 GiB, or 53.7 GB. It will not fit on a card with exactly 50 decimal gigabytes free.
- Counting on every gigabyte: A new 128 GB phone never has 128 GB free. The operating system, preinstalled apps, and the file system all take a share, and no unit conversion explains that part.
- Confusing size with size on disk: Drives hand out space in blocks, often 4 KB each. A 5 KB file needs two of them, so it takes up 8 KB. With thousands of small files the difference adds up.
Pro Tips for Avoiding Storage Confusion
- Read the small print on the box. Drive makers usually state that 1 GB means one billion bytes.
- If two sizes for the same thing differ by about 2.4%, 4.9%, 7.4%, or 10%, you are probably looking at decimal next to binary.
- Check which system your backup software uses before you buy a drive for it. A 900 GiB backup is 966 GB, so a 1 TB drive would have only about 34 GB to spare.
- For a quick download estimate, divide your Mbps by 10 instead of 8. That leaves some room for overhead.
- Convert in one go where you can. Rounding to GB first and then converting to TB throws away digits you may need.
- Write GiB when you mean GiB. In a spec or a config file, it saves someone else from guessing.
- Keep the Data Storage Converter open when you compare spec sheets.
Data Storage Formulas in Excel and Google Sheets
Say A2 holds a file size of 1,500,000,000 bytes, B2 a drive size of 256 GB, and C2 a speed of 100 Mbps. These formulas work in both programs. Results are rounded to four decimal places.
| What You Want | Formula | Result |
|---|---|---|
| Bytes to MB | =A2/1000^2 | 1500 |
| Bytes to GB | =A2/1000^3 | 1.5 |
| Bytes to MiB | =A2/1024^2 | 1430.5115 |
| Bytes to GiB | =A2/1024^3 | 1.397 |
| GB to GiB | =B2*1000^3/1024^3 | 238.4186 |
| Mbps to MB/s | =C2/8 | 12.5 |
Excel can also do it by unit name. =CONVERT(1,"Tbyte","Gibyte") turns one decimal terabyte into
931.3226 gibibytes. Unit names are case-sensitive: M is mega and Mi is mebi, but a lowercase m means milli.
Who Uses a Data Storage Converter?
- People buying storage: To check what a phone, drive, or memory card will show once it is plugged in.
- Students: To check homework on bits, bytes, and powers of two.
- Developers: To set upload limits and buffer sizes, where 10 MB and 10 MiB are not the same number of bytes.
- Cloud and system administrators: To match a quote in GB with a monitoring tool that reports GiB.
- Anyone planning a backup: To see whether the data will fit on the target drive.
- Photographers and video editors: To work out how many cards a shoot needs.