How to convert B to GB
The Byte to Gigabyte conversion is simple once you know the factor: 1 B = 1.000000e-9 GB. Below are the formula, three solved examples, a ready table and answers to the questions people ask most about B and GB.
Searching “b to gb”, “byte to gigabyte” or “byte in gigabytes”? It is the same conversion — the answer is above.
Byte to Gigabyte formula
Since 1 Byte = 1.000000e-9 gigabytes, the rule is GB = B × 1.000000e-9. In words: multiply the number of bytes by 1.000000e-9 to get gigabytes.
GB = B × 1.000000e-9
Examples: B to GB step by step
For example, someone dealing with file sizes and computer memory might need this.
Example 1: 512 B to GB
- Start with the value: 512 B.
- Multiply by 1.000000e-9 (because 1 B = 1.000000e-9 GB).
- 512 × 1.000000e-9 = 5.120000e-7 GB.
Example 2: 4,096 B to GB
- Start with the value: 4,096 B.
- Multiply by 1.000000e-9 (because 1 B = 1.000000e-9 GB).
- 4,096 × 1.000000e-9 = 0.0000041 GB.
Example 3: 1,000,000 B to GB
- Start with the value: 1,000,000 B.
- Multiply by 1.000000e-9 (because 1 B = 1.000000e-9 GB).
- 1,000,000 × 1.000000e-9 = 0.001 GB.
What is a Byte (B)?
A byte (B) is 8 bits, enough to store one English character.
What is a Gigabyte (GB)?
A gigabyte (GB) is 1,000 megabytes (decimal), the way phones, pen drives and data packs are sold.
Where is B to GB used?
Converting B to GB is handy because the two units live in different worlds: bytes are used in file sizes and computer memory, and gigabytes in mobile data packs, RAM, pen drives, SD cards and movie files. Storage conversions matter when buying hard disks, phones, data packs or uploading files with a size limit.
Gigabyte to Byte (reverse)
To go the other way, 1 Gigabyte = 1,000,000,000 B, so you divide GB by 1.000000e-9. For example, 1.000000e-9 GB is back to 1 B. Use the Gigabyte to Byte converter for that direction.
1 B in other units
8 b
0.001 KB
0.000001 MB
1.000000e-9 GB
1.000000e-12 TB
1.000000e-15 PB
0.00097656 KiB
9.536743e-7 MiB
9.313226e-1 GiB
9.094947e-13 TiB
Good to know
A Byte is smaller than a Gigabyte (1 Gigabyte is 1,000,000,000 bytes), so the number in GB is always smaller than the number in B.
KB, MB, GB and TB here are decimal (1,000-based). KiB, MiB, GiB and TiB are the binary (1,024-based) units your computer shows.
Quick answers: 2 B = 2.000000e-9 GB; 10 B = 1.000000e-8 GB; 512 B = 5.120000e-7 GB; 4,096 B = 0.0000041 GB; 1,000,000 B = 0.001 GB.