Skip to content
Back to Blog
device-usecase-privacy

How to Compress a PDF Without Losing Quality

2026-05-17 9 min read

Why PDFs Get So Large in the First Place

Before you can compress a PDF intelligently, you need to understand what is actually making it heavy. A 50 MB PDF that contains nothing but text and a few charts is almost always bloated for one of three reasons: embedded fonts that were not subsetted, images that were saved at print resolution (300 DPI or higher) when the file is only ever viewed on screen, or metadata and embedded color profiles that ballooned during export from design software like Adobe InDesign or Illustrator. Images are by far the biggest culprit. A single full-page photograph exported at 300 DPI from InDesign can weigh 8–12 MB on its own. Multiply that across a 40-page product catalog and you are looking at files that strain email servers and make download links feel broken. Fonts are a secondary issue — embedding an entire typeface family instead of subsetting it to only the characters actually used in the document can add 2–5 MB per font. There is also a less obvious cause: incremental saves. Every time you edit and re-save a PDF without 'flattening' it, the file appends new data rather than overwriting old data. A document that has been revised 20 times can carry 15 versions of deleted content that you cannot see but that still occupy disk space. Understanding which of these problems applies to your file determines which compression strategy will actually work — and which ones will just degrade your images for no meaningful size reduction.

The Difference Between Lossy and Lossless PDF Compression

Compression tools generally fall into two camps, and conflating them is the main reason people end up with blurry PDFs they cannot use. Lossless compression reorganizes data more efficiently without discarding any of it. Techniques like Flate (ZIP) compression re-encode text streams and vector graphics so they take up less space, but when you decompress the file, every pixel and every character is identical to the original. For text-heavy documents — contracts, reports, academic papers — lossless compression alone can reduce file size by 20–40% with zero perceptible change. Lossy compression, by contrast, permanently removes data. JPEG compression on embedded images is the most common form. At a quality setting of 80 out of 100, most people cannot distinguish the result from the original on a screen. At 60, artifacts start appearing around high-contrast edges. At 40 or below, the degradation is obvious — text in image-heavy slides looks soft, product photos show color banding, and fine diagrams become unreadable. The practical takeaway: if your PDF is primarily text and vector graphics, target lossless methods first. If it contains raster images (photographs, screenshots, scanned pages), you have room to apply moderate JPEG compression — typically 75–85 quality — without visible loss at normal viewing sizes. Where people go wrong is applying aggressive lossy compression to documents that were already efficiently encoded, ending up with worse-looking files that are only marginally smaller. A good compression tool shows you a before/after file size preview before you commit, which is exactly what CocoConvert does before you download your result.

Step-by-Step: Compressing a PDF with CocoConvert

CocoConvert's PDF compressor is built around a simple upload-and-process workflow, but there are a few choices worth making deliberately rather than accepting defaults. First, navigate to the PDF Compress tool at cococonvert.com/compress-pdf. Drag your file into the upload area or click to browse — the tool accepts files up to 200 MB. Once uploaded, you will see a compression level selector with three presets: Low Compression (lossless, preserves all image quality), Medium Compression (JPEG quality ~80, recommended for most use cases), and High Compression (JPEG quality ~60, for files that need to be emailed or uploaded to platforms with strict size caps like 5 MB). For a standard business report with embedded charts and a few photos, select Medium Compression. CocoConvert will process the file server-side and display the original size versus the compressed size before you download — for example, a 22 MB annual report will typically come back at 6–9 MB at medium setting with no visible difference when viewed at 100% zoom on screen. If you are compressing a scanned document — say, a signed contract that was photocopied and scanned as a series of JPEG images — High Compression is often acceptable because scan quality is already limited by the scanner's sensor. A 15 MB scanned contract can frequently be reduced to under 2 MB this way, which is well within the attachment limits of most email clients (Gmail's 25 MB cap, Outlook's 20 MB default). One important note: CocoConvert processes your file on secure servers and deletes it automatically after one hour. No account is required, and files are transferred over HTTPS. For documents containing sensitive information — NDAs, medical records, financial statements — this matters. We will cover privacy considerations in more depth in a later section.

When You Need More Control: Desktop Tools and Their Settings

CocoConvert handles the majority of compression tasks well, but it is honest to acknowledge where it has limits. If you need granular control — compressing images to a specific DPI, selectively compressing only certain pages, or stripping specific metadata fields while preserving others — desktop software gives you more levers to pull. Adobe Acrobat Pro's PDF Optimizer (File > Save As Other > Optimized PDF) is the most comprehensive option. Under the Images tab, you can set downsampling independently for color, grayscale, and monochrome images. A common professional setting is to downsample color images to 150 DPI for files intended for screen viewing, while keeping monochrome images (line art, signatures) at 300 DPI to prevent jagged edges. Under the Fonts tab, you can unembed fonts that are not needed for rendering — though be cautious here, as unembedding fonts can cause display issues on systems that do not have those fonts installed. Ghostscript is a free, command-line alternative that produces excellent results if you are comfortable with terminal commands. The command `gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -o output.pdf input.pdf` applies the 'ebook' preset, which targets 150 DPI image resolution and is equivalent to CocoConvert's Medium setting. The `/screen` preset targets 72 DPI and is appropriate only for files that will never be printed. The `/printer` preset preserves 300 DPI and produces minimal size reduction. For Mac users, Preview's Export as PDF function with Quartz Filter 'Reduce File Size' is convenient but notoriously aggressive — it can reduce a 10 MB file to 500 KB by crushing images to near-unusable quality. It is rarely the right tool for anything you want to look professional.

