How to compress a PDF to a target size
- Add your PDF. Press Choose a PDF or drop the file on the box. It is read on your device and never uploaded.
- Set the limit. Tap a preset (100 KB, 200 KB, 500 KB, 1 MB) or type your own number and unit. PdfSize aims a little under it.
- Pick Keep text or Smallest. Start with Keep text. If it cannot reach the limit the result card says so and offers Smallest.
- Compress. Press Compress PDF. A progress bar shows each step, and Stop cancels it.
- Check and download. Look at the page 1 preview, read the byte count against your limit, then download.
What PdfSize does, and what it does not
PdfSize takes a PDF and a size, for example "under 200 KB", and tries settings from the best quality downwards until the file fits. It does that in your browser, so the document, which may be a CNIC copy, a degree or a bank statement, is not sent to a server. It does not edit text, remove passwords or run OCR.
Keep text or Smallest: which should you choose?
| Keep text | Smallest | |
|---|---|---|
| How it works | Re-encodes the JPEG pictures inside the PDF, removes metadata, saves compactly | Draws every page to an image and builds a new PDF of JPEG pages |
| Text afterwards | Still selectable and searchable | A picture: not selectable, not searchable |
| Links, forms, bookmarks | Kept | Lost |
| Best for | Phone scans, photo-heavy PDFs | Tight limits on many-page scans |
| Weak spot | Little to gain on text-only PDFs; only handles JPEG pictures | Output is always pictures |
What to expect: real test results
These are real runs of the code on this site, in desktop Chrome, on sample files we generated ourselves: a "phone scan" is a page drawn at 200 DPI with paper tone, uneven light, text lines and sensor noise, saved as a JPEG at quality 90 inside a PDF. Real scans vary: smoother pages compress better, noisier or very detailed pages worse. Treat the table as an example, not a promise. "Picture sharpness" is the approximate resolution of the pictures after compression (the samples start at 200 DPI); about 150 is crisp, about 100 is readable for normal print, below about 80 small text gets hard to read. The method is in Sources and tests.
| Test file | Original | Limit asked | Method | Result | Picture sharpness | Under the limit? | Time |
|---|---|---|---|---|---|---|---|
| 6-page phone scan | 9.49 MB | 500 KB | Keep text | 493 KB | ~80 DPI | Yes | 1.4 s |
| 6-page phone scan | 9.49 MB | 200 KB | Keep text | 146 KB | ~50 DPI | Yes | 1.3 s |
| 6-page phone scan | 9.49 MB | 100 KB | Keep text | 90 KB | ~40 DPI | Yes | 1.3 s |
| 6-page phone scan | 9.49 MB | 1.00 MB | Keep text | 856 KB | ~100 DPI | Yes | 1.9 s |
| 6-page phone scan | 9.49 MB | 500 KB | Smallest | 383 KB | ~72 DPI | Yes | 10.4 s |
| 6-page phone scan | 9.49 MB | 200 KB | Smallest | 152 KB | ~50 DPI | Yes | 10.9 s |
| 6-page phone scan | 9.49 MB | 100 KB | Smallest | 109 KB | ~42 DPI | No: closest it got | 4.8 s |
| 6-page phone scan | 9.49 MB | 100 KB | Smallest + grayscale | 109 KB | ~42 DPI | No: closest it got | 5.4 s |
| 2-page phone scan | 3.16 MB | 200 KB | Keep text | 165 KB | ~80 DPI | Yes | 0.8 s |
| Cover letter + 2 scans | 3.17 MB | 500 KB | Keep text | 437 KB | ~120 DPI | Yes | 0.8 s |
| Cover letter + 2 scans | 3.17 MB | 500 KB | Smallest | 432 KB | ~100 DPI | Yes | 3.8 s |
| 30-page text document | 48 KB | 20 KB | Keep text | 48 KB | unchanged | No: closest it got | 0.1 s |
| 30-page text document | 48 KB | 200 KB | Keep text | 48 KB | unchanged | Yes | 0.1 s |
What the table shows. Phone scans shrink a lot because they are large JPEG pictures. The text-only document barely changes because there are no pictures to shrink: the tool says so and returns a file no larger than the original. Where a limit was too tight for the method, the result row says "No" and shows the closest size reached instead of pretending.
Get under the limit without wrecking the page
- Remove pages you do not need. Fewer pages is the biggest saving. ToolGhar can delete pages.
- Tick grayscale for black-on-white documents.
- Compress once. Merge first, then compress the merged file. Repeated rounds blur text.
- Judge the preview at full size. If you can read the smallest line, so can the reviewer.
- Keep the original. Compression is one-way.
Real limits and how we handle them
- Encrypted PDFs are refused with a plain message.
- Only JPEG pictures are recompressed in Keep text. Other picture types are left as they are and counted in the result.
- Memory. Large files are processed one page at a time, but a browser tab still has limits: 100 MB and 300 pages (40 MB on low-memory devices).
- Never bigger. If a result would be larger than your file, you get the original back and a message.
What about FPSC, PPSC, NTS or visa size limits?
Portals change their limits between advertisements, and we could not verify any current rule from an official source we are allowed to quote, so PdfSize does not list them. Read the instructions of your own application, type the limit into the tool and aim a little under it. Not affiliated with any of these bodies.
Frequently asked questions
Is my PDF uploaded when I use PdfSize?
No. The file is read and compressed inside your browser tab with JavaScript. There is no upload endpoint, and the site's security policy only allows connections to its own server and to the DanixSoft page-view counter. Open your browser's network tab while compressing to see for yourself.
Can any PDF be compressed to any size?
No, and no tool honestly can. A PDF that is mostly text may already be small, and Keep text can only shrink the pictures in it. A 30-page text document of about 48 KB stayed at that size in our test. Very small limits on many-page colour scans may only be met by the Smallest method, and sometimes not at all. PdfSize shows the closest size it reached.
What is the difference between Keep text and Smallest?
Keep text recompresses the pictures inside the PDF and leaves text, fonts and links alone. Smallest redraws every page as a picture, which reaches smaller sizes but makes text impossible to select or search and drops links and form fields.
Will the quality get worse?
Pictures are re-encoded as JPEG at a lower quality or resolution, so they become softer. PdfSize tries the best quality first and only goes lower until the file fits your limit, and it shows a preview of page 1 so you can check readability.
How large a file can I use?
Up to 100 MB and 300 pages on a normal phone or computer. On a device that reports 2 GB of memory or less the limit is 40 MB. Bigger jobs may run out of memory in a browser tab; split the PDF first.
Does it work for password-protected PDFs?
No. Remove the password in the app that created the file, then try again. PdfSize does not crack passwords.
Sources and how we checked
- Method and tests: how the sample files were made and the numbers produced
- pdf.js (Mozilla, Apache-2.0): renders pages in Smallest mode
- pdf-lib (MIT): reads and writes the PDF structure