How to Compress PDF Files Without Losing Quality

Learn how to compress PDF files across Windows, Mac, mobile, and web tools. Includes lossless vs lossy methods, image downsampling, and size-reduction tips.

Written by Devnitys Team

10 min read
How to Compress PDF Files Without Losing Quality

You've finished a contract, scanned an invoice, or exported a presentation, and now the PDF is too large to email or upload. Clicking “Compress” can help, but the result depends less on the button than on what the file contains. A scanned document, a text report, and a design portfolio need different treatment.

The reliable way to learn how to compress PDF files without losing quality is to diagnose the document first, then choose the least aggressive method that solves the problem. You'll protect readability, searchable text, form fields, and print quality instead of shrinking every file blindly.

Diagnosing Your PDF Before You Compress It

Start with three facts: file size, page count, and content type. Open the PDF in a reader such as Adobe Acrobat Reader, Microsoft Edge, Preview, or your usual document app. Record the current size and number of pages, then compare the size with the visual complexity of the file. A short document containing several high-resolution photos may be much larger than a long report made mostly of selectable text.

Next, inspect the document properties and click through several pages. Look for large images, embedded fonts, annotations, layers, and attachments. These elements often explain why a PDF feels disproportionately large. A file created by Word or a web browser usually has a different internal structure from one produced by a scanner or design application.

The most useful test is simple: try selecting a sentence. If you can highlight individual words, the page contains a text layer. If you can only select the entire page as one image, it's probably a scan. Mixed PDFs contain both types, such as a scanned signature page alongside digitally generated contract text.

An infographic titled Diagnosing Your PDF Before You Compress It listing three steps for PDF optimization.

Match the diagnosis to the likely result

A 50-page scanned contract behaves nothing like a 50-page text report. Image-heavy and scan-heavy PDFs commonly offer the greatest opportunity for reduction, with modern workflows often reporting 30–80% reductions (PDFDeal explains why PDF content type matters). Text-heavy and vector-heavy files often plateau around 20–35% savings from ordinary optimization, so a dramatic result may be unrealistic.

Use this quick decision rule:

  • Scanner-created PDF: Expect image-focused, potentially lossy compression. Preserve a high-quality original.
  • Selectable text report: Begin with lossless cleanup, font subsetting, and object optimization.
  • Mixed document: Optimize images selectively while preserving the text layer and interactive elements.
  • Already-small PDF: Test whether compression is worth the quality or functionality risk.

The diagnosis turns compression into a controlled choice. You're not asking which tool has the strongest setting. You're asking which part of the file needs less data.

Lossless vs Lossy Compression Explained

Think of a crowded closet. Lossless compression is like folding every shirt more efficiently. The closet takes less space, but every garment remains intact and identifiable. Lossy compression is closer to vacuum-sealing bulky winter coats. You save much more room, but some fine detail may be sacrificed.

In a PDF, lossless methods preserve the document's visual information and underlying content. They can remove duplicate objects, unused font glyphs, unnecessary metadata, annotations, and redundant internal data. Stream compression methods such as Flate and LZW can also make internal content more efficient without intentionally lowering image resolution.

Lossy compression usually targets raster images. The tool reduces image resolution, changes the image encoding, or applies stronger JPEG or JPEG2000 compression. This can produce substantial savings, especially when each page is a scan or contains large photographs. The tradeoff appears as softness, blockiness, or blurred small lettering inside an image.

A visual comparison between lossless and lossy data compression using a folded shirt versus vacuum-sealed clothing.

Choose based on what must survive

Vector text remains crisp because it isn't a photograph. In a mixed PDF, you can often reduce the size of embedded color images while leaving the text layer untouched. That makes the final result more predictable than applying maximum compression to the entire document.

Use lossless processing when:

  • Exact fidelity matters: Legal text, engineering drawings, and archival material should retain their original appearance.
  • The file is text-led: Reports exported from Word or web pages often have limited image data to remove.
  • Functionality matters: Fillable fields, searchable text, tags, annotations, and signatures may be damaged by re-rendering.

Use lossy processing when:

  • Scans dominate: A scanned page is an image, so reducing its pixels addresses the main source of size.
  • The destination is a screen: Web viewing and ordinary digital sharing usually don't need print-level image resolution.
  • The original is oversized: A large image-heavy PDF has more room for meaningful reduction.

Practical rule: Keep the original untouched, create a compressed copy, and inspect both before sending or archiving the result.

Compressing PDFs With Free Online Tools

Browser-based tools work without installation, so they are convenient for a quick, non-sensitive PDF. The workflow is usually upload, choose a quality level, process the file, and download a copy. The setting should follow the document type, not the tool's default. A scanned PDF is mostly page images, a text-heavy PDF has less image data to reduce, and a mixed file needs a balance between readable visuals and crisp text.

