Data Storage Converter

Convert data sizes between bits, bytes and every common unit, with decimal units (KB, MB, GB, which use powers of 1000) and binary units (KiB, MiB, GiB, which use powers of 1024) kept strictly apart. Results are exact whole-number arithmetic, not floating point, and you see all units at once. That is why a 1 TB drive shows as about 931 GiB. Everything runs in your browser.

Processed locally in your browser. Your data is not uploaded to our servers.

Digits with one decimal point or comma, for example 1.5 or 1,5.

Result

Examples

Where decimal and binary units differ:

AmountFromToResult
1GBGiB0.931323
1TBGiB931.322575
1GiBGB1.073742
1MiBMB1.048576
100MbitMB12.5

Formula & Methodology

Every unit has one fixed size in bits: a byte is 8 bits, a KB is 8 ร— 1,000 bits, a KiB is 8 ร— 1,024 bits, and so on up the scale. A conversion multiplies the amount by the size of the first unit and divides by the size of the second, using whole-number arithmetic so there is no floating-point error.

1 B = 8 bit1 KB = 1000 B 1 MB = 1000 KB1 KiB = 1024 B 1 MiB = 1024 KiB

Notes and limitations

  • KB, MB and GB are decimal (SI) units. KiB, MiB and GiB are binary (IEC) units. The two families are never mixed unless you choose units from both.
  • Operating systems differ: some show sizes in decimal units and some in binary units, sometimes with the decimal names. That is why drive sizes seem to โ€œloseโ€ space.
  • Bit units use lowercase โ€œbitโ€ (kbit, Mbit, Gbit). Network speeds are usually in bits per second, so 100 Mbit/s is 12.5 MB/s.
  • Results are shown with up to 12 decimals, rounded. Whole-number conversions are exact.
  • Amounts can have up to 40 digits, and negative amounts are not accepted.

How to Use

  1. Enter the amount.
  2. Choose the unit you have and the unit you want.
  3. Read the result and the same amount in every other unit.
  4. Use the swap button to convert the other way.

Frequently Asked Questions

What is the difference between GB and GiB?

A gigabyte (GB) is 1,000,000,000 bytes. A gibibyte (GiB) is 1,073,741,824 bytes (1024ยณ). The binary names (KiB, MiB, GiB) were created so that the two meanings are not confused.

Why does my 1 TB drive show less than 1 TB?

The drive maker counts in decimal (1 TB = 1,000,000,000,000 bytes) while many systems show binary units. 1 TB is about 931.32 GiB, so nothing is missing.

How many bytes are in a kilobyte?

In decimal units 1 KB is 1,000 bytes. In binary units 1 KiB is 1,024 bytes.

How do I convert megabits to megabytes?

Divide by 8. 100 Mbit is 12.5 MB, which is why a 100 Mbit/s connection downloads at most about 12.5 MB each second.

Is anything sent to a server?

No. The conversion runs in your browser and nothing you enter is uploaded or sent to analytics.

Last updated: