How to Check a PDF's File Size Before Uploading It
The upload fails at the last step, after you filled in the whole form. The message says the file is too large, and you are not sure by how much. Checking the size first takes seconds and avoids that. It also helps to know that different programs can show slightly different numbers for the very same file.
The situation
Most upload forms, email services, and portals state a maximum size, such as a number of megabytes. Your job is to compare two numbers: the limit and the size of your file. That sounds trivial, but the two numbers are often written in different units, rounded differently, or measured differently. A file that appears to sit right at the limit may be accepted by one system and rejected by another.
Where to find the size
The exact wording of menus changes between versions, so these are the general routes.
Windows. Open File Explorer, find the PDF, and right-click it, then choose Properties. The General tab lists the size, and often a second figure called size on disk. The first is the real size of the file. The second reflects how storage is allocated and is usually a little larger, so it is not the one to compare against a limit. Switching the folder to a details view also adds a Size column, which is handy for comparing several files, though it may round up to a whole unit.
macOS. Select the file in Finder and choose Get Info from the File menu, or press Command and I. The Size line shows the figure, often with the exact number of bytes in brackets. The list view in Finder can also show a Size column.
iPhone or iPad. In the Files app, press and hold the PDF and choose Get Info, or open the file and look for an information option. The size appears in the details.
Android. Open your file manager or the Files app, select the PDF, and look for Details or Info. The wording depends on the phone maker and app version.
Inside the PDF viewer. Many viewers list the file size in the document properties. This is the same figure, just in a different place.
Why the number can look different
Two things cause most confusion.
KB, MB, and the 1,000 versus 1,024 question. In one convention, a kilobyte is 1,000 bytes and a megabyte is 1,000 kilobytes. In another, a kilobyte is 1,024 bytes and a megabyte is 1,024 kilobytes. Some systems and apps follow the first, and others follow the second, and a few use the second but label it with the first's names. The two conventions differ by a few percent at the megabyte scale. The safest assumption is that the number you read may be off by a few percent from the number the upload form uses.
Rounding. An app may show 4.9 MB for a file that is a little over 4.9, or round up to a whole unit. If your file is within a hair of the limit, that rounding can matter.
What is being measured. An upload form may check the size of the file, but an email service may count the attachment after it has been encoded for sending, which makes it larger than the original. Because of that, an email attachment limit often leaves you less usable room than the number suggests.
Leaving a safety margin
A practical way to avoid trouble is to aim below the limit, not exactly at it.
- Find the stated limit and its unit. Note whether it says MB or MiB, if it says so at all.
- Aim a bit lower. A margin of roughly five to ten percent is a sensible habit, enough to cover unit differences and rounding.
- For email, leave extra room. Because attachments are encoded for transport, and because the message itself and other attachments count too, use a smaller target than you would for a direct upload.
- Check the final file, not an earlier version. Compression or editing may change the size, so look at the exact file you will upload.
- Keep the name simple. This does not change the size, but some forms reject unusual characters in file names, and it is easier to find that out before you submit.
If the file is over the limit
You have several options. Reduce image resolution, remove unneeded pages, or export from the source again with a smaller option. If you have a precise number to reach, PDF300 lets you enter a target file size and compresses to meet it, so you can set it a little under the limit to keep your margin. Small files can be processed in the browser so they never leave your device, and a server mode is available for higher-quality results. Afterward, check the size again using the steps above, and look at the pages to make sure they are still readable.
If the document is long, splitting it into parts is another route, as long as the recipient accepts more than one file.
Checklist
- [ ] Located the stated upload limit and noted its unit.
- [ ] Checked the real file size in Properties, Get Info, or Details, not size on disk.
- [ ] Allowed for the KB and MB convention difference and for rounding.
- [ ] Left a margin of roughly five to ten percent below the limit.
- [ ] Left extra room if the file is an email attachment.
- [ ] Rechecked the size of the final file after any compression.
FAQ
Is 1 MB equal to 1,000 KB or 1,024 KB?
Both are in use. Some programs and devices count 1,000 KB per MB, and others count 1,024 KB per MB. The difference is small for a single file but can decide whether a file just under a limit is accepted, which is why a safety margin is useful.
Why does my PDF look smaller on my computer than the upload form says?
The form may use a different unit convention, round the number up, or count the file after it has been encoded for upload or email. Also make sure you compared the file size and not the size on disk. Aim a few percent under the limit to be safe.
Does the number of pages tell me the file size?
No. A few pages of photographs can be much larger than many pages of text. The file size is the figure that counts, so read it directly instead of estimating from the page count.