Privacy comes first. Uploading a tax form, medical record, signed agreement, or client file to a third-party server creates a risk that may outweigh the convenience of a free service. Keep sensitive documents on your computer and use an online tool for files that are suitable for external processing.

Screenshot from https://example.com/screenshots/ilovepdf-compress-levels.png

Smallpdf

Open Smallpdf's Compress PDF page, add the file, and select a compression strength. Older guides may mention a Custom DPI control, but that option has been removed. Use the current quality presets instead of looking for a control that no longer appears.

Begin with the gentler setting if the PDF contains charts, screenshots, or small lettering. A stronger setting can suit a scan intended for screen reading, provided you inspect fine print and signatures afterward. Image-heavy PDFs usually offer more room for reduction, while text-only files may change very little.

iLovePDF

Select Compress PDF in iLovePDF, upload one or more files, and choose a level such as Low, Medium, High, or Extreme. The batch queue helps with routine work, but identical settings are not appropriate for every document. Group screen-only scans separately from files prepared for printing, then choose the quality level for each group.

If the workflow also requires combining documents, Devnitys' guide to free online PDF merging explains that related task. Adobe's online PDF compressor follows a similar upload-and-download process and offers quality presets. Some features may require signing in.

Check privacy and output quality

Keep the original file, download the compressed copy, and compare them. Search for text, open links, test form fields, and zoom in on important images. Check signatures, annotations, and searchable layers too. Delete uploaded files from the service dashboard when that option is available.

Compression results depend more on the PDF's contents than on the brand of the tool. A comparison from PDF Nite compares before-and-after PDF sizes shows that scanned PDFs can shrink substantially, while text-heavy files usually save less space. If readability or document features suffer, choose a gentler preset or use a method designed for that PDF type.

Compressing PDFs on Windows, Mac, and the Command Line

Desktop processing is the safer starting point for sensitive files because the document stays on your computer. It also gives you more control over output quality, compatibility, and whether interactive content survives.

Windows workflow

Windows doesn't provide a dedicated native PDF optimizer, but Microsoft Print to PDF can rebuild a document. Open the PDF in a reader, choose Print, select Microsoft Print to PDF, and save the newly generated file under a different name. Re-import the new copy into a desktop PDF utility such as PDFsam if you need further processing. Printing to OneNote can serve as another workaround, although re-rendering may remove links, layers, tags, form fields, or selectable text.

Treat this as a cleanup method, not a guaranteed compressor. Test the output page by page, particularly if the source contains forms, signatures, or accessibility features. A fresh save in a full PDF editor can sometimes remove redundant internal structure without rasterizing the entire document.

Mac workflow

Preview offers a straightforward route. Open the file, choose File, select Export, and open the Quartz Filter menu. Choose Reduce File Size, then save a separate copy. Depending on the macOS version and available filters, you may be able to adjust image quality and resolution through ColorSync Utility or custom Quartz filter settings.

Use a gentler filter for print-related material. Aggressive reduction can make small text inside images difficult to read.

Command-line workflow

Power users can use Ghostscript:

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dBATCH -sOutputFile=out.pdf in.pdf

The /ebook preset is aimed at digital reading, so it may downsample images. Always compare the output with the original. QPDF is another option when you want to investigate lossless structural shrinking rather than automatically lowering image quality.

For wider PDF workflows, Devnitys' PDF to TIFF resource can help when conversion is part of the document pipeline. Desktop methods can produce useful reductions in text-heavy files, but already-compressed scans may offer much less upside because their pages are dominated by raster data.

Compressing PDFs on iPhone and Android

Phone-based compression works well for ordinary documents, quick uploads, and files that aren't especially large. It's less suitable for complex scans because mobile apps have less processing headroom and fewer detailed controls than desktop software.

On iPhone

The stock iOS Files app is useful for opening, moving, and sharing PDFs, but it isn't a complete PDF compressor. Open the file from Files, tap Share, and send it to Adobe Acrobat Reader or a mobile PDF service such as Smallpdf. In Acrobat, look under the editing or file-management actions for Compress PDF or Reduce File Size, then save the result as a new copy.

Some iOS versions or installed applications may expose an Optimize option through the share sheet, but availability depends on the app and operating system. If the option isn't visible, use Acrobat or a browser-based compressor rather than repeatedly exporting the file through unrelated apps.

On Android

Adobe Acrobat mobile can provide a Reduce File Size action under its editing tools. Microsoft 365 may also offer PDF optimization within its document workflow. A Google Drive workaround is to open or convert the document and download it as a PDF, but this re-export can alter layout, links, fonts, or interactive features, so verify the result carefully.

