How to Compress PDF Online Free β€” Step-by-Step Guide

Large PDFs get rejected by email servers, government portals, and job application forms. This guide shows you how to shrink a PDF directly in your browser using three compression presets β€” no upload, no signup, no watermark. Your file never leaves your device.

Last updated: By MyHandyToolLab
Note: This tool processes PDFs up to ~50 MB. Encrypted or password-protected PDFs must have their password removed before compression.

Why PDFs get large in the first place

A PDF is a container. The size of that container depends entirely on what is packed inside it. A simple two-page letter with nothing but Calibri text might be 40 KB. The same letter with a company letterhead image, an embedded signature scan, and a full-page colour chart can easily balloon past 5 MB. Understanding what adds weight helps you pick the right compression preset.

Source of bloatTypical impactWhy it happens
Scanned pagesEach page 200–800 KBScanners save each page as a high-resolution image (often 300 DPI TIFF or uncompressed PNG) and embed it as a full-page bitmap.
Embedded photographs1–10 MB per photoCameras produce 12–50 MP images. If inserted into a document at original resolution, they stay at that size inside the PDF.
Embedded fonts50–500 KB per fontWhen a PDF embeds a full TrueType or OpenType font file (not a subset), rarely used glyphs still take up space.
Multiple layers or annotationsVariesCAD exports, fillable forms, and review-tracked PDFs store extra layer data beyond what is visible on screen.
Uncompressed object streams10–30% overheadSome PDF generators write raw, uncompressed data streams. Rewriting them with Flate compression alone can trim 10–30%.

Digital-text PDFs (typed documents exported from Word, Google Docs, or LaTeX) are already compact because text is stored as vector outlines, not pixels. These files benefit least from compression β€” and that is expected, not a bug.

Step-by-step: compress a PDF in your browser

  1. 1.
    Open the Compress PDF tool. Go to the Compress PDF page. No account or login is needed.
  2. 2.
    Select or drop your PDF file. Click the upload area or drag your PDF file in. The tool accepts files up to approximately 50 MB. The file is read locally β€” nothing is sent to a server.
  3. 3.
    Choose a compression preset. Pick one of three options: "Smaller File" for the tightest compression, "Balanced" for everyday use, or "Higher Quality" when sharpness matters. See the comparison table below to decide.
  4. 4.
    Wait for processing. The tool renders each page in your browser, re-compresses image content, and reassembles the PDF. A progress indicator shows which page is being processed. On a modern laptop, a 20-page scanned document finishes in roughly 10–20 seconds.
  5. 5.
    Review the before/after sizes. The tool displays the original file size and the compressed file size side by side, along with the percentage saved.
  6. 6.
    Download the compressed PDF. Click the download button to save the smaller file to your device. Spot-check a few pages to make sure text and images are acceptable.
Quick test: Open your browser's DevTools (F12 β†’ Network tab) during compression. You will see zero upload requests β€” proof that your file stays on your device.

Preset comparison: Smaller File vs Balanced vs Higher Quality

Each preset controls how aggressively images on each page are re-sampled and re-compressed. Text on digital pages is preserved at full quality regardless of the preset you choose.

PresetImage qualityBest forExpected reduction (scanned docs)
Smaller FileLower resolution, higher JPEG compressionStrict upload limits (1–2 MB portals). Government forms where readability, not print quality, is the goal.70–85% smaller
BalancedMedium resolution, moderate JPEG compressionEmail attachments, general sharing, HR portals. Good balance of size and clarity.50–70% smaller
Higher QualityHigher resolution, lighter JPEG compressionArchitectural blueprints, certificate scans, fine charts, medical imaging reports.20–40% smaller
These reduction percentages apply to image-heavy and scanned PDFs. A text-only PDF (e.g., a LaTeX research paper) may shrink by less than 5% at any preset because there are no images to re-compress.

Worked examples with real numbers

