About the gb to b calculation
One gigabyte is exactly 1,000,000,000 bytes, so converting between them is a single multiplication. Enter any value above and the result updates as you type. Decimal gigabyte. This is why a "1 TB" drive shows as roughly 931 GB in your operating system. Eight bits, and the base unit every other storage figure is built from.
Formula
B = GB × 1,000,000,000
1 GB = 1,000,000,000 B
1 B = 1.0000e-9 GBWorked example
To convert 1 GB, multiply by 1,000,000,000: 1 × 1,000,000,000 = 1,000,000,000 B.
Frequently asked questions
How many bytes are in a gigabyte?
There are 1,000,000,000 bytes in one gigabyte. To convert any amount, multiply the number of gigabytes by 1,000,000,000.
How do I convert bytes back to gigabytes?
Divide instead of multiplying, or equivalently multiply by 1.0000e-9. One byte is 1.0000e-9 gigabytes.
Is this conversion exact?
Yes, provided both sides use the same convention. Decimal units (KB, MB, GB) are powers of 1,000 and binary units (KiB, MiB, GiB) are powers of 1,024. Both are exact — the confusion comes from software labelling binary values with decimal names.
Where is each of these units used?
Gigabytes: decimal gigabyte. This is why a "1 TB" drive shows as roughly 931 GB in your operating system. Bytes: eight bits, and the base unit every other storage figure is built from.
Sources
- IEC 80000-13 — binary and decimal prefixes for information units