Data Storage Converter

Convert digital sizes between bits, bytes, the decimal SI units (KB, MB, GB, TB, PB with powers of 1000), the binary IEC units (KiB, MiB, GiB, TiB, PiB with powers of 1024) and the decimal bit units used for network speeds (kbit, Mbit, Gbit). The arithmetic is exact, so 1 GiB is shown as exactly 1 073 741 824 bytes.

Unit Converters Runs in your browser

Convert Digital Storage or Data Size

Two families exist: decimal (1 KB = 1000 bytes, as used by drive makers) and binary (1 KiB = 1024 bytes, as used by memory and many operating systems). Both are shown. Sizes cannot be negative.

Decimals and scientific notation such as 1.5e3 are accepted.
Automatic shows exact results in full and rounds long ones to 12 significant digits. A value too small for the chosen decimal places is shown with 3 significant digits instead of 0.

How to Use the Data Storage

  1. Type the value you want to convert in Value to convert.
  2. Pick the starting data unit in From unit and the one you want in To unit. The lists are grouped by measurement system.
  3. Read the result and the formula directly under the form; it updates as you type. Use Swap units to reverse the direction. Decimal units (KB, MB ...) use 1000; binary units (KiB, MiB ...) use 1024.
  4. Scroll to the table to see the same value in every available unit, change Precision if you need fewer digits, or press Copy result.

About This Tool

Anyone comparing the size on a drive box with what the operating system reports, developers sizing memory and uploads, network engineers converting Mbit/s to MB/s, and students learning how computers count.

Input: A number and a unit  ·  Output: The same data size in every unit.

Features and Limitations

Features

  • Both families side by side: decimal SI (KB to PB) and binary IEC (KiB to PiB), plus bits and decimal bit units.
  • Big-number exact arithmetic: 1 PiB is exactly 1 125 899 906 842 624 bytes, with no rounding.
  • The table shows the same size in every unit so you can see how decimal and binary values drift apart.
  • Handles very large and tiny values and scientific notation.

Limitations

  • The tool follows the SI and IEC definitions strictly: KB means 1000 bytes here. Some older software uses KB for 1024 bytes; choose KiB when you mean 1024.
  • Exabyte and larger units are not included.
  • Results are computed in your browser; nothing you enter is sent to a server.

Example

1 GiB = 1 073 741 824 bytes. 500 GB (a drive-box size) = 465.661 GiB, which Windows shows as “465 GB”. 1 TB = 0.9095 TiB. 100 Mbit/s = 12.5 MB/s. 1 MiB = 1048.576 KB. 1 Gbit = 125 MB.

Frequently Asked Questions

What is the difference between GB and GiB?

A gigabyte (GB) is 1 000 000 000 bytes. A gibibyte (GiB) is 2³⁰ = 1 073 741 824 bytes, about 7.4 % more. The binary prefixes Ki, Mi, Gi, Ti, Pi were standardized by the IEC in 1998 so the two meanings could be told apart.

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

Manufacturers count 1 TB as 10¹² bytes. Windows counts in powers of 1024 but labels the result “GB”, so 1 TB appears as about 931 GB. That is 0.9095 TiB: no space is missing. macOS and most Linux tools show decimal units, so the numbers match the box.

What is the difference between Mb and MB?

A lowercase b is a bit and an uppercase B is a byte; one byte is 8 bits. A 100 Mbit/s connection moves at most 12.5 MB per second, and a 1 Gbit/s link at most 125 MB/s, before overheads.

Why is the answer for large sizes shown in full?

Automatic precision shows an integer result in full up to 21 digits, so you can see for example 1 099 511 627 776 bytes in a tebibyte. Choose a precision to round.

Related Tools

More like this: all Unit Converters tools, all Converters tools or the TinySandy home page.