Byte Size Calculator

Byte Size Calculator converts a data size you enter into every unit of both the decimal scale (1 KB = 1000 bytes, used by disk manufacturers and network speeds) and the binary scale (1 KiB = 1024 bytes, used by operating systems for file sizes) at once. Since the gap between the two can reach several percent, it clarifies the classic “why does my file look smaller than the box says” confusion.

Decimal (1 KB = 1000 bytes)
B1.0000e+6
KB1.0000e+3
MB1
GB0.001
TB1.0000e-6
PB1.0000e-9
Binary (1 KiB = 1024 bytes)
B1.0000e+6
KiB976.5625
MiB0.953674
GiB9.3132e-4
TiB9.0949e-7
PiB8.8818e-10

How it works

  1. 1Enter the value and unit (e.g. 1.5 GB).
  2. 2See every decimal-scale (KB/MB/GB/TB/PB) equivalent in the left column.
  3. 3See every binary-scale (KiB/MiB/GiB/TiB/PiB) equivalent in the right column.
  4. 4A negative or invalid value shows a warning.

Frequently asked questions

What's the difference between KB and KiB?+

KB (kilobyte) is 1000 bytes in the decimal system; KiB (kibibyte) is 1024 bytes in the binary system. The gap is tiny for small units but approaches 10% at TB/TiB scale.

Why does my OS show a different file size?+

Windows File Explorer usually labels things “KB/MB/GB” but actually computes on a 1024 base (KiB/MiB/GiB); that's why the same file looks smaller than the “decimal”-marketed capacity on a drive's box.

Which scale do network speeds (Mbps) use?+

Network and internet speeds almost always use decimal units (1 Mbps = 1,000,000 bits/s) and are measured in bits, divide by 8 to get bytes; this tool doesn't do a direct bit conversion.

Why are very large or small results shown in scientific notation?+

For readability, results above 1000 or below 0.001 are shown in exponential (scientific) notation.

Is the value I enter stored anywhere?+

No, the entire computation runs in your browser.

Embed on your site

Size
480 × 360px
<iframe
  src="https://toolsqube.com/en/software-engineering/byte-size-calculator/embed"
  width="480" height="360"
  style="border:0;border-radius:14px"
  title="Byte Size Calculator · ToolsQube"
  loading="lazy">
</iframe>

Want to go deeper on this topic: Software Engineering Tools Guide →

Command Palette

Search for a command to run…