Explains the distinction between decimal prefixes such as MB and binary prefixes such as MiB.
Bytes to Gibibytes Converter (B to GiB)
1 B ≈ 0.000000000931322574615 GiB. Enter a value to convert B to GiB, then use the formula and table below. Displayed digits may be rounded.
Nonzero results too small for the selected decimal places use scientific notation.
Conversion table
| B | GiB |
|---|---|
| 1 B | 9.31323e-10 GiB |
| 2 B | 1.86265e-9 GiB |
| 5 B | 4.65661e-9 GiB |
| 10 B | 9.31323e-9 GiB |
| 25 B | 2.32831e-8 GiB |
| 50 B | 4.65661e-8 GiB |
| 100 B | 9.31323e-8 GiB |
Conversion chart
1 B ≈ 0.000000000931322574615 GiB. Apply the selected conversion formula to other input values.
Bytes (B) One bytes equals 1 byte.
The term byte emerged in early computer engineering; modern storage conventions distinguish decimal prefixes such as MB from binary prefixes such as MiB.
1. Parse the value, including fractions.
2. Convert B to byte.
3. Convert the base value to GiB and apply your display precision.
Understand the result before using it
A gibibyte is 2^30 = 1,073,741,824 bytes, the binary counterpart of the decimal gigabyte of 1,000,000,000 bytes. Both prefixes were defined by the IEC in 1998 so that GiB always means a power of two and GB always means a power of ten.
The conversion follows the displayed unit relationship. Display rounding can hide additional digits, and measured inputs cannot become more accurate merely by changing units.
Formula, assumptions, and example
result = input ÷ 1,073,741,824
Assumptions
- Bytes and Gibibytes represent the same data storage quantity.
- The input is expressed in B; the output is expressed in GiB.
- The unit definitions and conventional relationship shown on this page apply.
A 1,073,741,824-byte file is exactly 1 GiB, and 536,870,912 B is 0.5 GiB. To reverse it, multiply gibibytes by 1,073,741,824 — 2 GiB is 2,147,483,648 bytes, since a gibibyte is 2^30 bytes.
Good uses
- Check a file size reported in gibibytes against a byte count returned by a filesystem or API.
- Convert RAM and flash capacities, which are commonly specified in GiB, into raw bytes.
Common mistakes to avoid
- A gibibyte is not a gigabyte: 1 GiB is about 7.4% larger than 1 GB, which is why a 1 GiB file displays as about 0.93 GB.
- Storage is usually sold in decimal GB, so a drive sold as 1 TB holds about 0.91 TiB.
- This page uses the binary 2^30 definition; it does not convert between GiB and GB.
Sources and further reading
These references explain the underlying standards or provide authoritative context. Your own contract, institution, clinician, product documentation, local code, or governing standard may be the controlling source.
Guidance on unit names, symbols, conversions, and numerical presentation.
Questions about this calculation
How do I convert bytes to gibibytes?
Divide by 1,073,741,824. For example, 1,073,741,824 B ÷ 1,073,741,824 = 1 GiB.
How many bytes are in one gibibyte?
1,073,741,824 bytes, which is 2 to the power of 30.
What is 2,147,483,648 bytes in gibibytes?
2,147,483,648 B is exactly 2 GiB.