Bytes to GB Converter

Convert bytes to gigabytes, megabytes, and terabytes for file sizes, storage capacity, and data transfer calculations. Supports both decimal (SI) and binary (IEC) definitions.

💻 Digital Storage📐 GB = Bytes / 1,000,000,000 (decimal)
File or storage size in bytes
Definition
Please enter valid values.

Formula & Reference

VariableFormulaUnits
Bytes to GB ConverterGB = Bytes / 1,000,000,000 (decimal)GB or GiB

Step-by-Step Examples

Example 1
4.5 GB File

4,500,000,000 bytes to GB.

  • 4,500,000,000 / 1,000,000,000 = 4.5 GB (decimal)
  • In binary (GiB): 4,500,000,000 / 1,073,741,824 = 4.19 GiB
  • Windows shows GiB but calls it GB - causing apparent size discrepancy
✓ 4.5 GB (decimal) / 4.19 GiB (binary)
Example 2
USB Drive

32,000,000,000 bytes (32 GB label) to actual bytes.

  • Labeled 32 GB = 32,000,000,000 bytes (decimal)
  • OS shows 29.8 GB because it uses binary (32,000,000,000 / 1,073,741,824 = 29.8 GiB)
  • This explains why drives seem smaller than labeled
✓ 29.8 GiB displayed (32 GB labeled)
Example 3
1 MB

1,000,000 bytes to MB.

  • 1,000,000 / 1,000,000 = 1 MB (decimal)
  • Binary: 1,000,000 / 1,048,576 = 0.954 MiB
  • Most contexts: 1 MB = 1,000,000 bytes
✓ 1 MB (0.954 MiB in binary)

Real-World Applications

Common Mistakes to Avoid

⚠️
Decimal vs binary confusion

Hard drive manufacturers use decimal (1 GB = 1 billion bytes). Operating systems use binary (1 GiB = 1,073,741,824 bytes). A '1 TB' drive appears as ~931 GiB in Windows. This is not a scam - it's a measurement definition difference.

⚠️
Confusing bits and bytes

1 byte = 8 bits. Internet speeds are in Mbps (megabits per second). File sizes are in MB (megabytes). To convert: a 100 MB file at 10 Mbps takes 80 seconds (100 MB x 8 bits/byte / 10 Mbps = 80s).

⚠️
Rounding small differences for large volumes

The decimal/binary difference is 7.4% for GB and grows to 10% for TB. For large storage systems, this difference is significant.

Frequently Asked Questions

How many bytes in a GB?
Decimal (SI): 1 GB = 1,000,000,000 bytes. Binary (IEC): 1 GiB = 1,073,741,824 bytes. Hard drives use decimal; operating systems historically use binary.
Why does my 1 TB drive show less than 1 TB?
Your drive has 1,000,000,000,000 bytes (decimal 1 TB). Windows shows it as 931 GiB because it divides by 1,073,741,824. Mac now uses decimal too, so it shows 1 TB.
How many GB in 1 TB?
1,000 GB (decimal) or 1,024 GiB (binary) per TB. Colloquially, people say 1 TB = 1,000 GB and this is accurate for the decimal definition used by storage manufacturers.
What is a gigabyte vs gibibyte?
GB = gigabyte (decimal, 10^9 bytes). GiB = gibibyte (binary, 2^30 bytes = 1,073,741,824 bytes). The GiB term was created in 1998 to reduce ambiguity, but GB is still used both ways in practice.
How many photos fit in 1 GB?
At 3-5 MB per smartphone JPEG: about 200-300 photos per GB. RAW photos (20-30 MB each): about 35-50 per GB. 4K video at 400 MB/min: about 2.5 minutes per GB.

Related Calculators