Skip to content
gohacks.dev
Web

Byte Size Converter

Convert between bytes, decimal units (kB, MB, GB, TB) and binary units (KiB, MiB, GiB, TiB) side by side, plus bits.

Free · No sign-up · Your inputs stay in your browser

Input

Convert bytes, KB, MiB, GB and more

Output

1,610,612,736 bytes

Binary (IEC)Decimal (SI)
B1,610,612,736B1,610,612,736
KiB1,572,864kB1,610,612.736
MiB1,536MB1,610.612736
GiB1.5GB1.610613
TiB0.001465TB0.001611
PiB1.4305e-6PB1.6106e-6

Bits

12,884,901,890

Disk makers and network speeds use decimal units (1 GB = 10^9 bytes); RAM, most operating systems and Kubernetes' Mi and Gi use binary ones (1 GiB = 2^30). That 7.4% gap is why a '1 TB' drive shows as 931 GiB. Kubernetes reads 500M as decimal megabytes and 500Mi as mebibytes.

Runs in this browser. Nothing you paste is sent to a server.

Two kinds of megabyte

The SI prefixes kilo, mega and giga mean powers of 1000. The IEC binary prefixes kibi, mebi and gibi, written KiB, MiB and GiB, mean powers of 1024. Disk makers and network speeds use the first; RAM and most operating systems use the second, often while writing GB. The gap grows with size: 7.4 percent at the giga scale, which is why a 1 TB drive shows as 931 GiB.

Where the difference bites

Kubernetes reads 512M as 512,000,000 bytes and 512Mi as 536,870,912. PHP's memory_limit=128M means 128 MiB. MySQL's size settings use binary multiples too. Write the unit explicitly in anything that takes one.

Share

Frequently asked questions

Is 1 GB 1000 MB or 1024 MB?
Strictly, 1 GB is 1000 MB and 1 GiB is 1024 MiB. Many tools still write GB for GiB, so check which one is meant.
How many bytes in a megabyte?
1,000,000 in decimal (MB) and 1,048,576 in binary (MiB).
Is what I paste sent anywhere?
No. The tool runs entirely in your browser with JavaScript. Nothing you type or paste is sent to our server or stored.

Keep planning

Similar tools