FormatterHQ

Data Size Converter (Bytes / Bits)

Convert between bits, bytes and both decimal (KB, MB, GB) and binary (KiB, MiB, GiB) units, and see exactly where "missing" disk space goes.

Loading tool…
Ready.

How to use the Data Size Converter (Bytes / Bits)

  1. Enter a data size, using a dot for decimals (4.7, not 4,7).
  2. Choose the unit you have and the unit you need. Decimal units (KB, MB, GB) use 1000; binary units (KiB, MiB, GiB) use 1024.
  3. Set the significant digits if you want a shorter number.
  4. Copy the result, or compare the value across every decimal and binary unit at once.

Bytes converter for decimal and binary data units

This bytes converter translates sizes between bits, bytes and 13 larger units, from kilobit to pebibyte. It keeps the two prefix systems apart: decimal units such as MB and GB count in powers of 1000, while binary units such as MiB and GiB count in powers of 1024. Mixing them up is behind most "where did my storage go" questions.

Decimal (SI) versus binary (IEC) prefixes

The metric prefixes kilo, mega and giga have always meant 1000, one million and one billion. Early computers, however, used "kilobyte" for 1024 bytes because memory comes in powers of two. In 1998 the International Electrotechnical Commission added separate binary names with an "i": kibibyte, mebibyte, gibibyte and so on.

Decimal unitBytesBinary unitBytesGap
KB1,000KiB1,0242.4%
MB1,000,000MiB1,048,5764.9%
GB1,000,000,000GiB1,073,741,8247.4%
TB10¹²TiB1,099,511,627,77610.0%
PB10¹⁵PiB1,125,899,906,842,62412.6%

The gap grows at every step, so it is easy to ignore for kilobytes and impossible to ignore for terabytes. The tool labels the decimal kilobyte "KB"; strict SI style writes it "kB", and both mean 1000 bytes here.

Why a 500 GB drive shows about 465 GB

Drive manufacturers label capacity in decimal units, so a 500 GB drive holds 500,000,000,000 bytes. Windows File Explorer divides by 1024³ but still prints "GB", so the same bytes appear as roughly 465 "GB", which are really gibibytes.

500 GB  = 465.6612873 GiB
1000 GB = 931.3225746 GiB
2 TB    = 1.818989404 TiB
4.7 GB  = 4.377216101 GiB
1 GiB   = 1.073741824 GB

Nothing is missing; the number is simply expressed in a larger unit. Recovery partitions and file system metadata can shave off a little more usable space, but most of the gap is pure arithmetic. RAM goes the other way: memory is built in powers of two, so a "16 GB" module actually holds 16 GiB.

Bits versus bytes

A byte is 8 bits. File and storage sizes are counted in bytes (capital B), while network speeds are quoted in bits per second (lowercase b). Because the "per second" is the same on both sides, converting megabits to megabytes also converts Mbps to MB/s: 100 Mbit = 12.5 MB, so a 100 Mbps line moves at most 12.5 MB per second.

Here is a worked download estimate. A 4.7 GB file is 4.7 × 8 = 37.6 Gbit, or 37,600 Mbit. At 100 Mbit/s that takes 376 seconds, a little over six minutes, before protocol overhead slows real transfers down. Network speeds use decimal prefixes, so 1 Gbit is 125 MB, not 128 MiB.

Which unit should you use?

  • Decimal (KB, MB, GB, TB): drive and SSD capacities, network speeds, and file sizes in macOS Finder.
  • Binary (KiB, MiB, GiB, TiB): RAM, Windows File Explorer and many command-line tools, often while still printing "KB", "MB" or "GB".
  • Documentation and specs: write KiB or MiB explicitly whenever the difference matters, so readers do not have to guess.

Common mistakes

  • Mb vs MB. A factor of 8 separates megabits from megabytes, and it is the most common error in bandwidth math.
  • Mixed prefixes. The classic "1.44 MB" floppy held 1,474,560 bytes: 1440 KiB, labeled as if 1 MB were 1000 KiB. It is neither 1.44 MiB nor 1.44 MB.
  • Power-of-two thinking for decimal units. 1 MB is 0.9536743164 MiB, not 1.

Why powers of two at all? Memory addresses are binary numbers, as the decimal to binary converter shows: 1024 is 10000000000 in binary. To make files smaller rather than just relabel them, try Gzip compression, and use the time converter to turn download seconds into minutes or hours.

Frequently asked questions

Is 1 KB 1000 or 1024 bytes?
Under the SI standard, 1 KB (kB) is 1000 bytes, and 1024 bytes is a kibibyte (KiB). In practice some software still uses "KB" for 1024 bytes. This converter treats KB as 1000 and KiB as 1024 so you can choose explicitly.
Why does my 1 TB hard drive show only 931 GB?
The manufacturer counts 1 TB as 10¹² bytes, while your operating system divides by 1024³ and labels the result "GB". 1000 decimal gigabytes equal 931.32 gibibytes. The capacity is all there; only the unit differs.
How many megabytes per second is 100 Mbps?
100 Mbps is 12.5 MB/s, because one byte is 8 bits. Real downloads are usually a little slower because of protocol overhead and network conditions.
What is a gibibyte?
A gibibyte (GiB) is 2³⁰ = 1,073,741,824 bytes. It is the binary counterpart of the gigabyte, about 7.4% larger. The name was introduced by the IEC in 1998 to remove the ambiguity of "gigabyte".
How many bits are in a byte?
A byte is 8 bits on all modern systems. Networking standards sometimes call an 8-bit byte an "octet" to be unambiguous, because some very old machines used other byte sizes.

Last updated October 3, 2026

Related tools

Density Converter Density Converter: convert between kilogram per cubic meter, gram per cubic centimeter, gram per milliliter, gram per liter and 6 more units instantly. Electric Current Converter Electric Current Converter: convert between nanoampere, microampere, milliampere, ampere and 4 more units instantly. EM to PX Converter Convert em to pixels for CSS using a configurable root/base font size (default 16px). Energy Converter Energy Converter: convert between joule, kilojoule, megajoule, calorie and 8 more units instantly. Force Converter Force Converter: convert between newton, kilonewton, millinewton, dyne and 4 more units instantly. Frequency Converter Frequency Converter: convert between millihertz, hertz, kilohertz, megahertz and 4 more units instantly. Fuel Economy Converter Fuel Economy Converter: convert between kilometers per liter, liters per 100 km, miles per us gallon, miles per imperial gallon and 1 more units instantly. Inches to Pixels Converter Convert inches to pixels at any resolution: 96 DPI for screens, 300 DPI for print, or a custom value. Length Converter Length Converter: convert between nanometer, micrometer, millimeter, centimeter and 14 more units instantly. Mass Converter Convert SI mass units from microgram to tonne with significant-digit control, scientific notation and a table of every unit. Pixels to Inches Converter Convert pixels to inches at any resolution: 96 DPI for screens, 300 DPI for print, or a custom value. Power Converter Power Converter: convert between milliwatt, watt, kilowatt, megawatt and 5 more units instantly.