Numeravo

Numeravo

Smart calculators

Unit converters

Data Storage Converter

Convert bits and bytes, and keep decimal prefixes (kB, MB, GB) separate from binary prefixes (KiB, MiB, GiB).

1 GB = 0.931322574615 GiB

Common conversions

These examples use the same factors as the converter. Choose one to fill the fields.

FromToResultUse example
8 bitByte (B)1 B
1 kBByte (B)1,000 B
1 KiBByte (B)1,024 B
1 GBGibibyte (GiB, 1,024³ B)0.93132257 GiB
1 MBMebibyte (MiB, 1,024² B)0.95367432 MiB

Conversion reference

Factors are relative to the byte. Rounded figures in the result use the decimal-place control.

UnitSymbolRelation
Bit (bit)bit1 bit = 0.125 B
Byte (B)BBase unit
Kilobyte (kB, 1,000 B)kB1 kB = 1,000 B
Megabyte (MB, 1,000² B)MB1 MB = 1,000,000 B
Gigabyte (GB, 1,000³ B)GB1 GB = 1,000,000,000 B
Terabyte (TB, 1,000⁴ B)TB1 TB = 1,000,000,000,000 B
Kibibyte (KiB, 1,024 B)KiB1 KiB = 1,024 B
Mebibyte (MiB, 1,024² B)MiB1 MiB = 1,048,576 B
Gibibyte (GiB, 1,024³ B)GiB1 GiB = 1,073,741,824 B
Tebibyte (TiB, 1,024⁴ B)TiB1 TiB = 1,099,511,627,776 B

Conversion standards and methodology

Review unit conventions, formula scope, and practical precision limits.

Official metrology standards
  • IEC

    Information science and technology

    Information quantities and binary prefixes; replaces the 2008 edition.

    IEC 80000-13:2025, edition 2

    Public catalogue scope; full standard requires licensed access. Source record checked 2026-11-17.

  • NIST

    Prefixes for binary multiples

    Examples distinguish powers of two from SI decimal multiples and bits from bytes. See IEC 80000-13:2025 for the revised prefix set.

    NIST reference: Prefixes for binary multiples

    Public reference. Source record checked 2026-11-17.

  • NIST

    The International System of Units

    U.S. presentation of the SI based on defining constants.

    NIST SP 330 (2019)

    Public reference. Source record checked 2026-11-17.

Conversion formulas and constants

How to apply the methodology

  1. Identify the convention

    Choose the quantity and confirm the exact input and output unit definitions.

  2. Apply the appropriate relationship

    Use the stated factors, offsets, or rate methodology. Keep unrounded intermediate values.

  3. Review precision and context

    Check the result against the input precision, selected convention, and any application-specific rules.

Scale through a common base

b = x × f₁; y = b / f₂

x
Input value
b
Value in the category's common base unit
y
Output value
f₁, f₂
Base units per input/output unit
  • Convert within the same physical quantity. The common base may be a practical unit such as liters or bytes.
  • Keep the unformatted result through both steps; format for display at the end.
LaTeX equation
b=xf_1,\qquad y=b/f_2

Decimal, binary, and bit/byte definitions

1 kB = 1000 B; 1 MB = 1000000 B; 1 KiB = 1024 B; 1 MiB = 1048576 B; 1 B = 8 bit

B
Byte (8-bit octet convention)
bit
Bit
kB / MB
Decimal kilobyte / megabyte
KiB / MiB
Binary kibibyte / mebibyte
  • Case matters: bytes and bits are different units. Some interfaces use KB for decimal kilobytes; the SI kilo symbol is lowercase k.
  • Storage and transfer rates are distinct quantities; bit/s and byte/s include the time denominator.
  • Very large integer quantities can exceed JavaScript's exact integer range.
LaTeX equation
1\,\mathrm{KiB}=2^{10}\,\mathrm{B},\quad 1\,\mathrm{MiB}=2^{20}\,\mathrm{B},\quad 1\,\mathrm{MB}=10^6\,\mathrm{B}
Precision and rounding rules
  • Compute through the category base using unformatted values; round only the displayed result.
  • Exact definitions do not guarantee exact binary floating-point arithmetic or increase the precision of a measured input.
  • The current converter formatter normalizes to 15 significant decimal digits and rounds ties away from zero. Its displayed precision is not a measurement uncertainty.
  • NIST SP 811 B.7 describes ties-to-even. That reference rule differs from the current UI formatter; no NIST rounding certification is claimed.

Methodology questions

Is KB always 1024 bytes?

No. SI kilo denotes 1000. KiB explicitly denotes 1024 bytes; check ambiguous legacy KB labels before converting.

Does an exact definition guarantee every displayed digit is accurate?

No. Exact unit definitions coexist with finite software arithmetic and uncertain input measurements. Display formatting is separate from measurement uncertainty.

How it works

A byte on this page is exactly 8 bits. Decimal prefixes follow the SI: a kilobyte is 1,000 bytes, a megabyte is 1,000², a gigabyte is 1,000³, and a terabyte is 1,000⁴.

Binary prefixes follow IEC 80000-13. A kibibyte is 1,024 bytes, a mebibyte is 1,024², a gibibyte is 1,024³, and a tebibyte is 1,024⁴. Some drives and operating systems label those sizes KB or GB. This page does not.

People use it when a file size, a disk label, and a memory spec are not using the same prefix. It converts stored size, not transfer speed.

Formulas

These conversions multiply by an exact factor of the byte. The relations below are read from the unit table.

  • 1 bit = 0.125 B
  • Base unit
  • 1 kB = 1,000 B
  • 1 MB = 1,000,000 B
  • 1 GB = 1,000,000,000 B
  • 1 TB = 1,000,000,000,000 B
  • 1 KiB = 1,024 B
  • 1 MiB = 1,048,576 B
  • 1 GiB = 1,073,741,824 B
  • 1 TiB = 1,099,511,627,776 B

Worked examples

  1. 8 bit = 1 B

    1 bit = 0.125 B

  2. 1 kB = 1,000 B

    1 kB = 1,000 B

FAQ

Is a kilobyte 1,024 bytes here?

No. A kilobyte (kB) is 1,000 bytes. A kibibyte (KiB) is 1,024 bytes. The page keeps those prefixes separate, following the SI and IEC 80000-13.

How many bits are in a byte?

Exactly 8.

Which is more bytes, 1 GB or 1 GiB?

1 GiB is more bytes. One gigabyte is 1,000³ bytes, which is 1,000,000,000 bytes. One gibibyte is 1,024³ bytes, which is 1,073,741,824 bytes.

Does this convert megabits per second?

No. This page converts stored size. Bits per second are a transfer speed and are not a unit here.

Factor sources

  • One byte is 8 bits.
  • Decimal prefixes follow the SI: 1 kB = 1,000 bytes, 1 MB = 1,000², 1 GB = 1,000³, and 1 TB = 1,000⁴.
  • Binary prefixes follow IEC 80000-13: 1 KiB = 1,024 bytes, 1 MiB = 1,024², 1 GiB = 1,024³, and 1 TiB = 1,024⁴. This converter does not treat KB as 1,024.

Related converters