Data Size Converter

Convert data size between kb (decimal), mb (decimal), gb (decimal), tb (decimal), kib (binary), mib (binary), gib (binary), tib (binary).

Loading calculator…

What this tool does

Convert data size between kb (decimal), mb (decimal), gb (decimal), tb (decimal), kib (binary), mib (binary), gib (binary), tib (binary). SI KB/MB/GB/TB use powers of 1000; IEC KiB/MiB/GiB/TiB use powers of 1024.

How to use the Data Size Converter

  1. Enter or select value.
  2. Enter or select from unit.
  3. Enter or select to unit.
  4. Read the calculated result; change any measurement to compare alternatives.

Formula

result = value × from.factor / to.factor; factors: kb=1000; mb=1000000; gb=1000000000; tb=1000000000000; kib=1024; mib=1048576; gib=1073741824; tib=1099511627776
value
Value
from
From unit
to
To unit

SI KB/MB/GB/TB use powers of 1000; IEC KiB/MiB/GiB/TiB use powers of 1024.

Worked example

For data size converter, the following measurements illustrate the exact method: Value: 1; From unit: kb; To unit: mb.

Inputs

  • Value1
  • From unitKB (decimal)
  • To unitMB (decimal)

Result

  • Converted MB (decimal)0

Data Size conversion factors

UnitFactor to common base
KB (decimal)1000
MB (decimal)1000000
GB (decimal)1000000000
TB (decimal)1000000000000
KiB (binary)1024
MiB (binary)1048576
GiB (binary)1073741824
TiB (binary)1099511627776

Results explained

Converted MB (decimal)
Converted MB (decimal) from the formula above. SI KB/MB/GB/TB use powers of 1000; IEC KiB/MiB/GiB/TiB use powers of 1024.

Frequently asked questions

Select the source and target units. The Swap control exchanges them, retaining the equivalent converted value.

SI KB/MB/GB/TB use powers of 1000; IEC KiB/MiB/GiB/TiB use powers of 1024. The formula and reference table list all supported definitions.

Decimal and binary prefixes are not the same: 1 MB is 1,000,000 bytes while 1 MiB is 1,048,576 bytes.

The formulas use JavaScript double precision. Display rounding can hide trailing digits, but factors are not rounded before computation.

Yes. A zero amount converts to zero in every unit in this group.