Preserving Specific Elements: Fonts, Vector Graphics, and Annotations

Compression becomes more nuanced when your PDF contains elements beyond standard body text and photographs. Fonts, vector graphics, and interactive annotations each behave differently under compression. Fonts: Subsetting — including only the characters actually used in the document — is almost always safe and can save 1–3 MB per embedded typeface. Full font embedding is only necessary if the recipient needs to edit the document and you want to guarantee they can do so without font substitution. If your PDF is final (read-only), subset it. CocoConvert does this automatically during compression. Vector graphics: Logos, charts, and illustrations created in Illustrator or similar tools are stored as mathematical paths in a PDF, not as pixels. They are already resolution-independent and compress very efficiently with lossless methods. Applying JPEG compression to a PDF page that contains only vector content is counterproductive — it rasterizes the vectors into a bitmap, permanently degrading the crispness of lines and text at no meaningful size benefit. CocoConvert's compression engine detects page content type and avoids rasterizing vector-only pages, but if you are using a generic tool, check whether it is doing this. Annotations and form fields: Flattening annotations (merging them permanently into the page content) before compressing can reduce file size by 5–15% in heavily annotated review documents. In Acrobat, this is done via Tools > Print Production > Flattener Preview > Apply. Be aware that flattening is irreversible — form fields become static text, and highlight annotations can no longer be removed. Do this only on copies, never on your working file. Bookmarks and hyperlinks: These are stored as lightweight metadata and contribute negligibly to file size. There is no benefit to removing them for compression purposes, and doing so degrades usability.

Privacy Considerations When Compressing PDFs Online

Uploading a document to any online service involves a trust decision, and it is worth being clear-eyed about what that means for sensitive files. CocoConvert uses TLS 1.2 or higher for all file transfers, which means your document is encrypted in transit. Files are processed in isolated server environments and are not stored beyond the one-hour automatic deletion window. There are no user accounts, which means CocoConvert does not build a profile of your documents over time. These are meaningful protections, but they are not equivalent to processing a file entirely on your own machine. For documents that are genuinely sensitive — legal discovery files, patient health information covered by HIPAA, financial records subject to SOC 2 audit requirements — the safest approach is to use a local tool like Ghostscript, Adobe Acrobat, or PDF Expert (on Mac), where the file never leaves your device. This is not a limitation unique to CocoConvert; it applies to any browser-based file tool. There is a middle ground worth knowing about: if you must use an online tool for a sensitive file, consider first removing or redacting the sensitive data, compressing the sanitized version, and then re-adding the necessary content in a controlled environment. This is cumbersome but sometimes the right call for compliance-sensitive workflows. For the vast majority of use cases — compressing a product brochure, shrinking a presentation to email, reducing a portfolio PDF — online compression is entirely appropriate. The risk profile of a marketing document is very different from a signed NDA. Match your tool choice to your actual risk, not to a blanket policy in either direction.

Checking Your Results: How to Verify Quality After Compression

Compression is not complete until you verify the output. A file that is technically smaller but visually degraded is not a success — it is a problem you have deferred to whoever receives it. The simplest check is to open the compressed PDF at 100% zoom (not 'fit to page') in your PDF viewer and compare it side-by-side with the original. In Adobe Reader, use View > Zoom > 100%. Look specifically at areas of high contrast — black text on white backgrounds, thin lines in diagrams, and any photographs with fine detail like hair or fabric texture. These are the areas where JPEG compression artifacts appear first. For print-destined documents, zoom to 200% and inspect body text. If characters look slightly fuzzy at 200% on screen, they will likely print acceptably — screen rendering and print rendering are different. But if text looks blocky or you can see visible JPEG blocking patterns (small rectangular patches of slightly different color), the compression was too aggressive. Check the file size reduction against your target. If you needed to get under 10 MB for an email attachment and the compressed file is 9.8 MB, that is a success. If it came back at 18 MB, the file's content may genuinely resist further compression — a PDF that is already optimally encoded cannot be made significantly smaller without visible quality loss, and no tool can change that. Finally, open the document on a different device if possible — a phone or tablet — to simulate how a recipient might view it. Mobile PDF viewers sometimes render compressed images differently than desktop applications, and a file that looks fine on your laptop may show artifacts on an older Android device. This is a five-minute check that has saved many people from sending out documents they would have regretted.