Convert between bits, bytes, KB, MB, GB and TB in both decimal (1000) and binary (1024) systems.
Enter the values to see the result here.
Formula
Everything is stored in bytes:
xto=xfrom×ftoffrom
Decimal prefixes use powers of 1000 (KB=103, MB=106, GB=109, TB=1012). Binary prefixes use powers of 1024 (KiB=210, MiB=220, GiB=230, TiB=240). One byte is 8 bits.
Worked example
A phone advertised as 256 GB.
Bytes: 256×109=256,000,000,000.
In GiB: 256×109/230=238.42 GiB.
Difference: 17.6 gigabytes of marketing arithmetic, before the operating system takes its share.
The gap grows with every prefix step: about 2.4% at KB, 4.9% at MB, 7.4% at GB and 10% at TB.
Common mistakes
Reading Mb as MB, which makes a download seem eight times faster or slower than it is.
Expecting 1 GB = 1024 MB on a storage label. Storage makers use 1000.
Assuming the shortfall in a new drive is a defect.
Counting file sizes shown in different tools without checking whether they use 1000 or 1024.
Frequently asked questions
Why does my 1 TB drive show about 931 GB in Windows?
The maker counts a terabyte as 10¹² bytes (decimal). Windows divides by 1024³ and still labels the result "GB", although it is really gibibytes. 10¹² / 1024³ = 931.3. No space is missing.
What is the difference between MB and MiB?
MB means 1,000,000 bytes (SI). MiB means 1,048,576 bytes (1024², IEC). The i marks the binary version. Storage makers and networks use MB; memory is built in powers of two and is naturally measured in MiB.
What is the difference between Mb and MB?
Lowercase b is a bit and uppercase B is a byte. Internet speeds are quoted in megabits per second, so 100 Mbps moves at most 12.5 MB per second.
How long will a download take?
Divide the size in bits by the speed. 1 GB is 8,000 megabits, so at 100 Mbps it takes 80 seconds, assuming the link runs at full speed.