100% Local · pdf-lib

PDF Compressor — Hit Any KB Target

Shrink any PDF below a target file size for government portal uploads. Re-encodes embedded JPG images at lower quality — preserves text, layout and structure. All processing happens inside your browser.

100 KBMin target
0 KBUpload
pdf-libLibrary

1. Upload PDF

2. Compression target

The PDF size guide

How to Compress Any PDF Below 100 KB / 500 KB — Without Uploading It Anywhere

Government portals in India love arbitrary file size limits. PM Kisan: under 1 MB. MahaDBT: under 500 KB. CSC Aadhaar verification: under 100 KB. The same PDF that opens fine on your laptop gets silently rejected on the portal with a generic “file too large” error. This compressor solves that — entirely inside your browser using pdf-lib.

1. How the compression works

PDF files are mostly made of embedded JPG images plus text streams. Our tool walks the PDF tree, extracts each JPG, re-encodes it at progressively lower quality until the total file size falls under your target. Text, vector graphics, fonts and metadata are preserved exactly — only raster images get re-compressed.

If the source PDF has no embedded JPG (pure-text PDF), there’s nothing to compress — we’ll show a notice and skip.

2. Workflow

  1. Drop the PDF onto the upload card. The tool reads it locally.
  2. Pick a preset target (100 KB, 500 KB, 1 MB) or enter a custom KB value.
  3. Choose a quality lower bound. Aggressive goes down to 0.40 JPEG quality (smaller but visible loss). Balanced stops at 0.55 (recommended). Gentle stops at 0.70 (largest output).
  4. Click Compress & Download. The output appears in your Downloads folder.

3. Common portal targets

Portal / Use caseTarget
UIDAI Aadhaar verification< 100 KB
MahaDBT scholarship< 500 KB
PM Kisan documents< 1 MB
Aaple Sarkar / e-District< 500 KB
Bank KYC re-submission< 2 MB
College admission portals< 500 KB
RTO Sarathi / Vahan< 1 MB
Court e-filing< 10 MB

4. Operator stories

Suresh bhai in Aurangabad: PMAY housing scheme application week, 12 customers needed documents under 1 MB each. Old way: re-scan each at lower resolution, re-stitch via JPG to PDF. New way: drop, pick preset, download. 8 seconds per file. ₹100 per family = ₹1,200 in 90 minutes.

Pratiksha tai in Solapur: Aadhaar PDF for CSC fingerprint match needs under 100 KB. Customers consistently bring 3–5 MB PDFs from various scanners. Drop, “Aadhaar PDF” preset, done. 6–8 jobs daily, ₹15 each.

5. Privacy & limits

100% browser-local. The PDF never leaves your device. We don’t see your file, your data, or your customer’s information. Tested up to 50 MB source PDFs on mid-range laptops.

6. 15+ FAQs

Can I compress to exactly 99 KB?

Yes — set Custom KB to 99 and pick Aggressive lower bound. The tool will get within ±5 KB.

What if the PDF has only text?

No images to recompress — tool will notify “already minimal”.

Are encrypted PDFs supported?

No — decrypt first.

Will it preserve form fields?

Yes, pdf-lib preserves form structures.

Bookmarks preserved?

Yes.

Signature in PDF preserved?

Visual signature yes; digital signature may break.

Max source size?

50 MB tested.

Output PDF version?

PDF 1.7 by default.

Will it work offline?

Yes, after first load.

HEIC images inside PDF?

Auto-decoded to JPG then recompressed.

Free for commercial use?

Yes.

OCR layer preserved?

Yes, text remains searchable.

What if target can’t be reached?

Tool stops at lower-bound quality and shows actual size achieved.

Does it batch multiple PDFs?

One at a time currently. Bulk on roadmap.

Marathi UI?

Coming Q1 2026.

Compress PDF to exact KB targets for any Indian government portal. No upload. No watermark. Always free.

— Team Ganraj E-Service