Digital Storage Converter
- 1 x 1000000000 1000000000 byte
- 1000000000 / 1000000 1000 megabyte
This page converts a digital storage from one unit into another. Every value passes through the byte, the SI unit digital storage is held in, and digital storage stays digital storage: a unit only converts inside its own dimension.
How do you convert digital storage between bytes, KB, MB and GB?
Pick the unit you have, pick the unit you want, and type the value. The page multiplies by the factor between the two and prints the arithmetic under the result, so the answer and the working are the same object.
1 GB is 1 000 000 000 bytes and 1 GiB is 1 073 741 824 bytes. Decimal prefixes step by 1000 and binary prefixes step by 1024, which is why the two disagree.
- Choose the unit your value is in. This page opens on the gigabyte.
- Choose the unit you want it in. This page opens on the megabyte.
- Type the value. The result and the factor behind it appear together.
- Read the working. It converts into the byte first and out again, which is the same two lines you would write by hand.
Digital Storage Conversion Table
One row per unit this page offers, each measured against the byte. The last column says whether the factor is a definition or a reading of one.
| Unit | Symbol | In the SI unit | Exact? |
|---|---|---|---|
| bit | bit | 0.125 | exact |
| byte | B | 1 | exact |
| kilobyte | kB | 1000 | exact |
| megabyte | MB | 1000000 | exact |
| gigabyte | GB | 1000000000 | exact |
| terabyte | TB | 1000000000000 | exact |
| kibibyte | KiB | 1024 | exact |
| mebibyte | MiB | 1048576 | exact |
| gibibyte | GiB | 1073741824 | exact |
| tebibyte | TiB | 1099511627776 | exact |
Worked Examples
The question the bank ranked highest for this page, answered with the working.
How many megabytes is 1 GB?
- 1 x 1000000000 1000000000 byte
- 1000000000 / 1000000 1000 megabyte
1 GB = 1000 MB
Where These Factors Come From
Every number above is read from the knowledge base rather than computed for the page. These are the statements it holds for digital storage.
- One byte is 8 bits. Storage prefixes come in two families: kB, MB and GB are powers of ten, so 1 kB is 1000 B, while KiB, MiB and GiB are powers of two, so 1 KiB is 1024 B.
- A drive sold as 1 TB holds 1 000 000 000 000 bytes. An operating system that reports in tebibytes shows 0.909 TiB for the same drive: nothing is missing, the two prefixes count differently.
- This page scales a quantity of storage. Rewriting the same value in another base, such as binary or hexadecimal, is a different job with its own tools.
- How this page reports a result result in the target storage unit; decimal (kB) and binary (KiB) prefixes are listed as separate units
SI prefixes on this page
| Prefix | Symbol | Factor |
|---|---|---|
| tera | T | 10^12 |
| giga | G | 10^9 |
| mega | M | 10^6 |
| kilo | k | 10^3 |
Binary prefixes on this page
| Prefix | Symbol | Factor |
|---|---|---|
| yobi | Yi | 2^80 = 1208925819614629174706176 |
| zebi | Zi | 2^70 = 1180591620717411303424 |
| exbi | Ei | 2^60 = 1152921504606846976 |
| pebi | Pi | 2^50 = 1125899906842624 |
| tebi | Ti | 2^40 = 1099511627776 |
| gibi | Gi | 2^30 = 1073741824 |
| mebi | Mi | 2^20 = 1048576 |
| kibi | Ki | 2^10 = 1024 |
KB or KiB?
Decimal prefixes step by a thousand and binary prefixes step by a power of two, so a kilobyte and a kibibyte are different sizes. They are listed here as separate units rather than two spellings of one, which is why a drive and an operating system can disagree about the same disk.
The rule behind this factor is the same for every unit - what k, M and m multiply by.
Frequently Asked Questions
What is the difference between KB and KiB?
A kilobyte is 1000 bytes; a kibibyte is 1024 bytes.
Why does a 1 TB drive show as less than 1 TB?
A 1 TB drive holds 1 000 000 000 000 bytes. An operating system reporting in tebibytes shows 0.909 TiB for the same drive.
How many bits are in a byte?
8 bits.
How many bytes are in a gigabyte?
1 000 000 000 bytes as a decimal gigabyte; 1 073 741 824 bytes as a gibibyte.
Related Conversions
The rest of the family sits on pick another quantity to convert.