Example 1 β€” Scanned government form (12 MB): You scanned a 15-page NADRA document package at 300 DPI. Each page is stored as a full-colour image averaging about 800 KB, making the entire PDF 12 MB. You need to upload it to a portal that caps file size at 2 MB.

  1. 1.
    Load the 12 MB scanned PDF. The tool reads all 15 pages locally.
  2. 2.
    Select "Smaller File" preset. This targets the tightest compression. Each page image is re-sampled to a lower resolution and re-encoded with higher JPEG compression.
  3. 3.
    Review the result. The output file is approximately 1.9 MB β€” an 84% reduction (12 MB Γ— 0.16 = 1.92 MB). The text on each page is still readable, though fine print in the margins is slightly softer.

Example 2 β€” Digital text PDF (500 KB): You exported a 20-page research paper from Google Docs. It contains no images β€” just text, headings, and a few tables. The file is 500 KB.

  1. 1.
    Load the 500 KB text PDF. The tool processes all 20 pages.
  2. 2.
    Select "Balanced" preset. Since there are no images to re-compress, the output size is about 480 KB β€” only a 4% reduction (20 KB saved). This is normal. Digital text PDFs are already efficiently encoded.
If you have a mixed document (some typed pages, some scanned pages), compression still works well β€” the scanned pages shrink significantly while the text pages stay crisp.

Common upload size limits (Pakistan and global)

Knowing the target limit before you compress saves trial and error. Here are the upload caps for portals frequently used in Pakistan and elsewhere:

Portal / ServiceMax file sizeNotes
Gmail / Outlook / Yahoo email attachment25 MBTotal across all attachments in one email. Rarely a problem for single PDFs.
PPSC (Punjab Public Service Commission)2 MBStrict limit on scanned documents for job applications. Use "Smaller File" preset. (Last verified: Nov 2026)
FPSC (Federal Public Service Commission)5 MBApplies to CSS exam document uploads. "Balanced" usually works. (Last verified: Nov 2026)
NTS (National Testing Service)2 MBFor form/document uploads during registration. (Last verified: Nov 2026)
HEC (Higher Education Commission) portal5 MBScholarship and degree verification submissions. (Last verified: Nov 2026)
NADRA (for NICOP/passport applications)2 MB per documentIndividual document uploads. Scanned ID cards and birth certificates often exceed this. (Last verified: Nov 2026)
WhatsApp document sharing2 GBGenerous limit. Compression is still useful to save mobile data.
Portal limits change without notice. If your upload is rejected, check the portal's help page for the current cap, then compress to a size safely below it β€” aim for 80% of the stated limit to account for overhead added during upload encoding.

How browser-based PDF compression works

The tool uses a hybrid approach running entirely in your browser via JavaScript and HTML5 Canvas:

  • Each page of the PDF is rendered onto an HTML5 Canvas element at a resolution determined by the preset (lower for "Smaller File", higher for "Higher Quality").
  • For image-heavy or scanned pages, the rendered canvas is re-encoded as a compressed JPEG. This is where most of the size savings come from β€” replacing an uncompressed 300 DPI scan with a well-tuned JPEG at a suitable resolution.
  • For pages with selectable digital text, the text layer is preserved so you can still copy and search text in the compressed file.
  • All processed pages are reassembled into a new PDF using a client-side PDF library, and the result is offered as a download.
  • No data is sent over the network. You can verify by going offline after the page loads β€” the tool still works.

Because the browser does the heavy lifting, the speed depends on your device. A desktop with 8+ GB RAM handles a 30-page scanned PDF in under 20 seconds. A mid-range phone might take 40–60 seconds for the same file.

Troubleshooting

