Bytes to GB Converter
Convert bytes to GB — a billion to one, and where the two answers diverge.
Updated
gigabytes
1.000000GB
1,000,000,000 B = 1.000000 GB
In short
How many bytes are in a GB?
1,000,000,000 bytes — one billion. Divide a byte count by a billion for gigabytes. Divide by 1,073,741,824 instead and you get gibibytes, GiB, which is the unit most operating systems display while printing the letters GB.
At this scale the two readings are 7.4 percent apart, which is where the drive-capacity complaint comes from.
bytes to gigabytes — quick reference
| bytes (B) | gigabytes (GB) |
|---|---|
| 1,000,000 B | 0.001000 GB |
| 10,000,000 B | 0.010000 GB |
| 100,000,000 B | 0.100000 GB |
| 500,000,000 B | 0.500000 GB |
| 1,000,000,000 B | 1.000000 GB |
| 2,000,000,000 B | 2.000000 GB |
| 5,000,000,000 B | 5.000000 GB |
| 10,000,000,000 B | 10.000000 GB |
The formula, worked line by line
One division by a billion for the decimal answer, or by 2^30 for the binary one. Both are worth producing when a count matters, because knowing which scale generated a figure is often more useful than the figure itself.
“Round at the end, never in the middle. A rounded gigabyte figure has lost both its precision and its provenance.”
Provenance is the part people overlook. Precision can sometimes be recovered from context; the divisor cannot. Once a count has become "9.3 GB" there is no way to tell from the number whether a billion or 2^30 produced it, and the two possibilities are seven percent apart.
gigabytes = bytes / 1,000,000,000
gibibytes = bytes / 1,073,741,824
1 GB = 10^9 bytes
1 GiB = 2^30 = 1,073,741,824 bytes
2^32 = 4,294,967,296 bytes = 4 GiB = 4.295 GB- Usage reported by the API
- 48,318,382,080 bytes
- Divided by 10^9
- 48.32 GB
- Divided by 2^30
- exactly 45 GiB
- Quota
- 50 GiB = 53,687,091,200 bytes
- Remaining
- 5 GiB = 5.37 GB
The clean 45 identifies the source immediately: this system counts in gibibytes. Comparing the 48.32 GB figure against a quota of "50 GB" read as decimal would have suggested 1.68 GB of headroom instead of 5.37, understating it by more than a factor of three.
How far apart the two scales get
Each prefix step multiplies the ratio by 1.024, so the divergence compounds. At the kilobyte it is 2.4 percent, at the megabyte 4.9, at the gigabyte 7.37 and at the terabyte 10.0. Above that it keeps going: 12.6 percent at the petabyte and 15.3 at the exabyte. Nothing ever brings the two ladders back together.
The full binary ladder
- 2^10, kibibyte
- 1,024
- 2^20, mebibyte
- 1,048,576
- 2^30, gibibyte
- 1,073,741,824
- 2^40, tebibyte
- 1,099,511,627,776
- 2^50, pebibyte
- 1,125,899,906,842,624
Each is exactly 1,024 times the one above it. Reading down the column, the leading digits drift steadily away from a clean 1: 1.024, then 1.049, then 1.074, then 1.100, then 1.126.
That drift is the whole story of this shelf in one column. Nothing dramatic happens at any single step, which is why the convention survived for decades. The effect only becomes visible once several steps have accumulated, and by then it is a number on a box that does not match a number on a screen.
How to use the bytes to GB converter
A gigabyte is a billion bytes, so the conversion is nine decimal places. Once a count has ten or more digits it is genuinely unreadable — nobody can tell 4,294,967,296 from 42,949,672,960 at a glance — and converting it is less about arithmetic than about turning a string of digits back into something a person can hold in mind.
Starting from bytes has the same advantage here as it does lower down the ladder, and a larger payoff. The gap between the decimal and binary readings has grown to 7.4 percent by this point, so a rounded gigabyte figure of unknown origin is a genuinely uncertain quantity. An exact count is not, and it can be tested against both scales.
1,000,000,000
Bytes in a gigabyte
decimal, SI
1,073,741,824
Bytes in a gibibyte
2^30, written GiB
7.37%
The gap at this scale
and it keeps growing
The test is the same as before, run against a larger divisor. Divide by 1,073,741,824 and see whether the answer comes out clean. Storage systems, memory allocators and filesystem tools produce counts that are exact multiples of that number; billing systems, network meters and drive labels produce counts that are round in billions.
Byte counts at this scale usually come from somewhere that had a reason to be precise: a cloud storage bill, a quota enforcement check, a drive specification sheet. Those figures are worth preserving intact rather than rounding, because the rounding is where the provenance disappears and the ambiguity begins.
- 1,000,000,000
- 1 GB decimal
- 1,073,741,824
- 2^30, one GiB
- 2,147,483,648
- 2^31, the signed 32-bit ceiling
- 4,294,967,296
- 2^32, the 4 GB address limit
- 1,000,000,000,000
- 1 TB decimal
The middle three are the reason so many historical limits landed on numbers that look arbitrary. None of them is arbitrary; each is a power of two, and each marks the edge of what a fixed-width number could count.
Follow the same count up to terabytes
One more step of a thousand, and the point where the two scales diverge visibly enough to have been argued in court. That page has the arithmetic and the history.
Open GB to TB →Byte counts converted to gigabytes on the decimal scale, with the gibibyte figure alongside so the origin of a given count can be identified.
| Bytes | Gigabytes (decimal) | Same count in GiB |
|---|---|---|
| 1,000,000 | 0.001 GB | 0.000931 GiB |
| 100,000,000 | 0.1 GB | 0.093132 GiB |
| 1,000,000,000 | 1 GB | 0.931323 GiB |
| 1,073,741,824 | 1.073742 GB | 1 GiB |
| 2,147,483,648 | 2.147484 GB | 2 GiB |
| 4,294,967,296 | 4.294967 GB | 4 GiB |
| 5,000,000,000 | 5 GB | 4.656613 GiB |
| 10,000,000,000 | 10 GB | 9.313226 GiB |
| 17,179,869,184 | 17.179869 GB | 16 GiB |
| 50,000,000,000 | 50 GB | 46.566129 GiB |
| 100,000,000,000 | 100 GB | 93.132257 GiB |
| 1,000,000,000,000 | 1,000 GB | 931.322575 GiB |
Why so many limits are powers of two
Computers count in binary, so any limit imposed by the width of a number lands on a power of two. A 32-bit unsigned integer can represent values up to 4,294,967,295, which is one less than 2^32. That single fact explains a long list of ceilings that otherwise look like arbitrary product decisions.
- Bits available
- 32
- Distinct values
- 2^32 = 4,294,967,296
- Largest addressable byte
- 4,294,967,295
- In decimal gigabytes
- 4.295 GB
- In gibibytes
- exactly 4 GiB
- The familiar limit
- "4 GB", really 4 GiB
The limit is exactly four gibibytes and approximately 4.295 decimal gigabytes. It was universally described as 4 GB, which is another instance of a binary quantity wearing a decimal label — and in this case the label understated the real ceiling by nearly three hundred megabytes.
The same reasoning covers 2 GB limits, which are 2^31 and arise wherever a signed 32-bit integer was used, and 65,536 limits, which are 2^16. When a piece of software refuses at a number that looks odd, checking whether it is a power of two usually identifies the cause immediately.
Comparing capacities without getting caught
The mistake that costs real time is comparing a figure from one scale against a figure from another. A source size reported by an operating system and a target capacity read off a label are not on the same scale, and subtracting one from the other produces a headroom figure that does not exist.
Do
- Convert both sides to bytes before comparing them
- Test a count against 1,073,741,824 to identify its origin
- Write GiB when your divisor was 2^30
- Keep the exact count in anything that will be checked later
Don't
- Subtract a displayed figure from a labelled figure
- Round to gigabytes before doing arithmetic that matters
- Assume a ten-digit round number is decimal without checking
- Treat a 4 GB limit as exactly four billion bytes
Working in bytes throughout is the reliable habit. It costs nothing, the arithmetic is no harder, and the answer cannot be wrong because of a divisor somebody else chose. Convert to gigabytes at the very end, purely so that a person can read the result.
Every bytes value, worked out
60 common bytes figures each get their own page, with the answer at full precision, the arithmetic, what rounding costs, and the nearest real-world reference point on the scale.
1,000 and up B
Questions people ask
Sources
Where the constants and formulas on this page come from. Each line names the figure it backs.
One gibibyte is 2^30 bytes, 1,073,741,824, and is distinct from the decimal gigabyte of one billion bytes.
IEC 80000-13:2025 Quantities and units — Part 13: Information science and technology — International Electrotechnical Commission
Alternative definitions of the SI prefixes are not permitted, and using kilo to represent 2^10 is described as unacceptable.
NIST Special Publication 811, section 4.3 — SI prefixes — National Institute of Standards and Technology
In SI the prefix giga denotes 10^9, applied identically to every unit including the byte.
The International System of Units (SI) Brochure, 9th edition — Bureau International des Poids et Mesures
Related guides
How to Find the Volume of Hollow, Partial, and Composite Solids
A decomposition-first guide to pipes, frustums, domes, and partly filled tanks, with formulas and checks for avoiding geometric and unit errors.
August 12, 2026 · 12 min read
How to Compare Two Data Sets: Center, Spread, and Relative Difference
A practical workflow for deciding whether two sets are comparable, describing their typical values and variation, and reporting differences without overstating them.
August 11, 2026 · 10 min read
Putting JSON in a URL: Validate, Minify, Percent-Encode, or Base64url?
A decision guide for flattening, encoding, checking, and safely transporting JSON in a query string.
August 11, 2026 · 9 min read