- Home
- Unit converters
- Data storage converter
Data storage converter
Data storage is file sizes, storage space and memory. Convert between 9 units — pick any two below.
KB, MB and GB here are decimal (SI): 1 KB = 1,000 bytes. Windows and many upload forms count 1 KB as 1,024 bytes and still write KB — that unit is properly called a kibibyte (KiB), and 1 MiB = 1,048,576 bytes. When a form's limit seems off by a few percent, that difference is usually why.
1 bit = 0.125 B
Units of data storage9
| Unit | In bytes | What it is |
|---|---|---|
| bits (bit) | 0.125 | The smallest unit of digital information, a 0 or a 1. Network speeds are quoted in bits per second, so divide by 8 for bytes. |
| bytes (B) | 1 | 8 bits — enough to store one character of plain English text. File sizes are counted in bytes. |
| kilobytes (KB) | 1,000 | 1,000 bytes in the SI sense. Short text files, small icons and upload limits for photos and signatures are measured in KB. |
| megabytes (MB) | 1,000,000 | 1,000,000 bytes — the usual unit for photos, songs, PDFs and email attachment limits. |
| gigabytes (GB) | 1,000,000,000 | 1,000,000,000 bytes. Phone storage, RAM, mobile data plans and films are measured in GB. |
| terabytes (TB) | 1,000,000,000,000 | 1,000,000,000,000 bytes — the size of hard drives, SSDs and large cloud storage plans. |
| kibibytes (KiB) | 1,024 | 1,024 bytes. This is what Windows and many upload forms mean when they write KB. |
| mebibytes (MiB) | 1,048,576 | 1,048,576 bytes (1,024 KiB) — what Windows shows as MB. |
| gibibytes (GiB) | 1,073,741,824 | 1,073,741,824 bytes (1,024 MiB) — what Windows shows as GB, so a 1 TB drive appears as about 931 GB. |
bit to B table
| bits | bytes |
|---|---|
| 1 bit | 0.125 B |
| 2 bit | 0.25 B |
| 5 bit | 0.625 B |
| 10 bit | 1.25 B |
| 50 bit | 6.25 B |
| 100 bit | 12.5 B |
| 500 bit | 62.5 B |
| 1,000 bit | 125 B |
B to bit table
| bytes | bits |
|---|---|
| 1 B | 8 bit |
| 2 B | 16 bit |
| 5 B | 40 bit |
| 10 B | 80 bit |
| 50 B | 400 bit |
| 100 B | 800 bit |
| 500 B | 4,000 bit |
| 1,000 B | 8,000 bit |
Questions
Why does my 1 TB drive show about 931 GB?
The drive maker counts 1 TB as 1,000,000,000,000 bytes, while Windows divides by 1,024 three times and labels the result GB. 10¹² bytes is 931.3 GiB — the same space, counted two ways.
How do I convert between data storage units?
Every unit here is defined as an exact multiple of the byte. To convert, multiply by the first unit's value in bytes, then divide by the second's — or type the value above and pick the two units.
What is the base unit of data storage here?
The byte (B). 8 bits — enough to store one character of plain English text. File sizes are counted in bytes.
How accurate are the results?
The factors are the official definitions (SI and international agreements), so conversions are exact apart from rounding: results show up to 10 significant digits, and very large or small values switch to scientific notation.
Which data storage units can I convert?
9 units: bits (bit), bytes (B), kilobytes (KB), megabytes (MB), gigabytes (GB), terabytes (TB), kibibytes (KiB), mebibytes (MiB), gibibytes (GiB). Every pair has its own page with a table and a worked example.