Data Storage Converter

Bytes, KB, MB, GB, TB.

Inputs

Loading calculator…
Calculating…
Was this helpful?

Formula

result = value × (from.toBase ÷ to.toBase)

Bytes are the base with binary (1024-based) steps: 1 KB = 1024 B, 1 MB = 1024² B, and so on. This matches how RAM, flash storage, and most operating systems report size — not the decimal KB (1000 B) used on some hard-drive labels.

Worked example

1024 bytes equals exactly 1 KB in binary — the chunk size that comes up constantly when reasoning about memory pages, small files, and cache lines.

Where this can give the wrong answer

  • Hard-drive marketing often uses decimal GB (1 GB = 10⁹ bytes); Windows and macOS usually show binary GB (GiB). A '1 TB' SSD may show ~931 'GB' in the OS — both are 'correct' under different conventions.
  • Bits aren't listed; 1 byte = 8 bits, so multiply or divide by 8 manually for network speeds quoted in Mbps.
  • Values above ~1 million bytes still compute but may be easier to read after converting to MB or GB.

FAQ

KiB (kibibyte) explicitly means 1024 bytes; KB sometimes means 1000 bytes in SI. This calculator's KB is 1024 bytes — the binary convention.