A data size converter changes an amount of digital storage from one unit to another, such as gigabytes to megabytes, bytes to kilobytes or terabytes to gigabytes. This data size converter covers bits and bytes, the decimal units kilobyte to petabyte that storage makers use, and the binary units kibibyte to tebibyte that count in steps of 1,024. Choose any two units and it shows the result and the same amount in all the others.
How to use the data size converter
- Enter the data size. Decimals such as 2.5 are fine.
- Choose the units. From starts at gigabytes and To at megabytes. Pick any pair from the list of 11 units, or press Swap units to reverse the conversion.
- Read the result. The converted value appears straight away, with the formula and the same data size in every other unit below it.
Data Size Converter formula
Megabytes = gigabytes × 1,000
Every unit is stored as a number of bytes. To convert, multiply by the number of bytes in the From unit, then divide by the number of bytes in the To unit. In the decimal units each step is a factor of 1,000; in the binary units each step is 1,024.
Worked examples
One gigabyte is 1,000 MB, and 5 gigabytes is 5,000 MB. A few other pairs:
- 5 gigabytes is 5,000 megabytes.
- 2 terabytes is 2,000 gigabytes.
- 3.5 megabytes is 3,500 kilobytes.
- 1 gibibytes is 1,024 mebibytes.
- 100 bytes is 800 bits.
Gigabytes to megabytes chart
Common values in gigabytes with their value in megabytes.
| Gigabytes (GB) | Megabytes (MB) |
|---|---|
| 1 GB | 1,000 MB |
| 2 GB | 2,000 MB |
| 5 GB | 5,000 MB |
| 10 GB | 10,000 MB |
| 16 GB | 16,000 MB |
| 32 GB | 32,000 MB |
| 64 GB | 64,000 MB |
| 128 GB | 128,000 MB |
| 256 GB | 256,000 MB |
| 512 GB | 512,000 MB |
| 1,000 GB | 1,000,000 MB |
All 11 units at a glance
Each unit with its exact size in bytes, the unit every conversion here passes through.
| Unit | Symbol | Size in bytes |
|---|---|---|
| Bits | bit | 0.125 bytes |
| Bytes | B | 1 byte |
| Kilobytes | kB | 1,000 bytes |
| Megabytes | MB | 1,000,000 bytes |
| Gigabytes | GB | 1,000,000,000 bytes |
| Terabytes | TB | 1 × 10¹² bytes |
| Petabytes | PB | 1 × 10¹⁵ bytes |
| Kibibytes | KiB | 1,024 bytes |
| Mebibytes | MiB | 1,048,576 bytes |
| Gibibytes | GiB | 1,073,741,824 bytes |
| Tebibytes | TiB | 1.1 × 10¹² bytes |
The data size units explained
- Bit (bit). The smallest unit of digital information, a single 0 or 1.
- Byte (B). Eight bits, enough to store one character of text.
- Kilobyte (kB). The decimal kilobyte of 1,000 bytes, used by storage makers and operating systems such as macOS.
- Megabyte (MB). The decimal megabyte, used for photos, songs and documents.
- Gigabyte (GB). The decimal gigabyte, used for phone storage, downloads and data plans.
- Terabyte (TB). The decimal terabyte, used for hard drives and backups.
- Petabyte (PB). The decimal petabyte, used for data centers and large archives.
- Kibibyte (KiB). The binary kibibyte of 1,024 bytes.
- Mebibyte (MiB). The binary mebibyte, 1,024 kibibytes, used for memory and file sizes.
- Gibibyte (GiB). The binary gibibyte, 1,024 mebibytes, used for RAM and some operating systems.
- Tebibyte (TiB). The binary tebibyte, 1,024 gibibytes, used for storage systems.
Quick conversion guide
These are the factors for the most common pairs. Each one is worked out from the exact size of the units, so you can use them in a spreadsheet or on a calculator.
- Gigabytes to megabytes: multiply by 1,000. To go back, multiply megabytes by 0.001.
- Terabytes to gigabytes: multiply by 1,000. To go back, multiply gigabytes by 0.001.
- Megabytes to kilobytes: multiply by 1,000. To go back, multiply kilobytes by 0.001.
- Gibibytes to mebibytes: multiply by 1,024. To go back, multiply mebibytes by 0.000976562.
- Bytes to bits: multiply by 8. To go back, multiply bits by 0.125.
- Gigabytes to gibibytes: multiply by 0.931323. To go back, multiply gibibytes by 1.07374.
- Kibibytes to bytes: multiply by 1,024. To go back, multiply bytes by 0.000976562.
Decimal and binary units
Storage makers count in steps of 1,000, so a kilobyte is 1,000 bytes and a gigabyte is 1,000 megabytes. Computers address memory in powers of two, so a kibibyte is 1,024 bytes and a gibibyte is 1,024 mebibytes. The names kibibyte, mebibyte and gibibyte were introduced to tell the two apart, but many programs still use kilobyte and gigabyte for both.
Bits and bytes
A byte is eight bits. File sizes are given in bytes, but network speeds are often given in bits, so a connection that moves a hundred megabits each second moves 12.5 megabytes each second. A capital B means bytes and a lower-case b means bits.
How big is a megabyte?
A short text message is a few hundred bytes. A phone photo is a few megabytes, a song is a few megabytes, and a high-definition movie is a few gigabytes. Large hard drives hold terabytes, and the biggest data centers store petabytes.
Common mistakes
A common mistake is to expect a one terabyte drive to show one terabyte in an operating system that counts in binary units, where it appears as a smaller number of gibibytes. Another is to mix up bits and bytes, which makes a download speed look eight times slower or faster than it is.
Tips for accurate results
Operating systems and storage makers do not always count the same way, which is why a drive sold as 1 terabyte shows up as a smaller number of gibibytes. Choose the decimal or the binary unit on purpose, and watch for a capital B (bytes) against a lower-case b (bits). For a different measurement, try the data rate converter and the video file size calculator.
Popular data size conversions
These are the data size conversions that people look up most often, with the factor for each direction. All of them work in the converter above: choose the two units, or press Swap units to reverse a pair.
| Conversion | Factor | Reverse conversion | Reverse factor |
|---|---|---|---|
| Megabyte to Gigabyte | × 0.001 | Gigabytes to megabytes | × 1,000 |
| Byte to Bit | × 8 | Bits to bytes | × 0.125 |
| Byte to Gigabyte | × 1 × 10⁻⁹ | Gigabytes to bytes | × 1,000,000,000 |
| Byte to Kibibyte | × 0.0009765625 | Kibibytes to bytes | × 1,024 |
| Byte to Kilobyte | × 0.001 | Kilobytes to bytes | × 1,000 |
| Byte to Megabyte | × 1 × 10⁻⁶ | Megabytes to bytes | × 1,000,000 |
| Byte to Petabyte | × 1 × 10⁻¹⁵ | Petabytes to bytes | × 1 × 10¹⁵ |
| Byte to Terabyte | × 1 × 10⁻¹² | Terabytes to bytes | × 1 × 10¹² |
| Gigabyte to Kibibyte | × 976,562.5 | Kibibytes to gigabytes | × 1.024 × 10⁻⁶ |
| Kilobyte to Bit | × 8,000 | Bits to kilobytes | × 0.000125 |
| Kilobyte to Gigabyte | × 1 × 10⁻⁶ | Gigabytes to kilobytes | × 1,000,000 |
| Kilobyte to Kibibyte | × 0.9765625 | Kibibytes to kilobytes | × 1.024 |
| Kilobyte to Petabyte | × 1 × 10⁻¹² | Petabytes to kilobytes | × 1 × 10¹² |
| Kilobyte to Terabyte | × 1 × 10⁻⁹ | Terabytes to kilobytes | × 1,000,000,000 |
| Megabyte to Kibibyte | × 976.5625 | Kibibytes to megabytes | × 0.001024 |
| Megabyte to Kilobyte | × 1,000 | Kilobytes to megabytes | × 0.001 |
| Megabyte to Terabyte | × 1 × 10⁻⁶ | Terabytes to megabytes | × 1,000,000 |
| Terabyte to Kibibyte | × 976,562,500 | Kibibytes to terabytes | × 1.024 × 10⁻⁹ |
More about the data size units
- Kilobyte (kB). A kilobyte here is 1,000 bytes, the decimal (SI) definition used by most storage makers. Some software counts 1,024 bytes instead, and calls that a kibibyte.
- Megabyte (MB). A megabyte here is 1,000,000 bytes, the decimal (SI) definition. Some software counts 1,048,576 bytes instead, which is a mebibyte.
- Gigabyte (GB). A gigabyte here is 1,000,000,000 bytes, the decimal (SI) definition storage makers use.
- Terabyte (TB). A terabyte here is 1,000,000,000,000 bytes, or 1,000 gigabytes, the decimal (SI) definition used on hard drive boxes.
- Kibibyte (KiB). A kibibyte is exactly 1,024 bytes. It’s the binary unit that some operating systems show as “KB”.
What next
Use this often? Add Data Size to your Home screen.
Frequently asked questions
How do I use the data size converter?
Type the data size, choose the unit to convert from and the unit to convert to, and the result appears at once. For example, 5 gigabytes is 5,000 MB.
How many megabytes are in one gigabyte?
One gigabyte is 1,000 MB, and one megabyte is 0.001 GB.
Which units does this data size converter support?
It supports 11 units: bits, bytes, kilobytes, megabytes, gigabytes, terabytes, petabytes, kibibytes, mebibytes, gibibytes and tebibytes.
Why is a gigabyte not the same as a gibibyte?
A gigabyte is 1,000 megabytes, or a billion bytes. A gibibyte is 1,024 mebibytes, or 1,073,741,824 bytes, so it is a little larger.
Are the conversions in the data size converter exact?
Yes. A byte is exactly eight bits, a decimal step is exactly 1,000 and a binary step is exactly 1,024. Results are rounded for display.
What are the most common data size conversions?
Among the pairs people look up most are megabytes to gigabytes (multiply by 0.001); bytes to bits (multiply by 8); bytes to gigabytes (multiply by 1 × 10⁻⁹); and bytes to kibibytes (multiply by 0.0009765625). The table of popular conversions on this page lists the rest.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.