Skip to content
OneFileConverter

Data storage converter

Data storage is file sizes, storage space and memory. Convert between 9 units — pick any two below.

KB, MB and GB here are decimal (SI): 1 KB = 1,000 bytes. Windows and many upload forms count 1 KB as 1,024 bytes and still write KB — that unit is properly called a kibibyte (KiB), and 1 MiB = 1,048,576 bytes. When a form's limit seems off by a few percent, that difference is usually why.

1 bit = 0.125 B

Units of data storage9

UnitIn bytes
bits (bit)0.125
bytes (B)1
kilobytes (KB)1,000
megabytes (MB)1,000,000
gigabytes (GB)1,000,000,000
terabytes (TB)1,000,000,000,000
kibibytes (KiB)1,024
mebibytes (MiB)1,048,576
gibibytes (GiB)1,073,741,824

bit to B table

bitsbytes
1 bit0.125 B
2 bit0.25 B
5 bit0.625 B
10 bit1.25 B
50 bit6.25 B
100 bit12.5 B
500 bit62.5 B
1,000 bit125 B

B to bit table

bytesbits
1 B8 bit
2 B16 bit
5 B40 bit
10 B80 bit
50 B400 bit
100 B800 bit
500 B4,000 bit
1,000 B8,000 bit

Questions

Why does my 1 TB drive show about 931 GB?

The drive maker counts 1 TB as 1,000,000,000,000 bytes, while Windows divides by 1,024 three times and labels the result GB. 10¹² bytes is 931.3 GiB — the same space, counted two ways.

How do I convert between data storage units?

Every unit here is defined as an exact multiple of the byte. To convert, multiply by the first unit's value in bytes, then divide by the second's — or type the value above and pick the two units.

What is the base unit of data storage here?

The byte (B). 8 bits — enough to store one character of plain English text. File sizes are counted in bytes.

How accurate are the results?

The factors are the official definitions (SI and international agreements), so conversions are exact apart from rounding: results show up to 10 significant digits, and very large or small values switch to scientific notation.

Which data storage units can I convert?

9 units: bits (bit), bytes (B), kilobytes (KB), megabytes (MB), gigabytes (GB), terabytes (TB), kibibytes (KiB), mebibytes (MiB), gibibytes (GiB). Every pair has its own page with a table and a worked example.