Saved calculators
Conversion

Bytes to GB converter

Share calculator

Add our free calculator to your website

Please enter a valid URL. Only HTTPS URLs are supported.

Use as default values for the embed calculator what is currently in input fields of the calculator on the page.
Input border focus color, switchbox checked color, select item hover color etc.

Please agree to the Terms of Use.
Preview

Save calculator

What are bytes, gigabytes, and gibibytes?

A byte is the fundamental unit of digital information, consisting of 8 bits. It is used to represent a single character, such as a letter or number. Larger units like gigabytes (GB) and gibibytes (GiB) measure bigger data volumes, but they belong to different measurement systems:

  • SI (International System of Units): Uses base-10 prefixes, where 1 gigabyte (GB) = 10910^9 bytes = 1,000,000,000 bytes.
  • Binary (IEC Standard): Uses base-2 prefixes, where 1 gibibyte (GiB) = 2302^{30} bytes = 1,073,741,824 bytes.

The distinction between GB and GiB is critical for accuracy in computing, storage devices, and data transfer calculations.

Formula

Converting bytes to gigabytes (GB)

GB=Bytes109\text{GB} = \frac{\text{Bytes}}{10^9}

Converting bytes to gibibytes (GiB)

GiB=Bytes230\text{GiB} = \frac{\text{Bytes}}{2^{30}}

Examples

Example 1: USB drive capacity

A USB drive is labeled as 64 GB (SI units). To find its capacity in GiB:

GiB=64×10923059.605GiB\text{GiB} = \frac{64 \times 10^9}{2^{30}} \approx 59.605 \, \text{GiB}

This explains why a “64 GB” drive shows ~59.6 GiB on a computer.

Example 2: File size conversion

A video file is 12,884,901,888 bytes. Converting to GB and GiB:

  • GB: 12,884,901,888÷109=12.885GB12,884,901,888 \div 10^9 = 12.885 \, \text{GB}
  • GiB: 12,884,901,888÷23012.0GiB12,884,901,888 \div 2^{30} \approx 12.0 \, \text{GiB}

Example 3: RAM module

A RAM module has 8 GiB. Converting to bytes:

8×230=8,589,934,592bytes8 \times 2^{30} = 8,589,934,592 \, \text{bytes}

Why do two systems exist?

The SI system (base-10) was established for simplicity in non-technical fields. However, computers use binary logic (base-2), leading to discrepancies. In 1998, the International Electrotechnical Commission (IEC) introduced gibibytes (GiB) to resolve confusion, though “GB” remains widely misused for 2302^{30} bytes in consumer electronics.

Historical context

The term “giga-” (Greek for “giant”) was formalized in 1960 as part of the SI system. The binary prefixes (kibi-, mebi-, gibi-) were introduced in 1998 to address the growing gap between decimal and binary interpretations in computing.

Notes

  • Storage manufacturers often use GB (base-10) for larger advertised capacities.
  • Operating systems like Windows use GiB (base-2) but label them as “GB,” causing perceived “missing” space.
  • Always verify the measurement system when precision matters (e.g., programming, engineering).

Frequently Asked Questions

How many bytes are in a gigabyte (GB)?

In the SI system:

1GB=109bytes=1,000,000,000bytes1 \, \text{GB} = 10^9 \, \text{bytes} = 1,000,000,000 \, \text{bytes}

In the binary system (IEC):

1GiB=230bytes=1,073,741,824bytes1 \, \text{GiB} = 2^{30} \, \text{bytes} = 1,073,741,824 \, \text{bytes}

Why does my 1 TB hard drive show only 931 GB?

A “1 TB” drive uses SI units:

1TB=1012bytes1 \, \text{TB} = 10^{12} \, \text{bytes}

Converted to GiB:

1012230931.323GiB\frac{10^{12}}{2^{30}} \approx 931.323 \, \text{GiB}

The operating system displays GiB but labels it as “GB,” creating the discrepancy.

How to convert 5,000,000,000 bytes to GB and GiB?

  • GB:
5,000,000,000109=5GB\frac{5,000,000,000}{10^9} = 5 \, \text{GB}
  • GiB:
5,000,000,0001,073,741,8244.6566GiB\frac{5,000,000,000}{1,073,741,824} \approx 4.6566 \, \text{GiB}

What is the difference between GB and GiB?

  • GB (Gigabyte): Base-10 unit (10910^9 bytes), used in storage marketing and general contexts.
  • GiB (Gibibyte): Base-2 unit (2302^{30} bytes), used in software and technical specifications.

How much data is 16 GB in GiB?

GiB=16×10923014.901GiB\text{GiB} = \frac{16 \times 10^9}{2^{30}} \approx 14.901 \, \text{GiB}

This is why a “16 GB” smartphone might show ~14.9 GiB of usable space.

Report a bug