Reduce PDF size
Type the size you need and get the sharpest PDF that still fits under it. The file never leaves this device.
https://flxcode.com/reduce-pdf-size/
or drop a PDF here
Up to 200 MB. Password-protected PDFs can't be opened. The file stays on your device.
Tries Light, then Medium, then Strong, and stops at the first one that fits.
Your PDF never leaves this device. There is no upload, no account and no watermark. How we count
Problem or idea? Email us
How to use it
- Choose a PDF, or drop it on the box.
- Type the size it must stay under, for example 2 MB or 500 KB.
- Press Compress PDF. The tool tries Light, then Medium, then Strong, and keeps the first result under your size.
Worked example: a 10-page scan, 50 MB, target 5 MB
The target mode tries the settings in order, Light then Medium then Strong, and stops at the first result that fits. This is the pixel arithmetic for 10 pages scanned at 300 dpi, 5 MB a page.
| Step | Pixels per page | Pixels versus the scan | Ends here? |
|---|---|---|---|
| Light (200 dpi) | 3.9 MP | 44% | Only if the result is already under the target |
| Medium (144 dpi) | 2.0 MP | 23% | Only if the result is already under the target |
| Strong (96 dpi) | 0.9 MP | 10% | Last try. The smallest this tool makes |
Pixel share is a guide, not the file size: photos of paper compress better than noisy photos. If even Strong is over the target, the page says so and gives you the smallest file it made.
Worked example: what each page can weigh
A size limit is shared by all pages. Divide it by the page count and you see how much one page may weigh. A scanned page at 300 dpi is often 2 to 5 MB, so most of these budgets need a big cut.
| Limit | 5 pages | 10 pages | 20 pages |
|---|---|---|---|
| 2 MB (2,097,152 bytes) | 410 KB | 205 KB | 102 KB |
| 5 MB (5,242,880 bytes) | 1024 KB | 512 KB | 256 KB |
| 10 MB (10,485,760 bytes) | 2048 KB | 1024 KB | 512 KB |
A page at 96 dpi and quality 55 is often 100 to 200 KB, so the 20-page column at 2 MB (102 KB a page) is tight for a photo scan and easy for a page that is mostly white.
Numbers this uses
- Settings: Light 200 dpi at JPEG quality 85, Medium 144 dpi at 72, Strong 96 dpi at 55. These are this tool's own choices, not a standard.
- Pictures smaller than 20 KB are left alone. A new picture is only used if it is at least 5% smaller than the old one.
- If the place of a picture on the page can't be worked out, it is treated as spanning 842 pt (11.7 in, the long side of A4) on its long side.
- The result is saved with object streams, which packs the file structure tighter. If the final file is not smaller than the one you gave, you get your original back.
- 1 MB here is 1,048,576 bytes and 1 KB is 1,024 bytes, the way most file managers count.
- Upload forms often count in 1,000s. If a form says 2 MB, aim a little lower, for example 1.9.
How the target works
The tool runs the three settings in order, from the one that keeps the most detail to the one that keeps the least. After each run it compares the new file size with your target. It stops at the first one that fits, so you get the sharpest file that is still small enough.
It does not try to hit the target exactly, and it can't go below what Strong gives. If Strong is still too big, the page says so and hands you that smallest file. Then the fix is outside this tool: fewer pages, or a PDF with fewer pictures.
What happens to your file
The PDF is read from disk by your browser. A JavaScript library (pdf-lib, MIT licence) finds the pictures in it, and your browser's own image code (the canvas) shrinks them and saves them as JPEG. The new PDF is built in memory and handed to you as a download.
The page sends no request with your file or its name. The only requests after you pick a file are anonymous usage counts with words like "compress" and "smaller", never a name or a size.
Counts of events such as "compress" or "download" are kept without cookies, and never a file name or size (details). The PDF code is pdf-lib, MIT licence: open source used on this site.
When the target can't be reached
- A PDF of text has almost nothing to shrink. If a 3 MB text PDF has to be 1 MB, the weight is in embedded fonts or something this tool does not touch.
- A file with many pages of big pictures can still be over at Strong. Delete pages you do not need, or split the PDF into two files.
- Check the result at the zoom you will use. Strong looks soft when printed.
- To choose the setting yourself instead, use compress PDF.
FAQ
How do I reduce a PDF to under 1 MB?
Choose the file, type 1 in the size box with MB selected, and press Compress PDF. If the file is mostly scans or photos, it will usually get there at Medium or Strong. If it is mostly text, it may not.
How do I reduce a PDF to 200 KB or 500 KB?
Pick KB in the unit box and type 200 or 500. Those sizes are hard for a PDF with many pages of pictures. A single scanned page often fits. A 20-page scan needs fewer pages.
Why did it stop above my target?
The Strong setting is the smallest this tool makes: 96 pixels per inch at JPEG quality 55. If the file is still over, the page tells you and gives you the smallest file it made.
Does it make the file exactly the target size?
No. It gives the first of three settings that lands under it, so the file is often well below the target. Detail is kept as high as the target allows within those three steps.
What is the size limit for email attachments?
It differs by provider. Gmail allows 25 MB for the attachments of one message. A lot of company mail servers allow 10 or 20 MB, and many web forms allow 2 to 5 MB. Check the number your recipient gives you.
Is my PDF uploaded?
No. The file is read by your browser, shrunk in this tab and handed back as a download. There is no server step. To check it, open the page, wait a second, choose a file, then switch to airplane mode and compress. It still works.
Does reducing size change the number of pages?
No. The pages, text and layout stay the same. Only the pictures are shrunk.
Is a smaller PDF worse to read?
Pictures get less detailed. On screen it is usually fine. Small print in a Strong scan can look soft, so zoom in on a page of the result before you send it.
More from FLXCode
Compress PDFNew
Make a PDF smaller by shrinking its photos and scans. Runs in your browser, nothing is uploaded.
PDF compressorNew
A PDF compressor that runs in your browser. Strong setting first for the smallest file. Nothing is uploaded.
Delete Pages from PDFNew
Remove pages from a PDF, reorder the rest and save a new file. Runs in your browser, nothing is uploaded.
Merge PDFNew
Combine PDF files into one, in the order you choose. It runs in your browser and nothing is uploaded.