Unit Conversion

Data Storage Converter

Convert file sizes and storage capacities between bytes, KB, MB, GB, TB, and common binary prefixes.

Convert a storage size

Enter a size, choose the current unit, and convert to another storage unit.

Clear

About this converter

How to use Data Storage Converter, plus the formulas and logic behind the results.

Tool description

The Data Storage Converter converts file and disk sizes among bytes, KB, MB, GB, TB, PB, and binary prefixes such as KiB, MiB, and GiB. It uses base-1024 factors, which match most operating-system displays.

How to use

  1. Enter the storage size.
  2. Select the unit of that size (for example GB or MiB).
  3. Select the unit you want.
  4. Select Convert to see the converted size and a table of all storage units.

Formulas

  • base bytes = input × 1024^n for the source prefix
  • output = base bytes ÷ 1024^n for the target prefix
  • 1 KiB = 1,024 B, 1 MiB = 1,024 KiB, 1 GiB = 1,024 MiB

Quick reference

  • 1 KB = 1,024 bytes
  • 1 MB = 1,024 KB
  • 1 GB = 1,024 MB
  • 1 TB = 1,024 GB

Calculation logic

Sizes are converted to bytes, then divided by the target binary factor. KB/MB/GB in this tool follow the same 1,024 multiplier as KiB/MiB/GiB so OS-style sizes stay consistent. Decimal SI disk marketing (1 GB = 10⁹ bytes) is not used.

This converter uses binary (base-1024) units commonly used by operating systems. Drive makers may advertise decimal (base-1000) capacities.

Data Storage Converter FAQ

Common questions about this converter and how to use the results.

How do I convert GB to MB?

Multiply gigabytes by 1,024. For example, 1 GB = 1,024 MB in binary units.

How do I convert MB to GB?

Divide megabytes by 1,024. For example, 2,048 MB = 2 GB.

What is the difference between GB and GiB?

GB is often used loosely for 1,024³ bytes. GiB is the unambiguous binary name for the same value.

Why does my hard drive show less space than advertised?

Manufacturers often use decimal units (1 GB = 1,000,000,000 bytes), while many OS tools use binary units.

How many bytes are in a terabyte?

In binary terms, 1 TB = 1,099,511,627,776 bytes.

Can I convert petabytes?

Yes. Petabyte (PB) is included for very large storage conversions.