Bytes Converter for SI and IEC Units – Free

This bytes converter takes one data size and prints it in nine units at once, from plain bytes to terabytes and tebibytes, so you can compare decimal and binary values directly.

How to use the Bytes converter tool

  1. Enter the amount in Size. Decimals such as 1.5 are fine, but the number cannot be negative.
  2. Choose the unit of that amount under Unit, from B through TB or KiB through TiB.
  3. Select Convert. Select Example to see 1048576 B converted.
  4. Read the nine lines in the Result box and select Copy to take them with you.

Decimal and binary units: why 1 GB is not 1 GiB

Two unit systems are in use for data sizes. SI prefixes are decimal: 1 kB is 1000 bytes, 1 MB is a million and so on. The binary prefixes kibi, mebi, gibi and tebi were introduced by the IEC in the late 1990s and are now part of IEC 80000-13. They step by 1024: 1 KiB is 1024 bytes and 1 GiB is 1,073,741,824 bytes.

The gap grows with each step. A kibibyte is 2.4% larger than a kilobyte, a gibibyte is about 7.4% larger than a gigabyte, and a tebibyte is about 10% larger than a terabyte. Much software still prints binary quantities with the labels KB, MB and GB, which is where most of the confusion starts.

A worked example: 500 GB on the box, 465 GiB on screen

Drive makers label capacity in decimal gigabytes. An operating system that counts in binary units, such as Windows, shows a smaller number for the same drive. Enter 500 with the unit GB to see both views. The drive holds exactly 500,000,000,000 bytes, which is 465.66 GiB. Nothing is missing; the two figures use different units.

Size: 500   Unit: GB

500,000,000,000 B
500,000,000 kB
500,000 MB
500 GB
0.5 TB
488,281,250 KiB
476,837.158203 MiB
465.661287308 GiB
0.454747350886 TiB

Units and input rules of the bytes converter

The tool multiplies your number by the factor of the chosen unit to get bytes, then divides that byte count by each factor in turn. Each line is rounded to 12 significant digits and uses commas as thousands separators. That covers any everyday size, but a byte count with more digits is rounded in the display: 123456789012345 B prints as 123,456,789,012,000 B.

  • Decimal units: B, kB (1000), MB (1,000,000), GB (1,000,000,000) and TB (1,000,000,000,000).
  • Binary units: KiB (1024), MiB (1,048,576), GiB (1,073,741,824) and TiB (1,099,511,627,776).
  • Size must be a finite number of zero or more. An empty field returns Enter a finite size.
  • Fractions are allowed, so 1.5 GiB converts to 1,610,612,736 B.
  • Bits, petabytes and larger units are not included.

Where the difference matters in real work

Cloud providers bill storage and transfer in a mix of GB and GiB, so check which one a price sheet means before you estimate cost. Kubernetes resource limits treat 512M and 512Mi as different amounts of memory.

On Linux, df -h prints powers of 1024 and df -H prints powers of 1000. Converting to plain bytes first removes the ambiguity.

Frequently asked questions

How many bytes are in a megabyte?

A megabyte (MB) is 1,000,000 bytes under the SI definition this tool uses. The binary unit of similar size is the mebibyte (MiB), which is 1,048,576 bytes.

Is a kilobyte 1000 or 1024 bytes?

In SI and in this converter, 1 kB is 1000 bytes. The 1024-byte unit is the kibibyte, written KiB. Older documentation and some operating systems call 1024 bytes a kilobyte or KB, so the answer depends on what you are reading.

Why does my 1 TB drive show about 931 GB?

The label uses decimal terabytes: 1,000,000,000,000 bytes. The operating system divides by 1024 three times and reports 931.32, which is the size in GiB even though it is labeled GB. Enter 1 TB here and read the GiB line to see the same figure.

How do I convert GiB to GB?

Enter the GiB amount in Size, choose GiB under Unit and select Convert, then read the GB line. The factor is 1.073741824, so 16 GiB of memory equals 17.179869184 GB. Going the other way, 16 GB is about 14.90 GiB.

Can I convert between bits and bytes here?

No. Every unit in the list is a byte unit. To go from megabits to megabytes, divide by 8 yourself: a 100 Mbit/s link moves at most 12.5 MB per second, which this tool shows as about 11.92 MiB.

Related tools