What this calculator does
Convert bits and bytes using decimal SI or binary IEC storage units.
How it works
The calculator evaluates bytes = value × bytes-per-source-unit; result = bytes ÷ bytes-per-target-unit. Inputs are checked before calculation, and invalid values such as zero denominators or out-of-range selections produce a clear error instead of a misleading result.
Input query strings and outputs
Use an input name in this page’s URL as ?name=value, and join additional inputs with &. Portable shared links may instead use the compact ?ac= state parameter.
Input query strings
3-
?value=Storage amountNumber · Required · Default: 1
-
?fromUnit=From unitChoice · Required · Default: GB · Accepted values: bit, B, KB, MB, GB, TB, KiB, MiB, GiB, TiB
-
?toUnit=To unitChoice · Required · Default: GiB · Accepted values: bit, B, KB, MB, GB, TB, KiB, MiB, GiB, TiB
Outputs
2-
resultConverted storageNumber · Primary output
-
bytesEquivalent bytesNumber
Inputs and results
The inputs are Storage amount, From unit, To unit. Results include Converted storage, Equivalent bytes.