Skip to main content

File Size Converter

New

Convert a data size between bytes, KB/MB/GB/TB and their binary (KiB/MiB/GiB/TiB) equivalents, showing both the decimal (SI) and binary (IEC) systems side by side.

file sizebytesconverterstoragekb mb gb
Read the guide
Shortcuts:⌘ KSearch

Decimal (SI, 1000-based)

Binary (IEC, 1024-based)

Storage vendors (and file systems like Windows Explorer) sometimes mix these two systems — a "1 TB" hard drive is 1,000,000,000,000 bytes (decimal), but your OS may report its capacity as ~931 GiB (binary) instead. This tool shows both so you can always see the exact byte count behind either convention.
Continue with:

Frequently Asked Questions

What's the actual difference between KB and KiB?

KB (kilobyte, decimal/SI) equals exactly 1,000 bytes, while KiB (kibibyte, binary/IEC) equals exactly 1,024 bytes — the same pattern continues at every larger unit (MB vs MiB, GB vs GiB, and so on), which is why a "500 GB" hard drive shows up as roughly 465 GiB in your operating system.

Why do storage vendors use decimal units but operating systems often show binary ones?

Storage manufacturers market capacity in decimal (SI) units because it makes the advertised number look larger and matches the international standard for metric prefixes, while most operating systems (especially older Windows versions) historically reported binary (IEC) units under the same KB/MB/GB labels — causing the mismatch you see between a drive's advertised and reported capacity.

Which system should I use for file size calculations in my own code?

It depends on the context — use decimal (1000-based) if you're matching marketing/storage-vendor conventions or network transfer specs, and binary (1024-based) if you're matching how most operating system file managers and RAM capacities are actually reported; being explicit with IEC unit names (KiB, MiB) in your own UI avoids ambiguity entirely.

Does this tool support values larger than terabytes?

Yes — it includes petabyte (PB/PiB) as the largest unit option, and very large or very small results are automatically switched to scientific notation for readability.

Can I convert from a larger unit down to bytes?

Yes — pick any unit as your input (for example, entering 2.5 in the GB/GiB field), and the tool shows the equivalent value in every other unit, both smaller and larger, in both systems simultaneously.

Related Tools