File Size Converter
NewConvert 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.
Decimal (SI, 1000-based)
Binary (IEC, 1024-based)
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
String Inspector
NewDeep-inspect any string: byte length, entropy, character types, encoding, line endings.
Math Expression Evaluator
NewEvaluate mathematical expressions safely — supports arithmetic, trig, logs, sqrt, and more.
Prime Number Tools
NewCheck if a number is prime, find primes up to N, prime factorization, and nearest prime finder.