Saved calculators
Conversion

Data size converter

Report a bug

Share calculator

Add our free calculator to your website

Please enter a valid URL. Only HTTPS URLs are supported.

Use as default values for the embed calculator what is currently in input fields of the calculator on the page.
Input border focus color, switchbox checked color, select item hover color etc.

Please agree to the Terms of Use.
Preview

Save calculator

What is a data size converter?

A digital data converter is a tool for converting values between different units of digital information, such as bits, bytes, kilobytes, megabytes, and others. It accounts for two main numeral systems: decimal (SI) and binary (IEC), which is crucial for accurate calculations in IT, telecommunications, and data storage.

One key purpose of the converter is to eliminate confusion between systems. For example:

  • 1 kilobyte (KB) in the decimal system equals 1,000 bytes,
  • 1 kibibyte (KiB) in the binary system equals 1,024 bytes.
    The difference becomes significant when working with gigabytes and terabytes.

This converter supports convertations between units like:
bit, nibble (4 bits or half a byte), byte (B), kilobit (kbit), kilobyte (KB), megabit (Mbit), megabyte (MB), gigabit (Gbit), gigabyte (GB), terabit (Tbit), terabyte (TB), petabit (Pbit), petabyte (PB), exabit (Ebit), exabyte (EB), zettabit (Zbit), zettabyte (ZB), yottabit (Ybit), yottabyte (YB), kibibit (Kibit), kibibyte (KiB), mebibit (Mibit), mebibyte (MiB), gibibit (Gibit), gibibyte (GiB), tebibit (Tibit), tebibyte (TiB), pebibit (Pibit), pebibyte (PiB), exbibit (Eibit), exbibyte (EiB), zebibit (Zibit), zebibyte (ZiB), yobibit (Yibit), yobibyte (YiB).

Binary (IEC) vs. Decimal (SI) Systems: Key Differences

Base units

  • Bit (b): Smallest unit of information, representing 0 or 1.
  • Byte (B): Composed of 8 bits.

Decimal system (SI)

Based on powers of 10, where each step is 10310^3:

  • Kilobyte (KB): 103=1,00010^3 = 1,000 bytes.
  • Megabyte (MB): 106=1,000,00010^6 = 1,000,000 bytes.
  • Gigabyte (GB): 109=1,000,000,00010^9 = 1,000,000,000 bytes.
  • Terabyte (TB): 1012=1,000,000,000,00010^{12} = 1,000,000,000,000 bytes.
  • Petabyte (PB): 101510^{15} bytes.
  • Exabyte (EB): 101810^{18} bytes.
  • Zettabyte (ZB): 102110^{21} bytes.
  • Yottabyte (YB): 102410^{24} bytes.

Used by:

  • HDD/SSD manufacturers,
  • Internet speed measurements (e.g., 100 Mbps).

Binary system (IEC)

Based on powers of 2, where each step is 210=1,0242^{10} = 1,024:

  • Kibibyte (KiB): 210=1,0242^{10} = 1,024 bytes.
  • Mebibyte (MiB): 220=1,048,5762^{20} = 1,048,576 bytes.
  • Gibibyte (GiB): 2302^{30} bytes.
  • Tebibyte (TiB): 2402^{40} bytes.
  • Pebibyte (PiB): 2502^{50} bytes.
  • Exbibyte (EiB): 2602^{60} bytes.
  • Zebibyte (ZiB): 2702^{70} bytes.
  • Yobibyte (YiB): 2802^{80} bytes.

Used by:

  • Operating systems (e.g., Windows displays file sizes in GiB but labels them “GB”),
  • Software development and programming.

Conversion formulas

1. Converting between bits and bytes

System-agnostic:

1 B=8 bits,1 bit=0.125 B1\ \text{B} = 8\ \text{bits}, \quad 1\ \text{bit} = 0.125\ \text{B}

Example:
16 bits=168=2 B16\ \text{bits} = \frac{16}{8} = 2\ \text{B}.

2. Converting between data units

Formula depends on the system:

  • Decimal (SI):
Xtarget=Xsource×10nsource10ntargetX_{\text{target}} = X_{\text{source}} \times \frac{10^{n_{\text{source}}}}{10^{n_{\text{target}}}}
  • Binary (IEC):
Xtarget=Xsource×2nsource2ntargetX_{\text{target}} = X_{\text{source}} \times \frac{2^{n_{\text{source}}}}{2^{n_{\text{target}}}}

Where:
nn is the difference in unit orders (e.g., KB to MB: n=3n = 3, since 1 MB=103 KB1\ \text{MB} = 10^3\ \text{KB}).

Calculation examples

Example 1: Convert 500 GB to TB (SI Standard)

500 GB=500×1103=0.5 TB.500\ \text{GB} = 500 \times \frac{1}{10^3} = 0.5\ \text{TB}.

Example 2: Convert 500 GiB to TiB (IEC Standard)

500 GiB=500×12100.488 TiB.500\ \text{GiB} = 500 \times \frac{1}{2^{10}} \approx 0.488\ \text{TiB}.

Example 3: Convert 100 Mbit to MB

100 Mbit=100×106 bits=100,000,000 bits,100,000,000 bits÷8=12.5 MB.100\ \text{Mbit} = 100 \times 10^6\ \text{bits} = 100,000,000\ \text{bits}, \\ 100,000,000\ \text{bits} \div 8 = 12.5\ \text{MB}.

Notes:

  • Internet speed conversion: 50 Mbps÷8=6.25 MB/s50\ \text{Mbps} \div 8 = 6.25\ \text{MB/s}.
  • KB vs. KiB: 1 KB=1,000 B,1 KiB=1,024 B1\ \text{KB} = 1,000\ \text{B}, \quad 1\ \text{KiB} = 1,024\ \text{B}.
  • Bits vs. bytes: 16 Mbps ≠ 16 MB/s. Divide by 8 to get bytes.
  • For gamers: A 80 GB game on Steam will occupy ~74.5 GiB on disk.

Frequently Asked Questions

How to convert 250 MB to gigabytes (SI)?

250 MB=250÷103=0.25 GB.250\ \text{MB} = 250 \div 10^3 = 0.25\ \text{GB}.

How many bits are in 5 MiB (IEC)?

5 MiB=5×220 B=5,242,880 B,5,242,880 B×8=41,943,040 bits.5\ \text{MiB} = 5 \times 2^{20}\ \text{B} = 5,242,880\ \text{B}, \\ 5,242,880\ \text{B} \times 8 = 41,943,040\ \text{bits}.