“File Is Too Large” When Uploading a PDF: Every Fix, in Order
Published September 17, 2026 · Updated October 29, 2026 · By the TryDocsy team
Application portals, job sites and exam forms nearly all cap uploads, and the error rarely tells you by how much you are over. This guide puts the fixes in the order that loses the least quality, with sizes we measured on real test files so you know what to expect from each one.
Short answer
Remove pages the portal does not need, or split the file if the form takes several uploads. Still too big? Use Compress PDF in Target Size mode with the limit entered. Our 1.84 MB (1,926,584 bytes) mock dossier from committed sample files came down to 505,306 bytes for a 500 KB target. The tool turns pages into images at 1.4x scale (about 100 DPI) across an 8-step quality search, so text stops being selectable. If you must keep selectable text, delete unneeded pages or extract embedded images instead.
Step 0: how far over the limit are you?
Right-click the file and open properties (Get Info on macOS) to see its exact byte count. Then check the portal rules for both maximum and minimum limits. Government portals often set both. The UPSC One Time Registration FAQ, for example, asks for the photo identity card as a PDF between 20 KB and 300 KB. Squeezing a file down to 15 KB gets rejected just like one at 400 KB.
Also check kilobyte definitions. TryDocsy counts 1 KB as 1,024 bytes (binary), so a 300 KB target allows 307,200 bytes. If a portal counts decimal kilobytes (1,000 bytes), set your target lower (such as 290 KB) to stay safe. Read what PDF compression is to understand how image re-encoding differs from stream deflating.
Our test file and measured benchmarks
To make numbers practical, we tested a composite five-page PDF (3,923,446 bytes / 3.74 MB) with one typed text page, two 300 DPI A4 scans, and two 3840 × 2400 photos. We also tested our committed six-page application dossier (application-dossier-six-page.pdf, 1,926,584 bytes / 1.84 MB). Processing the dossier through Compress PDF at Target Size 500 KB yielded 505,306 bytes (493.5 KB), a 73.8% reduction.
| What we did | Tool and setting | Result (bytes) | Text still selectable? |
|---|---|---|---|
| Original file | None | 3,923,446 | Yes (typed page) |
| Deleted the two photo pages | Delete Pages, pages 4-5 | 1,492,887 | Yes |
| Compressed to a 2 MB target | Compress PDF, Target Size 2 MB | 536,279 | No |
| Compressed to a 500 KB target | Compress PDF, Target Size 500 KB | 511,974 | No |
| Compressed to a 200 KB target | Compress PDF, Target Size 200 KB | 200,885 | No |
| Compressed to a 100 KB target | Compress PDF, Target Size 100 KB | 93,758 | No |
| Deleted photo pages, then 100 KB target | Delete Pages, then Compress PDF | 101,514 (3 pages) | No |
| Converted to grayscale at 144 DPI | Grayscale PDF, 2x | 827,632 | No |
Fix 1: remove pages the portal didn't ask for
This fix costs zero image quality. Applicants often upload an entire scanned bundle when the form requests only one page, or include blank back sides from duplex scanning. Open Delete Pages, select pages to discard, and download the trimmed file. Removing our two photo pages cut the file from 3.92 MB to 1.49 MB, keeping typed text selectable.
Trimming pages also helps if you must compress afterwards. A fixed byte budget distributed over fewer pages gives each page higher resolution. Our three remaining pages fit into 101,514 bytes (about 34 KB per page), compared to 19 KB per page when all five were compressed to 100 KB.
Fix 2: split the file if the form accepts several uploads
When forms provide separate attachment slots for individual certificates, use Split PDF by page ranges. Each section keeps 100% of its original resolution and vector text, which is helpful for mark sheets or detailed transcripts.
Fix 3: compress to just under the limit
When all pages must remain in one file, use Target Size mode on the compress page. The tool attempts multiple quality levels to find the highest quality that fits under your limit.
In CompressClient.tsx (lines 71-86), the compressor executes an 8-step binary search between JPEG quality 0.05 and 0.92 at 1.4x scale (roughly 100 DPI). Each page is rendered to an HTML canvas and embedded as a compressed JPEG. Because pages are rasterized, text stops being selectable or copyable.
- Target size is an upper ceiling. Our 2 MB target produced 536 KB because the highest quality setting already fit.
- Because pages become images, text cannot be selected. If you need searchable text, run OCR on the output.
- Target-size search takes 20 to 45 seconds for five pages. Keep the tab active while it runs.
- If no quality fits, the tool displays a warning with the closest size. Delete unneeded pages or split the document first.
How to keep selectable text when compressing
Because client-side canvas compression converts pages into images to keep files private in browser memory, use these alternatives when selectable vector text is mandatory:
- Delete unneeded pages: Using Delete Pages preserves vector fonts completely on retained pages.
- Extract bulky images: Use Extract Images to remove embedded photos, compress them separately, and re-insert them.
- OCR after compression: If you must rasterize to shrink size, restore a text layer using our guide to make scanned PDF searchable.
- Assemble scans cleanly: When combining documents, follow our workflow to merge scanned documents under 200 KB so oversized scans never inflate the bundle.
- Desktop stream optimizers: If you cannot rasterize and cannot remove pages, desktop tools like Ghostscript or qpdf rewrite PDF object streams and downsample images while leaving vector fonts intact.
Should you convert to grayscale before compressing?
Converting to black and white sounds like a quick fix, and our test dropped to 827,632 bytes at 144 DPI. But grayscale tools also redraw pages as JPEG images. Stacking grayscale and compression applies two passes of lossy JPEG encoding. Compressing the original directly reached 93,758 bytes at the 100 KB target with sharper text.
Use Compress PDF directly when aiming for upload caps. Reserve grayscale for situations where a portal explicitly requires monochrome documents.
Fix 4: rescan smaller at the source
If you still have the paper document, rescanning at proper settings avoids compression artifacts. Mobile scanner apps often default to 300 or 600 DPI in color. An A4 page at 300 DPI color takes around 580 KB, while 150 DPI in grayscale takes only 170 KB before compression.
- Choose grayscale unless color stamps or colored photos are required.
- Use 150 to 200 DPI for typed text. Avoid dropping below 150 DPI for small print.
- Crop closely to page borders so dark background scanner borders are excluded.
- Save directly as PDF rather than saving uncompressed raw image formats.
How large can the PDF be? WhatsApp, Gmail and portal limits
Verify the destination limits before processing. WhatsApp allows sending documents up to 2 GB. Gmail caps attachments at 25 MB per email, replacing larger files with Google Drive links. Government and entrance exam portals set the strictest limits, usually between 100 KB and 2 MB.
| Sending to | Limit | Which fix usually works |
|---|---|---|
| WhatsApp, as a document | 2 GB | None needed; compress only to save mobile data |
| Gmail | 25 MB per message | Fix 1 or Fix 2, then Fix 3 if still over |
| Exam or admission portal | Often 100 KB to 2 MB | Fix 3 with the exact target, after Fix 1 |
Still rejected? Check these failure modes
- Below minimum limit: When a portal requires 20 KB to 300 KB, an over-compressed 15 KB file will fail validation. Target 100 KB to 250 KB.
- Wrong file extension: Several forms mandate JPG for photos and PDF for multi-page documents. Renaming an extension does not change file formatting.
- Password encryption: Password-protected PDFs cause many portal upload scripts to fail silently. Remove encryption before uploading.
- Filename characters: Special symbols or spaces can break legacy upload scripts. Rename files to simple names like id_document.pdf.
Last checked on 2026-10-29: checked against CompressClient.tsx 8-step binary search, 1.4x scale canvas rasterization, and UPSC OTR 20 KB to 300 KB upload limits.
How we measured
- Test files: a five-page A4 PDF (3,923,446 bytes) assembled with pdf-lib containing one typed page, 300 DPI scans, and two JPEG wallpaper photos; and a six-page application dossier (application-dossier-six-page.pdf, 1,926,584 bytes) from reports/seo-batches/samples/b08/.
- Tools: trydocsy.com/pdf/compress (Target Size mode), /pdf/delete-pages, /pdf/split, and /pdf/extract-images, tested in Microsoft Edge on Windows 11. Sizes recorded as exact byte counts of output downloads.
- Readability: inspected on crops of 11 pt text at 100% and 200% zoom. Text selectability checked with pypdf and browser selection tools.
Frequently asked questions
Why did my PDF get only slightly smaller when I set a big target?
The target is a maximum ceiling. If your document already fits at the highest quality setting used by the compressor, the search stops there. Our 2 MB target produced a 536 KB file because no further compression was needed to stay under 2 MB.
Can I compress a PDF without losing selectable text?
TryDocsy Compress PDF redraws pages onto a canvas as compressed JPEG images, which removes the text layer. To keep selectable text, delete unneeded pages with Delete Pages, extract bulky pictures with Extract Images, or use native print-to-PDF drivers that leave TrueType font streams intact.
How do I get a PDF under 300 KB for UPSC?
Keep only the required pages, then use Compress PDF in Target Size mode with a value like 280 KB. Verify that the output remains above the 20 KB minimum threshold and that roll numbers and stamps remain legible.
Is it safe to compress an ID card or certificate online?
With TryDocsy, processing runs entirely inside your browser tab without transmitting file bytes to external servers. Delete downloaded copies from shared public computers after completing your submission.
Why is my phone-scanned PDF so large?
Phone camera scanner apps store each page as a high-resolution color JPEG. In our testing, a single 3840 × 2400 photo page exceeded 1 MB. Rescanning in grayscale at 150 DPI or compressing to a target size resolves the bloat.
Tools used in this guide
Sources
- UPSC One Time Registration: frequently asked questions (upload size and format rules) (read October 29, 2026)
- WhatsApp Help Center: sharing media and documents up to 2 GB (read October 29, 2026)
Spotted something out of date? Tell us through the contact page.

