How to Compress PDF Files Online Free
A bloated PDF file causes problems at every stage of a workflow. Email servers reject attachments over 10 MB, file-sharing platforms throttle large uploads, and storage costs add up when your archive is full of oversized documents. The solution is PDF compression — and with NaughtyPDF, you can compress PDF files online free without uploading anything to a server.
What Is PDF Compression?
PDF compression reduces the file size of a PDF document by re-encoding the images it contains at a lower resolution or higher compression ratio. Most of the data in a typical PDF lives in its embedded images — scanned pages, photos, charts, and diagrams. Text and vector graphics are already compact; it's the raster images that bulk up the file.
There are two main types of PDF compression: lossless and lossy. Lossless compression reorganises data without discarding any information, yielding modest file size reductions. Lossy compression — the type NaughtyPDF uses — re-samples images at a lower resolution and applies JPEG compression. The result is significantly smaller files, with a visual quality trade-off that is invisible at screen resolution and acceptable for most print applications.
Understanding the Three Quality Settings
Screen (72 dpi)
The Screen setting applies the most aggressive compression. Images are re-rendered at 72 dots per inch — the resolution of a typical computer monitor. Files compressed at this setting will look crisp when viewed on screen but will appear blurry if printed at large sizes. This setting can reduce a scanned PDF from 15 MB down to under 1 MB. Ideal for PDFs that will only ever be read on a screen: web uploads, email attachments, document previews.
Ebook (150 dpi)
The Ebook setting strikes a balance between file size and quality. At 150 dpi, images are sharp enough for reading on a high-resolution tablet or e-reader and acceptable for small-format printing. This is the sweet spot for most everyday documents: reports, presentations, proposals, and articles. The file size reduction compared to Screen is less dramatic, but quality is noticeably better.
Print (300 dpi)
The Print setting preserves the most image data. At 300 dpi, images will look sharp when printed on a standard laser printer or sent to a print service. This setting applies lighter JPEG compression and produces the largest of the three output sizes, but still achieves meaningful file size savings compared to uncompressed originals — particularly for PDFs exported from design tools with unoptimised embedded images.
Common Use Cases for PDF Compression
- Email: Most corporate email servers have a 10 MB or 25 MB attachment limit. Compressing a scanned document before sending is one of the most common reasons people use PDF compression tools.
- Web upload: Content management systems, HR portals, and tender submission platforms often cap uploaded file sizes at 5 MB or less. Compression gets your document under the limit.
- Cloud storage: If you're storing thousands of archived PDFs in Google Drive, Dropbox, or OneDrive, compressing them can cut your storage bill significantly.
- Mobile sharing: Sending a PDF via WhatsApp, Telegram, or a messaging app is much faster when the file is under 1 MB.
- Website publishing: PDFs embedded or linked from web pages load faster for visitors when compressed — improving Core Web Vitals and user experience.
- Legal submissions: Court filing systems and online portals frequently impose strict file size limits. Compressing to the required specification avoids rejected submissions.
How NaughtyPDF Compresses PDFs in the Browser
NaughtyPDF uses a canvas-based rendering approach. Each page of your PDF is drawn onto an off-screen HTML canvas element at the target resolution. The canvas is then exported as a JPEG image at the selected quality level. Finally, the compressed JPEG images are assembled back into a new PDF document using the pdf-lib library. The entire process runs in your browser — no files are sent anywhere.
This approach works best for PDFs that are primarily image-based (scanned documents, exported slide decks, photo portfolios). For text-heavy PDFs with few images, the compression may be less dramatic, since text and vector graphics are already stored efficiently.
Frequently Asked Questions
Will compression damage my PDF?
Your original file is never modified. NaughtyPDF creates a new compressed copy; your source document remains unchanged on your device. If you're unhappy with the result, simply try a higher quality setting.
How much can NaughtyPDF reduce my file size?
Results vary widely depending on the content of the PDF. A scanned document at Screen quality can shrink by 85–95%. A text-only PDF with no images might shrink by only 10–20%. The tool shows you the before and after file sizes so you can judge the result.
Does compression affect text readability?
No — at all three quality settings, text rendered as vector data (not scanned) remains perfectly sharp. Only raster images (photos, scans) are re-compressed. If your PDF consists entirely of typed text, you will see no quality difference at any setting.