Tiny PDFs may not be worth compressing. The quality risk and extra processing can outweigh any practical benefit.

Very large scans are a poor fit for phones. If a file is 100+ MB, send it to a computer first, where you'll have more memory, a stable workflow, and better inspection tools. On mobile, always check page order, text search, image clarity, signatures, and form behavior before sharing.

Optimization Techniques That Actually Move the Needle

PDF compression works best as a layered process. Start with the element that consumes the most space, then apply lighter cleanup steps. For most image-heavy documents, that means downsampling images before worrying about metadata.

Start with images

Set images to the resolution required by the destination. Adobe's optimizer guidance identifies approximately 72–96 DPI for screen or web PDFs, 150 DPI for general digital distribution, and 300 DPI for print-ready files (Adobe's PDF Optimizer settings explain resolution choices).

Choose JPEG or JPEG2000 for photographs and gradual color transitions. Use ZIP for flat-color illustrations, diagrams, and line art, where JPEG artifacts can damage sharp edges. Downsampling removes pixels before encoding, which is why image optimization usually delivers the largest reduction during a PDF optimization pass.

An infographic listing four technical optimization methods for reducing PDF file size and improving performance.

Clean the internal contents

Font subsetting keeps only the glyphs used in the document instead of embedding an entire typeface. This can help files that contain unusual or numerous embedded fonts, but don't remove fonts blindly if the recipient needs reliable text rendering.

Remove XMP metadata, hidden layers, unused objects, thumbnails, edit history, and unnecessary annotations when they don't serve the document's purpose. Be careful with accessibility tags, form fields, comments, and signatures. Those elements may look secondary, but they can be essential to how someone reads or completes the file.

Understand what won't help much

Modern PDF versions already use compressed object streams in many cases. Because internal streams may already use zlib or DEFLATE by default in PDFs generated with PDF 1.5 and later, wrapping an existing PDF in ZIP often produces only about 1–5% additional reduction (PDFDeal describes the architectural reason). The meaningful gains usually come from recompressing images, fonts, and object structures.

Linearization, also called Fast Web View, reorganizes the file so pages can load progressively online. It improves delivery behavior, but it isn't primarily a byte-reduction technique. Apply it after size optimization when the PDF will be viewed through a browser.

Choosing the Right Method for Any PDF Type

Start by identifying what occupies most of the file. A text-heavy report, a scanned document, and a mixed PDF need different treatment. The right method removes the largest source of size while protecting the parts readers must search, edit, sign, or print.

PDF TypeBest MethodWhat to CheckQuality Risk
Text-heavy reportLossless cleanup, font subsetting, desktop save or exportConfirm whether fonts and embedded images dominateLow if text and vector content stay intact
Scanned documentImage downsampling, suitable JPEG or JPEG2000 compression, OCR when neededCheck small text, signatures, and searchabilityMedium to high
Mixed PDFSelective image optimization, font subsetting, metadata cleanupFind oversized images and protected form contentMedium

Text-heavy documents

Use a desktop optimizer, macOS Quartz filter, or lossless command-line utility. Preserve selectable text and document structure. Re-rendering may shrink the file, but it can turn text into pixels or remove useful tags. For reports containing charts or screenshots, optimize those images separately. Image settings should reflect their purpose, much like the choices explained in this guide to optimizing images for the web.

Check the result against your actual requirement. If the file already meets the portal's limit, further processing may create compatibility or readability problems without a useful benefit.

Scanned documents

A scan is largely a collection of page images, so image settings usually determine the result. Downsample for the intended screen or print destination, retain the OCR text layer when search is required, and inspect signatures at normal viewing size. Sequential processing can be more effective than one aggressive preset. One 2025 study reported up to 27% greater reduction with sequential multi-tool workflows while maintaining readability and structural integrity (the IJARCCE study examines sequential PDF optimization).

Mixed and sensitive files

Reduce only oversized color images, remove unnecessary metadata, and subset fonts. Keep accessibility tags, form fields, comments, and signatures when they support the document's purpose. Avoid aggressive processing for fillable forms, signature workflows, or print-ready CMYK artwork where color shifts matter.

Compression method compatibility also matters. Industry coverage reports that Brotli-based PDF compression may reduce size by roughly 10–25% depending on content type, but newer encoding methods can require updated readers or libraries (Computerworld covers Brotli PDF compatibility considerations). Test search, forms, page display, and printing in the reader your recipient will use. Keep the original as a recovery copy.

If you need another way to prepare documents, visit Devnitys for PDF utilities such as compression and merging, plus tools for images, text, conversion, and productivity. Choose based on the PDF's dominant content, then compare the processed file with the original before sharing or archiving.

Share: