Skip to content
Free units tool

Data storage converter

File sizes come in two systems. Decimal units like MB and GB use powers of 1,000, while binary units like MiB and GiB use powers of 1,024. This converter switches between them, which helps when a drive, a download page and your computer each report a different number.

  • Runs in your browser
  • Free, no account needed
  • Copy or download the result

Your input

Zero or greater

Result

256 GB = 238.4185791 GiB
Unit256 GB is
Bytes (B)256,000,000,000
Kilobytes (kB, 1,000 bytes)256,000,000
Megabytes (MB)256,000
Terabytes (TB)0.256
Kibibytes (KiB, 1,024 bytes)250,000,000
Mebibytes (MiB)244,140.625
Gibibytes (GiB)238.4185791
Tebibytes (TiB)0.2328306437

Decimal units such as GB use powers of 1,000. Binary units such as GiB use powers of 1,024, which is why a 256 GB drive shows about 238 GiB.

The short answer

Decimal units (kB, MB, GB) step by 1,000, and binary units (KiB, MiB, GiB) step by 1,024. That is why a drive sold in GB shows a smaller number when a system reports it in GiB.

Formula1 GB = 1,000^3 bytes = 1,000,000,000 bytes; 1 GiB = 1,024^3 bytes = 1,073,741,824 bytes

Worked exampleA size of 256 GB is 256,000,000,000 bytes, which equals 238.4185791 GiB.

Example

Input
Value
256
From
Gigabytes (GB)
To
Gibibytes (GiB)
Result
256 GB = 238.4185791 GiB
Unit256 GB is
Bytes (B)256,000,000,000
Kilobytes (kB, 1,000 bytes)256,000,000
Megabytes (MB)256,000
Terabytes (TB)0.256
Kibibytes (KiB, 1,024 bytes)250,000,000
Mebibytes (MiB)244,140.625
Gibibytes (GiB)238.4185791
Tebibytes (TiB)0.2328306437

Decimal units such as GB use powers of 1,000. Binary units such as GiB use powers of 1,024, which is why a 256 GB drive shows about 238 GiB.

How to use the data storage converter

  1. Enter a size of zero or greater in Value, such as 256.
  2. Choose the starting unit in From, such as Gigabytes (GB).
  3. Choose the target unit in To, such as Gibibytes (GiB).
  4. The result updates as you type, or press Run. Use Copy result or Download to keep it.

How it works

Decimal units: bytes (B), kilobytes (kB), megabytes (MB), gigabytes (GB) and terabytes (TB). Each step is 1,000.

Binary units: kibibytes (KiB), mebibytes (MiB), gibibytes (GiB) and tebibytes (TiB). Each step is 1,024.

Bits are not listed here. One byte is eight bits, and the bandwidth converter handles bits.

Results show up to 10 significant digits. A table lists the value in every other unit. Negative numbers, commas and unit text are rejected.

Everything runs in your browser. Your input is not uploaded or stored. If you use Copy link, what you entered is placed in the link.

Questions and answers

How many bytes are in a megabyte?

A decimal megabyte (MB) is 1,000,000 bytes. A mebibyte (MiB) is 1,048,576 bytes.

What is the difference between GB and GiB?

A GB is 1,000,000,000 bytes and a GiB is 1,073,741,824 bytes. So 1 GiB equals about 1.074 GB.

Why does my 1 TB drive show about 931 GB?

The drive maker counts 1 TB as 10^12 bytes, but many systems divide by 1,024 three times and label the result GB. That gives about 931 GiB.

Is a kilobyte 1,000 or 1,024 bytes?

In this tool, kB means 1,000 bytes and KiB means 1,024 bytes, following the standard SI and IEC names.

Last updated November 1, 2026. Maintained by SnowRock. How our tools work

All 220 SnowRock tools