Data Storage Converter (Bytes, KB, MB, GB, TB)

Quick answer

Convert bytes, KB, MB, GB, TB, PB and bits instantly, with decimal (SI) and binary (KiB, MiB, GiB) units side by side. Every factor is an exact definition.

To
Kilobytes (SI)
Megabytes (SI)
Terabytes (SI)
Petabytes (SI)
Kilobytes (binary)
Megabytes (binary)

Data storage is measured in bytes, and every larger unit is a multiple of the byte. Two systems are in use. Storage makers and the SI use decimal prefixes, so 1 kB = 1,000 bytes, 1 MB = 10⁶ bytes and 1 GB = 10⁹ bytes. Operating systems and memory chips often count in powers of two: 1 KiB = 1,024 bytes, 1 MiB = 2²⁰ bytes and 1 GiB = 2³⁰ bytes.

The gap grows with each step: 2.4% at the kilo level, 7.4% at giga and 10% at tera, which is why a “1 TB” drive appears as about 931 GB in Windows. This converter shows decimal and binary units side by side, so you can compare a drive label, a file size or a download quota in whichever system you need.

How to use the Data Storage Converter

  1. Pick the unit you are starting from in the From menu and type your value.
  2. Pick the unit you want in the To menu. The heading changes to match, for example “Gigabytes to Bytes Converter”.
  3. The most common data size units are shown below at the same time, so you can compare them at a glance.
  4. Type into any result to convert backwards, then use Copy results. The copied text starts with the heading for your chosen units.

Results update as you type. Everything is calculated in your browser.

How it works

Each of the 14 data size units on this page is defined by an exact factor relative to the byte, the base unit: 1 GB = 1 × 10⁹ B and 1 kB = 1,000 B, for example. The calculator first turns the value you type into bytes, then turns that into the unit you picked in the “To” menu and into kilobytes, megabytes and terabytes. Typing into any result works backwards the same way, so the gigabytes and bytes values always describe the same amount.

How to convert data size units

  1. Choose the unit you have in the From menu and type the value, for example 1 GB.
  2. Choose the unit you want in the To menu, for example bytes. The page heading changes to “Gigabytes to Bytes Converter”.
  3. The calculator multiplies by the byte factor of the “from” unit and divides by the factor of the “to” unit: 1 GB × 1 × 109 ÷ 1 = 1 × 109 B.

1 gigabyte in common units

Unit Value
Bytes (B) 1 × 109
Kilobytes (kB) 1,000,000
Megabytes (MB) 1,000
Terabytes (TB) 0.001
Petabytes (PB) 1 × 10-6
Kibibytes (KiB) 976,562.5
Mebibytes (MiB) 953.67432
Gibibytes (GiB) 0.93132257
Tebibytes (TiB) 0.0009094947
Bits (bit) 8 × 109

Gigabytes conversion table

Gigabytes B kB MB TB
1 1 × 109 1,000,000 1,000 0.001
4 4 × 109 4,000,000 4,000 0.004
16 1.6 × 1010 16,000,000 16,000 0.016
64 6.4 × 1010 64,000,000 64,000 0.064
128 1.28 × 1011 128,000,000 128,000 0.128
256 2.56 × 1011 256,000,000 256,000 0.256
500 5 × 1011 500,000,000 500,000 0.5
1,000 1 × 1012 1 × 109 1,000,000 1

Data size units explained

