In 1 bytes there are 1.00000e-9 gigabytes. Meanwhile in 1 gigabytes there are 1,000,000,000 bytes. Keep reading to learn more about each unit of measure and how they are calculated. Or just use the Gigabytes to Bytes calculator above to convert any number.
* Values rounded to 6 decimal places for readability
To convert bytes to gigabytes (GB), you divide by a fixed number of bytes per GB. The key is to use the right system.
Binary (most common in computing):
1 GB = 1,073,741,824 bytes (that’s 1024³)
Formula: GB = bytes ÷ 1,073,741,824
Decimal (often used by drive makers):
1 GB = 1,000,000,000 bytes (that’s 1000³)
Formula: GB = bytes ÷ 1,000,000,000
Example (binary):
2,147,483,648 bytes ÷ 1,073,741,824 = 2 GB
For quick checks, remember: divide bytes by 1024 three times to get GB in the binary system.
It depends on the system you use.
Storage makers often use decimal. Many operating systems report space using binary math.
GB means gigabyte and follows decimal math (powers of 10).
GiB means gibibyte and follows binary math (powers of 2).
This difference is why a “1 TB” drive can show less space on your computer.
Use the right formula for the unit you want.
Always check whether the context uses GB or GiB.
Using decimal gigabytes:
Using binary gigabytes (GiB):
Using binary units:
If you convert that to decimal GB:
Many storage labels use GB (decimal). Many systems show capacity using GiB (binary) but may still display “GB.” That mismatch makes the number look smaller than expected.
Also, formatting and system files take up some space, which lowers the usable total.
In decimal (base-10), multiply by 1,000,000,000:
In binary (GiB), multiply by 1,073,741,824:
Pick the standard you need:
This helps when you compare file sizes, storage limits, or data caps.
It varies by system and app. Some tools use decimal GB. Others use binary GiB, even if they label it “GB.” If accuracy matters, look for “GiB” or check whether the math matches 1,000,000,000 or 1,073,741,824.
For quick estimates, decimal is easy:
If you’re matching what many computers report for storage, use binary:
When numbers must match a label or a system readout, stick to the same standard.
The Calculate Box tool to convert bytes to gigabytes uses the open source script Convert.js to convert units of measurement. To use this tool, simply type a bytes value in the box and have it instantly converted to gigabytes.