Byte / File Size Converter

Convert between bytes, KB, MB, GB, TB, and PB. Shows decimal (SI) and binary (IEC) values side by side. Click any result to copy.

Quick:
Bytes: 1,000,000Bits: 8,000,000
Decimal (SI) — 1 KB = 1,000 B
B1,000,000
KB1,000
MB1
GB0.001
TB0.000001
PB1.000000000e-9
Binary (IEC) — 1 KiB = 1,024 B
B1,000,000
KiB976.5625
MiB0.9536743164
GiB0.0009313225746
TiB9.094947018e-7
PiB8.881784197e-1

Frequently Asked Questions

What is the difference between KB and KiB?

KB (kilobyte) is a decimal unit where 1 KB = 1,000 bytes, following the SI standard. KiB (kibibyte) is a binary unit where 1 KiB = 1,024 bytes, defined by the IEC standard. Operating systems like Windows historically report storage in binary units while labelling them as KB/MB/GB, which causes confusion when comparing with drive manufacturer specs.

Why do two different standards exist for data sizes?

The decimal standard (KB/MB/GB) was defined by the International System of Units (SI) and aligns with how manufacturers measure storage capacity — e.g. a '1 TB' hard drive contains exactly 1,000,000,000,000 bytes. The binary standard (KiB/MiB/GiB) was formalized by the IEC in 1998 to remove ambiguity, since computers natively work in powers of 2. The discrepancy is why a '1 TB' drive shows as ~931 GiB in your OS.

How do I convert file sizes accurately?

Enter the size value and select the unit in the input above. The tool instantly displays conversions across all units in both decimal and binary systems. Click any result row to copy that value. For storage device capacities use the decimal column; for RAM, filesystem sizes, and OS-reported sizes use the binary column.

Is my data sent to a server?

No. All conversions run entirely in your browser using JavaScript. Nothing is transmitted to any server. The tool works offline once the page has loaded.