Skip to main content
SolvriaSolvria

Data Storage / File Size Converter

Convert between bits, bytes, KB, MB, GB, TB — including the 1000 vs. 1024 distinction.

Enter your values to calculate your result.

Report an error
Storage manufacturers typically advertise capacity using the decimal (1000-based) definition, while some operating systems report file/drive sizes using the binary (1024-based) definition but still label it "GB" — this is why a drive can show less free space than its advertised capacity. Pick the unit that matches what you're comparing against.

About this calculator

The Data Storage Converter changes a file or disk size from one unit to another, such as gigabytes to megabytes, bytes to bits or gibibytes to gigabytes.

It keeps two conventions apart: decimal units (KB, MB, GB, TB, based on 1,000) and binary units (KiB, MiB, GiB, TiB, based on 1,024), so you can match whichever number you are comparing against.

What each field means

Value

The amount of data you want to convert.

Every result is calculated from this number.

0 or more.

From

The unit your value is in. Options: bit, byte, KB, MB, GB, TB, KiB, MiB, GiB, TiB.

KB, MB and GB are multiples of 1,000 bytes, while KiB, MiB and GiB are multiples of 1,024, so mixing them gives a different answer.

Choose one.

To

The unit you want the answer in. Options: bit, byte, KB, MB, GB, TB, KiB, MiB, GiB, TiB.

The result is expressed in this unit.

Choose one.

How it is calculated

  1. Convert the value to bytes, the base unit, using the size of the starting unit.
  2. Convert the bytes to the target unit using its size.
  3. The result is shown with up to six decimal places.

Every unit converts through bytes (the base unit). This calculator keeps two conventions distinct: KB/MB/GB/TB use the SI decimal definition (1 KB = 1000 bytes), while KiB/MiB/GiB/TiB use the IEC binary definition (1 KiB = 1024 bytes) — software disagrees about which one a plain "KB" or "GB" means, so both are offered explicitly rather than guessing.

Symbols used

byte
byte, the base unit every data size passes through

Assumptions

  • Decimal units: 1 KB = 1,000 bytes, 1 MB = 1,000,000 bytes, 1 GB = 1,000³ bytes.
  • Binary units: 1 KiB = 1,024 bytes, 1 MiB = 1,024² bytes, 1 GiB = 1,024³ bytes. 1 byte = 8 bits.

Example

2 GB is 2 × 1,000,000,000 = 2,000,000,000 bytes, and dividing by 1,000,000 bytes per MB gives 2,000 MB.

Step by step

  1. Inputs: 2 GB to MB.
  2. 2 GB = 2,000,000,000 bytes.
  3. 2,000,000,000 ÷ 1,000,000 = 2,000 MB.

Reading your result

Converted Value
The same amount of data expressed in the unit you chose.

What you can conclude

  • The exact equivalent of a data size in another unit.
  • Why a drive reports less space than its label.

What you cannot conclude

  • How much space is actually free on a device.
  • Transfer speed or how long a copy takes.

Limitations

  • Use the Data Transfer Converter for rates such as Mbps and MB/s.
  • The result is rounded to six decimals for display.

Frequently Asked Questions

Why are there both GB and GiB?

GB (gigabyte) conventionally means 1,000³ bytes, while GiB (gibibyte) means 1,024³ bytes — about 7.4% more. Pick whichever matches the number you're trying to match (e.g. a drive's advertised capacity vs. what your OS reports).

Does this cover the Mbps ↔ MB/s conversion?

No — that's a data transfer RATE (bits per second), not a file size. Use the Data Transfer Converter for that.

Why does my 1 TB drive show about 931 GB?

The maker counts 1 TB as 1,000,000,000,000 bytes, but the system may show binary gibibytes: 10¹² bytes is about 931 GiB. Nothing is missing; it is a difference in units.

How many bits are in a byte?

Eight. This matters when comparing file sizes, which are usually in bytes, with network speeds, which are usually in bits.