ProblemLikely causeFix
Text-only PDF barely shrank in sizeDigital text PDFs are already compact β€” no bulky images to re-compressThis is expected. If you need a smaller file, check whether the PDF has embedded full fonts; re-exporting from the source app with font subsetting enabled can help.
Tool says file is password-protectedThe PDF has an owner or user password setRemove the password in your PDF reader (Adobe Acrobat: File β†’ Properties β†’ Security β†’ No Security) and try again.
Compression is very slow or browser freezes on mobileThe device has limited RAM and the PDF is large or has many pagesClose other browser tabs to free memory. If the file is 30+ pages, try compressing on a desktop/laptop instead.
Images look blurry after compressionYou used "Smaller File" preset on a document with fine detailsRe-compress with "Balanced" or "Higher Quality" preset. Only use "Smaller File" when the upload portal demands it.
The compressed file is larger than the originalThe original was already heavily optimized, and re-encoding added overheadThis is rare but possible with very small, already-optimized PDFs. Stick with the original if this happens.
Text is no longer selectable after compressionThe page was a scanned image (not digital text). Scanned pages are treated as images during compression.This is a limitation. To get selectable text from scans, you would need OCR (optical character recognition), which is a separate process.
Progress bar stalls partway throughA single page has an unusually large or corrupt embedded imageTry refreshing the page and running compression again. If it stalls at the same page, that page may have a corrupt image layer.
File fails to load with an errorThe file is not a valid PDF, or it is a DRM-protected eBookMake sure the file has a .pdf extension and is a standard PDF. DRM-protected files (e.g., from Kindle or Adobe Digital Editions) cannot be processed.

Tips for Pakistani government portal uploads

If you are applying for government jobs through PPSC, FPSC, or NTS, or submitting documents to NADRA or HEC, here are practical tips to avoid rejected uploads:

  • Scan your CNIC, domicile, or degree at 200 DPI instead of 300 DPI. This cuts the raw scan size nearly in half with minimal quality loss at screen resolution.
  • If you scan multiple documents into a single PDF using a phone scanner app (CamScanner, Adobe Scan, Microsoft Lens), the combined file often exceeds 5 MB. Run it through Compress PDF with the "Smaller File" preset before uploading.
  • PPSC forms typically require individual document PDFs under 2 MB. Compress each document separately rather than merging them first.
  • For FPSC CSS applications, "Balanced" usually brings a 6–8 MB scanned packet well within the 5 MB limit.
  • Always open the compressed PDF on your phone or laptop before uploading to verify that CNIC numbers, dates, and signatures are still clearly legible.
Workflow: Scan β†’ Compress individual documents with this tool β†’ Upload to portal. If you need to merge multiple compressed files into one, use the Merge PDF tool after compression.

Your files stay private

  • The PDF is read from your device into browser memory using the File API. No data leaves your device.
  • All rendering, image compression, and PDF reassembly happen in JavaScript within your browser tab.
  • No network request carries your file data. Verify this by opening the Network tab in DevTools (F12) β€” zero upload requests.
  • When you close or refresh the tab, the file data is released from memory. Nothing is cached or stored.

Ready to try it?

Open the Compress PDF and follow the steps above.

Open tool

Related tools and guides

Frequently asked questions

Is my PDF uploaded to a server during compression?

No. The entire compression process runs in your browser using JavaScript and HTML5 Canvas. Your file stays on your device and is never transmitted to any server.

Why did my text-only PDF barely change in size?

Digital text PDFs store content as compact vector outlines, not images. There is very little to compress. The biggest size reductions happen on scanned documents, PDFs with embedded photos, and image-heavy reports.

Will text still be selectable after compression?

Yes, on pages that originally had digital (selectable) text. For scanned pages β€” which are full-page images β€” the image is re-compressed for size, but there is no text layer to preserve since there was none to begin with.

Which preset should I use for a PPSC or FPSC upload?

For PPSC (2 MB limit), start with "Smaller File". For FPSC (5 MB limit), "Balanced" is usually sufficient. Always verify the result is legible before uploading.

Can I compress a password-protected PDF?

No. You must remove the password first. In Adobe Acrobat, go to File β†’ Properties β†’ Security and set the security method to "No Security". Then save and compress.

What is the maximum file size the tool can handle?

The tool accepts PDFs up to approximately 50 MB. For very large files (30+ pages of scanned content), processing may take longer on mobile devices. Using a desktop browser with at least 4 GB of free RAM is recommended for files above 20 MB.