In the Convert from field, enter a value and pick its unit; in the Convert to field, pick the unit of the result. The conversion appears as you type. The Unit standard toggle sets how the tool counts: binary (1024), the way Windows does, or decimal (1000), the way drive makers state capacity.

Data sizes rarely reach you in one unit. A camera saves photos in megabytes, a carrier bills your plan in gigabytes, a server script expects a limit in bytes, and a drive maker states capacity in terabytes. Before you can compare those values, you have to bring them to a common unit.
This converter covers every data-size unit, from bytes to petabytes, and every combination of them. You pick the source and target unit with buttons below the fields, and the result appears while you type the value.
Windows and RAM count in binary, that is by 1024, while drive makers and macOS count in decimal, by 1000. The same capacity therefore has two correct values, and that is where most confusion about data sizes comes from. The Unit standard toggle below the fields converts in both standards and covers both fields at once.
There is one rule: in the binary standard every next unit is 1024 times larger than the previous one, and in the decimal standard 1000 times. When you convert to a smaller unit you multiply, and to a larger one you divide.
The multiplier depends on how many intermediate units sit between the source and target unit. Neighbouring units, such as GB and MB, convert by 1024. Between GB and KB there is also MB, so the multiplier grows to 1024 × 1024, which is 1,048,576. Between TB and KB there are two intermediate units and the multiplier is 1,073,741,824. In the decimal standard the matching multipliers are 1000, 1,000,000 and 1,000,000,000.
Example: 5 GB converted to kilobytes in binary is 5 × 1,048,576, which is 5,242,880 KB. The same value counted in decimal is 5,000,000 KB. The difference reaches almost 5 percent and grows with larger units, so the choice of standard matters.
In Excel and Google Sheets you put the same multipliers straight into a formula. Gigabytes to megabytes is =A1*1024, megabytes to gigabytes =A1/1024, and gigabytes to kilobytes =A1*1048576, where A1 holds the source value. For the decimal standard, swap the multipliers for 1000 and 1000000.
The table below converts capacities from 1 GB to 2 TB into megabytes and kilobytes in the binary standard.
| Capacity | In megabytes | In kilobytes |
|---|---|---|
| 1 GB | 1,024 MB | 1,048,576 KB |
| 2 GB | 2,048 MB | 2,097,152 KB |
| 4 GB | 4,096 MB | 4,194,304 KB |
| 8 GB | 8,192 MB | 8,388,608 KB |
| 16 GB | 16,384 MB | 16,777,216 KB |
| Capacity | In megabytes | In kilobytes |
|---|---|---|
| 64 GB | 65,536 MB | 67,108,864 KB |
| 128 GB | 131,072 MB | 134,217,728 KB |
| 512 GB | 524,288 MB | 536,870,912 KB |
| 1 TB | 1,048,576 MB | 1,073,741,824 KB |
| 2 TB | 2,097,152 MB | 2,147,483,648 KB |
Reading example: 8 GB is 8,192 MB, which is 8,388,608 KB. You can get the decimal-standard values by switching the standard in the converter above.
The binary values have their own formal names introduced by the IEC: kibibyte (KiB), mebibyte (MiB), gibibyte (GiB), tebibyte (TiB) and pebibyte (PiB). Operating systems show them under the symbols KB, MB and GB, though, so the table below lists both ways of counting for each unit.
| Unit | Binary (1024) | Decimal (1000) |
|---|---|---|
| 1 KB | 1,024 B | 1,000 B |
| 1 MB | 1,048,576 B | 1,000,000 B |
| 1 GB | 1,073,741,824 B | 1,000,000,000 B |
| 1 TB | 1,099,511,627,776 B | 1,000,000,000,000 B |
| 1 PB | 1,125,899,906,842,624 B | 1,000,000,000,000,000 B |
The gap between the standards grows with the unit: from 2.4 percent at the kilobyte to 12.6 percent at the petabyte. That is exactly why a drive labelled 1 TB shows about 931 GB in Windows.
The table below puts every data-size unit in order and shows what each of them usually describes in practice.
| Unit | Relationship | Typical example |
|---|---|---|
| Byte (B) | base unit | one character of text |
| Kilobyte (KB) | 1,024 B | a short email or icon |
| Megabyte (MB) | 1,024 KB | a photo or an MP3 song |
| Gigabyte (GB) | 1,024 MB | a movie or a RAM stick |
| Terabyte (TB) | 1,024 GB | a hard drive |
| Petabyte (PB) | 1,024 TB | a large data centre |
Order from smallest to largest: byte, kilobyte, megabyte, gigabyte, terabyte and petabyte. Each next unit is 1024 times larger than the previous one.
Rough sizes help you place a conversion result in everyday context. Real values depend on quality and format, which is why we give ranges rather than single numbers.
| File or drive | Typical size |
|---|---|
| Email without attachments | under 100 KB |
| Smartphone photo | 2 to 5 MB |
| Music track in MP3 | 3 to 10 MB |
| An hour of HD video | 1 to 3 GB |
| A modern PC or console game | 50 to 150 GB |
| Laptop SSD | 256 GB to 2 TB |
If you want to check how many such files fit on your drive, convert its capacity to megabytes in the converter above and divide it by the file size.
Converting data units comes back in a few typical situations.
From smallest to largest: byte (B), kilobyte (KB), megabyte (MB), gigabyte (GB), terabyte (TB) and petabyte (PB). In the binary standard each next unit is 1024 times larger than the previous one, and in decimal 1000 times.
The gigabyte is the largest of the three. 1 GB is 1024 MB, and each megabyte is 1024 KB, so one gigabyte holds over a million kilobytes.
In binary 1 MB is 1024 KB and 1 GB is 1024 MB. In the decimal standard it is 1000 KB and 1000 MB. The same multiplier applies to larger units: 1 TB is 1024 GB or 1000 GB, depending on the standard.
In the binary standard 1 GB is 1,073,741,824 bytes and 1 TB is 1,099,511,627,776 bytes. In decimal it is exactly 1,000,000,000 and 1,000,000,000,000 bytes.
Only in the decimal standard. In binary a full megabyte has 1024 KB, so 1000 KB is about 0.98 MB. You can compute both variants in this converter after switching the standard.
Computers count in the binary numeral system, and 1024 is two to the tenth power, the round number of that system closest to a thousand. The SI prefix kilo, however, means exactly 1000, and storage makers stick to that meaning. Both approaches remain in use to this day.
Kibibyte (KiB), mebibyte (MiB) and gibibyte (GiB) are the formal names of the binary values, introduced by the IEC to tell them apart from the decimal KB, MB and GB. 1 KiB is always 1024 bytes, while 1 kB in the SI sense is 1000 bytes. Day to day, most programs and people write KB while meaning the binary value, exactly like Windows does.
Directly after the terabyte comes the petabyte (PB), followed by the exabyte (EB), zettabyte (ZB) and yottabyte (YB). In everyday use you mostly meet units up to the terabyte. Petabytes appear around data centres, and the larger units in statistics of global internet traffic.
Match the multiplier to the pair of units: =A1*1024 turns gigabytes into megabytes, =A1/1024 megabytes into gigabytes, and =A1*1048576 gigabytes into kilobytes. In the decimal standard use 1000 instead of 1024. The same formulas work in Google Sheets.
The maker describes the drive in decimal, so 1 TB means 1,000,000,000,000 bytes. Windows divides that number in binary, by 1,073,741,824, and shows about 931 GB. The capacity is intact; only the standard it was counted in changes.
With photos of about 3 MB each, one gigabyte holds a little over 300 files, and with MP3 tracks of 5 MB about 200 songs. An hour of HD video can take up the whole gigabyte.
If you compare the result with what Windows shows, or with RAM capacity, pick Binary (1024). If you refer to a drive label, a carrier's offer or a value from macOS, switch to Decimal (1000). When in doubt, compute both variants and check which value matches your source.

If you have spotted an error in a table or have an idea to improve the converter, write to us. We reply to every message.