Gigabyte (GB)
A gigabyte is 1,000,000,000 bytes (SI). Phone storage and data plans are measured in GB.
Byte (B)
A byte is 8 bits, enough to store one character of plain English text.
Kilobyte (kB)
A kilobyte is 1,000 bytes in SI units. Some software uses “KB” for 1,024 bytes, properly called a kibibyte (KiB).
Megabyte (MB)
A megabyte is 1,000,000 bytes (SI). A typical smartphone photo is 2–5 MB.
Terabyte (TB)
A terabyte is 10¹² bytes (1,000 GB). Hard drives and SSDs are sold in TB; an operating system that counts in binary shows 1 TB as about 931 GiB.
Petabyte (PB)
A petabyte is 10¹⁵ bytes (1,000 TB), the scale of data-centre storage and large research datasets.
Kibibyte (KiB)
A kibibyte is 1,024 bytes (2¹⁰), the binary unit many programs label “KB”. It is 2.4% larger than a kilobyte.
Mebibyte (MiB)
A mebibyte is 1,048,576 bytes (2²⁰). Memory sizes and some file managers use it, often labelled “MB”.
Gibibyte (GiB)
A gibibyte is 1,073,741,824 bytes (2³⁰). Windows reports drive sizes in GiB but labels them “GB”, which is why drives look smaller than advertised.
Tebibyte (TiB)
A tebibyte is 2⁴⁰ bytes (1,024 GiB), about 10% more than a terabyte.
Bit (bit)
A bit is the smallest unit of digital information, a single 0 or 1. Eight bits make one byte, and network speeds are counted in bits.

Common mistakes to avoid

Mixing decimal units (1 GB = 10⁹ bytes) with binary units (1 GiB = 2³⁰ bytes), and bits with bytes.

Decimal (SI) vs binary units

Decimal unit Bytes Binary unit Bytes Binary is larger by
kilobyte (kB) 1,000 kibibyte (KiB) 1,024 2.4%
megabyte (MB) 10⁶ mebibyte (MiB) 2²⁰ = 1,048,576 4.9%
gigabyte (GB) 10⁹ gibibyte (GiB) 2³⁰ = 1,073,741,824 7.4%
terabyte (TB) 10¹² tebibyte (TiB) 2⁴⁰ ≈ 1.0995 × 10¹² 10.0%

Formula

1 GB = 1 × 10⁹ B 1 GB = 1,000,000 kB 1 GB = 1,000 MB 1 GB = 0.001 TB 1 GB = 1 × 10⁻⁶ PB

Worked example

Inputs: From: 1 GB.
Results: To = 1,000,000,000 B; Kilobytes (SI) = 1,000,000 kB; Megabytes (SI) = 1,000 MB; Terabytes (SI) = 0.001 TB; Petabytes (SI) = 0.000001 PB; Kilobytes (binary) = 976,562.5 KiB; Megabytes (binary) = 953.67431641 MiB.

Frequently asked questions

Why does my 1 TB drive show 931 GB?

The drive holds 10¹² bytes. Windows divides that by 2³⁰ (1,073,741,824 bytes) and labels the result “GB”, so 10¹² ÷ 2³⁰ ≈ 931.3. The correct name for that unit is the gibibyte (GiB); in tebibytes the same drive is 10¹² ÷ 2⁴⁰ ≈ 0.909 TiB.

Is a kilobyte 1,000 or 1,024 bytes?

In the SI and on drive labels a kilobyte (kB) is 1,000 bytes. The 1,024-byte unit is the kibibyte (KiB), although some programs still call it “KB”.

How many MB in a GB?

1,000 MB in 1 GB (decimal), or 1,024 MiB in 1 GiB (binary).

How many GB in a TB?

1,000 GB in 1 TB, or 1,024 GiB in 1 TiB.

How many bits in a byte?

8 bits. To turn a size in bytes into bits, multiply by 8.

How big is a 4K movie or a photo in GB?

A smartphone photo is usually 2–5 MB, an hour of HD video about 1.5–3 GB and a 4K film 15–25 GB, so 1 TB holds roughly 40–60 4K films.

How many bytes are in one gigabyte?

1 GB = 1 × 10⁹ B.

How many kilobytes are in one gigabyte?

1 GB = 1,000,000 kB.

Are these data size conversions exact?

Yes. Every factor is an exact definition (for example 1 GB = 1 × 10⁹ B), so any difference you see is rounding in the last displayed digit.

Sources

  1. NIST Special Publication 811: Guide for the Use of the International System of Units
  2. NIST Handbook 44 Appendix C: General tables of units of measurement

Guides on this topic

Cite this calculator

Speedy Calculator. (2026). Data Storage Converter (Bytes, KB, MB, GB, TB). Speedy Calculator. https://speedycalculator.com/calculators/conversion/data-storage-converter/