File size converter

Enter a size in any unit and see it in all the others, in both the decimal and binary systems, plus bits. Add your connection speed to estimate how long a transfer takes.

  • Free
  • No sign-up
  • Runs in your browser
file-size-converter

Fill in the values above to see the result.

100% private — the calculation is done in your browser and nothing is sent to any server.

How it works

Enter a size and a unit

Bytes, kilobytes, megabytes, gigabytes, terabytes, their binary versions, or bits.

Read the conversions

Decimal (KB, MB) and binary (KiB, MiB) values, side by side.

Add a speed if you want

See how long a download or upload takes.

Why 1 MB is not always 1 MB

File sizes look simple until you compare two programs and get different numbers for the same file. The reason is that there are two conventions. In the decimal system used by disk manufacturers, networks and many operating systems, a kilobyte is 1,000 bytes, a megabyte 1,000 kilobytes, and so on. In the binary system used by memory and some operating systems, the unit is 1,024, and the correct names are kibibyte (KiB), mebibyte (MiB) and gibibyte (GiB). A "500 GB" drive holds 500 billion bytes, which a system counting in binary shows as about 465 GiB, and that difference is why the drive seems smaller than advertised.

What the converter shows

Enter a size in any of the units and you get it in all of them, decimal and binary, with the total in bits. The two systems are labelled so you can see which is which: KB, MB, GB, TB and PB are decimal, KiB, MiB, GiB, TiB and PiB are binary. A lowercase "b", as in Mb, means bits rather than bytes, and eight bits make a byte, a distinction that matters for internet speeds.

Megabits and megabytes

Internet providers advertise speed in megabits per second (Mbps), while files are measured in megabytes. A 100 Mbps connection moves at most 12.5 megabytes per second, since 100 divided by 8 is 12.5. That is why a large download seems slower than the headline speed. Enter your connection speed and the tool estimates the time a file would take in perfect conditions.

Practical uses

Checking whether a file fits a limit on an upload form or an email attachment, planning storage for photos and video, comparing the size a program reports with what a website says, estimating a download, or reading a spec sheet that mixes units. When a form says "maximum 2 MB", it is worth knowing whether it means 2,000,000 or 2,097,152 bytes: the difference is nearly five percent.

What it does not do

The time estimate assumes the full nominal speed and ignores overhead, distance, congestion and the limits of the server, so real transfers are slower. The tool does not measure your connection or the size of an actual file. To reduce a file to a limit, use the image size reducer.

Frequently asked questions

What is the difference between MB and MiB?
MB is decimal: 1,000,000 bytes. MiB is binary: 1,048,576 bytes. The gap grows with size, from about 2.4% for KB to about 7.4% for GB.
Why does my 500 GB drive show less space?
The manufacturer counts in decimal (500 billion bytes), while many systems show binary units, about 465 GiB.
How many MB are in a GB?
1,000 in the decimal system (1 GB = 1,000 MB) and 1,024 in the binary system (1 GiB = 1,024 MiB).
What is the difference between Mb and MB?
A capital B is bytes and a lowercase b is bits. One byte is eight bits, so 100 Mbps is at most 12.5 MB per second.
How long does it take to download a file?
Enter its size and your speed in Mbps. The estimate assumes ideal conditions, so allow for a longer time in practice.
Is my data sent anywhere?
No. The calculation is done in your browser.