Skip to main content
Calnex LogoCalnex
Conversion

Data Storage Converter

Convert a data storage value between bytes, kilobytes, megabytes, gigabytes, terabytes and petabytes using either decimal base 1000 or binary base 1024.

GB1.00 GBView results

Real-time Results

B
1,000,000,000.00B
KB
1,000,000.00KB
MB
1,000.00MB
GB
1.00GB
TB
0.001TB
PB
0.000001PB

How it works

This tool converts one entered storage value into all six unit cards at once, using base 1000 by default or base 1024 when the binary switch is enabled. It is a unit conversion only and does not measure actual file sizes or disk capacity.

When should I use base 1024 instead of base 1000?

Use base 1024 when you are working with binary-prefixed values such as KiB, MiB and GiB, which many operating systems display. Leave the switch off for decimal SI prefixes, where 1 KB = 1000 B. The switch changes both the divisor and the result labels, so the same number gives different cards in each mode.

Why do some results show more decimal places than others?

Every card is formatted with a minimum of 2 and a maximum of 6 fraction digits. Large units such as PB therefore show very small values like 0.000001, while the byte card shows two decimals. This is display rounding only; the underlying conversion uses the full factor.

Examples and interpretation(2)

How do I convert 2 MB to bytes and gigabytes in decimal mode?

Value
2
From Unit
Megabytes (MB)
Binary System (Base 1024)
false
  1. Enter Value 2, From Unit MB, and leave Binary System off (base 1000).
  2. 2 MB = 2 × 1000^2 = 2,000,000 B, shown as 2,000,000.00.
  3. In GB: 2,000,000 / 1000^3 = 0.002 GB.
B
2,000,000.00
GB
0.002

The byte card is exact for this input; the GB card is a small decimal fraction. Results are display-rounded to at most 6 fraction digits.

How do I convert 1 GB to MiB and TiB in binary mode?

Value
1
From Unit
Gigabytes (GB)
Binary System (Base 1024)
true
  1. Enter Value 1, From Unit GB, and turn Binary System on (base 1024).
  2. 1 GiB = 1024^3 B; in MiB that is 1024^3 / 1024^2 = 1024, shown as 1,024.00.
  3. In TiB: 1024^3 / 1024^4 = 1/1024 = 0.0009765625, shown as 0.000977.
MB
1,024.00
TB
0.000977

With the switch on, labels change to KiB, MiB, GiB, TiB and PiB. The TiB card is rounded to 6 fraction digits, so it is not the exact fraction.

Inputs

ParameterDefinition & Valid Bounds
From Unit

Bytes (B) · Kilobytes (KB) · Megabytes (MB) · Gigabytes (GB) · Terabytes (TB) · Petabytes (PB)

Formula

Value in bytes = value × base^index(From Unit); result = Value in bytes / base^index(unit), where base = 1000 (decimal) or 1024 (binary) and index runs B=0, KB=1, MB=2, GB=3, TB=4, PB=5.

How to use

  1. Enter the numeric Value to convert; the default is 1.
  2. Choose the From Unit, such as GB or MB; the default is GB.
  3. Leave Binary System off for base 1000 (KB, MB, GB) or turn it on for base 1024 (KiB, MiB, GiB).
  4. Read the six result cards; the source unit card is highlighted.
  5. Copy the unit you need, noting that results show 2 to 6 fraction digits.

Frequently asked questions

Does the converter accept negative values?

No. Validation rejects values below zero, and non-numeric input falls back to 0. Enter a zero or positive number.

What happens if I leave the From Unit unset?

The engine defaults to GB when no unit is supplied, and the interface also starts on GB. The source card is highlighted in the results.

Are the results exact storage capacities?

No. They are arithmetic unit conversions with display rounding to 2 to 6 fraction digits. They do not reflect formatted disk capacity, file system overhead or vendor marketing figures.

Definitions and limits

These pair pages use decimal data units: 1 kB = 1,000 B and 1 GB = 1,000 MB. Binary units use KiB, MiB and GiB: 1 GiB = 1,024 MiB. Select binary mode in the full converter for binary quantities. A byte is 8 bits.

Displayed values are rounded. Calculations use the full stored factors.

Related Conversions

Back to ConversionAll Calculators
Related Tags: