Byte Converter

Convert bytes, KB, MB, GB and more in one calculator.

Selected units

1 GiB

1,024 MiB = 1 GiB

These units are explicit in the input or link. The result uses their standard definitions.

Selected units: 1,024 MiB = 1 GiB
Calculation details

Selected units

Exact bytes: 1,073,741,824

Exact result: 1 GiB

Source: 1 MiB = 1,048,576 bytes Target: 1 GiB = 1,073,741,824 bytes

Use cases

Choose an example to open in Byte Converter with its units already selected.

Files and operating systems

Some Windows capacity displays use MB/GB labels for 1,024-based quantities. macOS storage generally uses decimal units; on Linux, check the tool and its settings. When file properties provide the exact byte count, convert directly from B.

Memory (RAM)

Check the specification first. If its “GB” means 1,073,741,824 bytes, then “16 GB of RAM” corresponds to 16 GiB here, or 16,384 MiB.

Hard drives, SSDs and USB drives

A 1 TB label usually means 1,000 GB. Expressing it in GiB gives a smaller number without reducing the capacity itself. Space used by formatting, the system and recovery areas is separate.

Mobile data

Check your plan's unit definitions. With standard MB and GB, 1,000 MB = 1 GB.

How the conversion works

target = input × bytes_per_source ÷ bytes_per_target

First convert to bytes, then divide by the target unit’s exact byte factor. This also works across standards, where a simple ÷1000 or ÷1024 shortcut would give the wrong result.

Example: 1 GiB = 1.073741824 GB. Both represent 1,073,741,824 bytes.

Convert gigabytes to terabytes

1 TB = 1000 GB. Use the same tool to convert a decimal capacity into terabytes.

Ten standard units, one byte baseline

This converter supports B, kB (accepted as KB), MB, GB, TB, PB, KiB, MiB, GiB and TiB across SI decimal and IEC binary units. Each unit uses its exact standard byte factor, so decimal and binary units can be mixed. PB uses its SI factor and can be converted to the available IEC units; PiB is not provided. Decimal input can include a fraction, for example 1.5 MiB to MB; input is limited to 512 characters and a complete conversion URL to 2,048 characters. The standard factors below apply to every conversion and example.

Supported data size units and exact bytes per unit
UnitNameStandardExact bytes
BbyteBase unit1
kBkilobyte (input alias: KB)SI decimal1,000
MBmegabyteSI decimal1,000,000
GBgigabyteSI decimal1,000,000,000
TBterabyteSI decimal1,000,000,000,000
PBpetabyteSI decimal1,000,000,000,000,000
KiBkibibyteIEC binary1,024
MiBmebibyteIEC binary1,048,576
GiBgibibyteIEC binary1,073,741,824
TiBtebibyteIEC binary1,099,511,627,776

Standards and sources

Standard decimal prefixes use powers of 1,000: kB, MB, GB and TB. IEC binary prefixes use powers of 1,024: KiB, MiB, GiB and TiB. Results and formulas use these standard symbols.

The calculator shows all ten units in its selectors. Each selected unit uses its exact SI or IEC byte factor, including mixed-standard conversions. KB is accepted as an input alias for kB. PB can be converted to the available IEC units; PiB is not provided.

“The SI prefixes refer strictly to powers of 10. They should not be used to indicate powers of 2.”