DEV Community

Sumit Kumar
Sumit Kumar

Posted on

How to Compress a PDF to Fit Email and Upload Limits

I'm Sumit Kumar, founder of TooliFyra. The most common message I get from people using our tools is some version of: "The portal says my PDF is too large." Scanned documents, photo-heavy brochures and exported presentations can easily reach 10 or 20 MB, while government forms, job portals and email servers often accept far less. Here's how to shrink a PDF sensibly, and what trade-offs to expect.

Why PDFs get so big

A PDF is usually large for one reason: images. A scan from a phone camera or a flatbed scanner stores each page as a high-resolution picture. Ten pages at 3 MB each is already 30 MB. Text-only PDFs, in contrast, are often only a few hundred kilobytes.

Knowing this tells you what compression has to do: reduce the quality or resolution of the page images until the file is smaller.

Step-by-step compression

  1. Open the PDF Compressor.
  2. Upload your PDF by clicking the box or dragging the file in.
  3. Pick a compression level:
    • Recommended gives a good balance of quality and size.
    • Extreme gives the smallest file with visibly lower quality.
    • Low keeps high quality with a larger file.
  4. Click Compress PDF and check the Original, Compressed and Saved figures.
  5. Download the result and open it to confirm the pages are still readable.

The tool processes files locally in your browser, so private documents are not uploaded to a server. Note that it uses page rasterization to force the size down, which means pages become images. That is effective for size, but text in the compressed file may no longer be selectable.

Choosing the right level

Start with Recommended. Open the output, zoom to 100% and check small print such as stamps, signatures and fine table text. If everything is legible and the file is under the limit, you're done.

If it's still too big, try Extreme, but check legibility again. If the receiving portal needs to read your document, a smaller file that nobody can read is worse than a slightly larger readable one.

Practical tips

Remove unneeded pages first. If your file has blank or irrelevant pages, extract only what you need with the PDF splitter before compressing. Fewer pages means a smaller file with no quality loss.

Scan at a sensible resolution. For text documents, 150 to 200 DPI is generally readable. Scanning at 600 DPI creates huge files with little visible benefit.

Use black-and-white for text pages. If colour isn't needed, a grayscale scan is far smaller.

Keep an original copy. Rasterized compression is not reversible. Always keep the uncompressed version.

Compress once. Repeatedly compressing the same file degrades it further. If the first attempt is not enough, go back to the original and choose a stronger level.

Check the limit precisely. Some portals count in KB, with 1 MB being 1024 KB. Aim for a margin, such as 900 KB for a 1 MB limit.

When compression won't help much

A PDF that is already mostly text, or already compressed, may shrink only a little. In that case, the realistic options are splitting the document into parts, removing pages, or reducing image sizes at the source.

FAQ

Is this PDF compressor free?
Yes, with no signup.

Will my document be uploaded?
No. Processing happens on your own device.

Will text still be searchable afterwards?
Not necessarily. Because the tool rasterizes pages, treat the output as an image-based PDF.

What is the best setting for email?
Try Recommended first. Most email providers allow attachments of around 20 to 25 MB, so you often need less compression than you think.

Can I compress several PDFs at once?
The tool handles one file at a time. For several files, merge them first with a PDF merger if you want one combined file, then compress it.

Wrapping up

Good compression is about finding the smallest file that is still comfortable to read. If you want to try more of the free utilities I've built, you can browse them all at toolifyra.com.

— Sumit Kumar, Founder, TooliFyra

Top comments (0)