Saved

Press the star next to a tool's name to save it.

All my tools

File Size Checker

Choose one or more files to see each size in bytes, KB and MB, and the total. Add an upload limit, such as 2 MB, and the file size checker tells you which files fit.

Enter the limit the website or form gives, such as 2 MB, to see which files fit.

Only each file's name and size are read. Nothing is opened or uploaded.

Total size

–

Choose files to see their size.

A file size checker shows exactly how big a file is before you upload or email it. Choose a file and you see its size in bytes, kilobytes and megabytes, measured both ways computers count. Add a limit, such as the 2 MB a form allows, and each file is marked as fitting, borderline or too big.

How to use the file size checker

  1. Choose your files. Pick one or many, of any type: photos, PDFs, documents or videos. You can also drag them onto the box.
  2. Read the sizes. The total appears at the top, and every file is listed with its size in KB or MB, in KiB or MiB, and in bytes.
  3. Add a limit if you have one. Enter the number and unit the website gives. Each file then shows whether it fits.

Why a file can show two different sizes

There are two ways to count a kilobyte. In the decimal system used by the metric prefixes, 1 kilobyte (KB) is 1,000 bytes and 1 megabyte (MB) is 1,000,000 bytes. In the binary system, 1 kibibyte (KiB) is 1,024 bytes and 1 mebibyte (MiB) is 1,048,576 bytes. Some apps and operating systems count in binary but still write KB and MB, while storage makers and current Apple devices count in decimal, so the same photo can show as 2.5 MB on one device and 2.4 MB on another. Neither is wrong: they are counting in different units.

Worked example

A photo of 2,516,582 bytes is 2.52 MB in decimal units and 2.4 MiB in binary units. Against a 2 MB upload limit it is too big either way, because it is larger than both 2,000,000 and 2,097,152 bytes. A file of 2,050,000 bytes is borderline: it is over 2 MB if the site counts a megabyte as 1,000,000 bytes, but under it if the site counts 1,048,576 bytes.

What a borderline result means

Most websites don't say which way they count. If a file is borderline, the safest choice is to make it a little smaller so it fits either way. For photos, our image compressor or image size reducer can bring a file under a set size. For documents, the PDF compressor does the same.

Checking several files at once

Choose all the files a form asks for in one go. The total at the top is useful when a site limits the combined size, such as an email with several attachments, and the list shows which single file is the largest. If one file is far bigger than the rest, compressing just that one is often enough to get under the limit. Always check the exact limit on the page you are uploading to, since it varies from site to site.

Is it safe to check files here?

Yes. The checker only reads each file's name and size, which your browser already knows. The file itself is never opened, read or sent anywhere, so it works the same for private documents. To convert between units on their own, use the megabyte to kilobyte converter.

Where the size comes from

When you pick files with the file box or drag them onto the page, your browser hands the page a File object for each one.[4] A File is a kind of Blob, and its size property gives the size in bytes.[3][4] The file size checker reads that number and the file’s name, and nothing else. The bytes figure is exact. Every other figure is worked out from it.

How the file size checker rounds and labels sizes

Decimal units step up every 1,000 bytes and binary units every 1,024 bytes. Sizes are rounded to at most two decimal places, and a file under 1,000 bytes is shown in bytes only. Here is what you see for some sample sizes:

BytesDecimalBinary
1,0241.02 KB1 KiB
204,800204.8 KB200 KiB
734,003734 KB716.8 KiB
1,500,0001.5 MB1.43 MiB
3,221,225,4723.22 GB3 GiB

The large number at the top is the total in decimal units. The line below it gives the total in bytes and in binary units.

Where KB and KiB come from

Kilo, mega and giga are metric prefixes. NIST lists kilo (k) as a thousand, mega (M) as a million and giga (G) as a billion, all powers of 10.[5] It also notes that kilo is written with a lowercase k, unlike most prefixes for large multiples.[5] The binary prefixes kibi, mebi and gibi were set by the International Electrotechnical Commission in December 1998, so that powers of 2 have their own names.[1] That is why this checker writes KiB and MiB for the binary sizes instead of reusing KB and MB.

Worked example: three photos and a 500 KB limit

A form accepts photos up to 500 KB, and you have three files of 480,000, 505,000 and 530,000 bytes. Enter 500 as the limit and choose KB as the unit. The checker compares each file with 500,000 bytes and with 512,000 bytes:

  • 480,000 bytes is under both, so it fits.
  • 505,000 bytes is over 500,000 but under 512,000, so it is borderline. It passes only on a site that counts 1 KB as 1,024 bytes.
  • 530,000 bytes is over both, so it is too big.

The summary line reads “Against 500 KB: 1 fit, 1 borderline, 1 too big.” The total of all three is 1,515,000 bytes, shown as 1.51 MB, or 1.44 MiB in binary units.

Limits of the checker

  • It lists up to 100 files at a time. If you choose more, only the first 100 are shown and a note tells you so.
  • The limit can be in KB, MB or GB and must be above 0. Leave the box empty if you only want the sizes.

What next

Use this often? Add File Size to your Home screen.

Frequently asked questions

How does the file size checker work?

Your browser already knows each file's name and size. The checker reads only those two things and shows the size in several units. The file is never opened or uploaded.

Why does my file show as 2.4 MB on one device and 2.5 MB on another?

One device counts a megabyte as 1,048,576 bytes and the other as 1,000,000 bytes. The file is the same size; it is measured in different units.

How many KB are in 1 MB?

In decimal units, 1 MB is 1,000 KB. In binary units, 1 MiB is 1,024 KiB. Websites use either, so the checker shows both.

What should I do if a file is borderline?

Make it a little smaller so it fits whichever way the site counts. Compressing the image or PDF usually takes only a few seconds.

How many files can I check at once?

Up to 100. Choose them all in one go or drag them onto the box. If you pick more than 100, only the first 100 are listed.

Why does a 1,024-byte file show as 1.02 KB?

In decimal units 1 KB is 1,000 bytes, so 1,024 bytes is 1.02 KB. In binary units it is exactly 1 KiB. The checker shows both.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Unit Converters