Tech

File size converter

Type a number, pick the unit, and we show the value in every unit (B, KB, MB, GB, TB, PB) at once. Switch between binary (1024) and decimal (1000) base with one click.

Instant🔒In your browserNo signup
Live

Binary vs decimal: two ways to count bytes

The same file can be described with two different systems, and both are correct. In the binary system, each step multiplies by 1024 (which is 2 to the 10th power): 1 kibibyte is 1024 bytes, 1 mebibyte is 1024 kibibytes, and so on. In the decimal system, each step multiplies by 1000: 1 kilobyte is 1000 bytes. Computing was born using powers of 2 because memory is organized that way, but the metric prefix "kilo" always meant 1000 — hence the historical confusion.

Why 1 GB is not equal to 1 GiB

The difference looks small at first but it compounds. At the KB/KiB level it is just 24 bytes, but at each level the gap multiplies. By the time you reach gigabytes, 1 GiB (1,073,741,824 bytes) is about 7.4% larger than 1 GB (1,000,000,000 bytes). At terabytes the gap is around 10%. That is why it pays to know which system each tool uses before comparing figures.

The real case: disk marketing vs what the OS reports

You buy a "1 TB" drive. The maker calculates that number in decimal: 1,000,000,000,000 bytes. But when you plug it in, Windows shows about 931 GB, because internally it divides by 1024 at each level (it shows GiB but labels them GB). You did not lose 69 GB: it is exactly the same number of bytes, measured with a different ruler. macOS, on the other hand, adopted the decimal convention back in 2009, so there a 1 TB drive does show ~1 TB.

Where each system is used

  • Binary (KiB, MiB, GiB): RAM, block sizes, most operating systems when reporting files, and developer tools.
  • Decimal (KB, MB, GB): drive and flash-storage makers, network speeds (megabits), and cloud storage plans.
  • Bandwidth: careful — it is measured in bits, not bytes. 100 Mbps is about 12.5 MB/s (divide by 8).

How to read the prefixes correctly

The IEC standardized binary prefixes in 1998 precisely to end the ambiguity: kibi (Ki), mebi (Mi), gibi (Gi), tebi (Ti), pebi (Pi). When you see the "i" in the middle (KiB, MiB), you know for sure it is base 1024. When you see plain KB or MB, it depends on context: on a drive it is almost always decimal, in your file explorer it is almost always binary. This tool lets you pick the mode and labels the units accordingly, so there is no room for doubt.

Reference: bytes per unit in each system

UnitBytes (binary)Bytes (decimal)
1 KB / KiB1,0241,000
1 MB / MiB1,048,5761,000,000
1 GB / GiB1,073,741,8241,000,000,000
1 TB / TiB1,099,511,627,7761,000,000,000,000
1 PB / PiB1,125,899,906,842,6241,000,000,000,000,000

FAQ

What is the difference between binary and decimal base?

In binary each unit multiplies by 1024 (1 KiB = 1024 B); in decimal by 1000 (1 KB = 1000 B). Operating systems usually use binary and drive makers decimal.

Why is 1 GB not equal to 1 GiB?

1 GB decimal is 1,000,000,000 bytes and 1 GiB binary is 1,073,741,824 bytes: a 7.4% difference that grows with each unit.

How many bytes are in 1 MB?

1 MB decimal = 1,000,000 bytes. 1 MiB binary = 1,048,576 bytes (1024 × 1024).

Why does my 1 TB drive show less capacity?

The maker counts in decimal (1 trillion bytes) and Windows shows it in binary (~931 GiB). It is the same number of bytes, counted differently.

What are KiB, MiB and GiB?

They are the IEC binary units (kibibyte, mebibyte, gibibyte). When you see the "i" in the middle, it is base 1024 with no ambiguity.

Is the conversion exact?

Yes, we multiply by exact powers of 1024 or 1000. We only round the decimals when displaying them.

Is any data sent to a server?

No. All the math runs in your browser; no value leaves your device.

Can I copy each result?

Yes, every unit has its own button to copy the value to the clipboard.

Was this generator useful?