Skip to content
ToolsOnDuty - free online tools

Search tools

Loading tool search...

PDF Tools

Compress PDF

Compress one or many PDFs with lossless QPDF optimization or adjustable raster reduction.

Free browser toolRuns in your browserNo sign-up

PDF compression studio

Choose the right size and clarity balance

Preserve original PDF content with QPDF lossless optimization, or use raster compression when scans and image-heavy pages need a stronger size reduction.

0

PDFs queued

0

total pages

0 B

source size

Lossless

mode

Compression method
Lossless preservation: QPDF regenerates object streams and recompresses compatible Flate streams at maximum compression. Page appearance, selectable text, vectors, links, forms and existing JPEG pixels are not rasterized. Already optimized PDFs may show little saving or become slightly larger.

Private workspace. Files stay in this browser tab and are never uploaded to ToolsOnDuty.

Nothing downloads automatically. Actual savings depend on each source and compression method.

About the Compress PDF

Compress PDF processes one PDF or a complete batch using either Lossless QPDF optimization or raster compression. Lossless mode regenerates object streams and recompresses compatible Flate streams without rebuilding pages as images.

Lossless mode preserves selectable text, vector graphics, links, forms, page dimensions and existing image pixels. It is the right first choice for digitally generated reports, invoices, contracts and presentations, although an already optimized source may show little saving or become slightly larger.

Raster mode offers Strong, Recommended and Light presets. It rebuilds each page as a JPEG-backed image and is most useful for scans and image-heavy files, but selectable text, links, forms and vector content are flattened.

The queue validates every PDF, reports per-file page counts and supports encrypted inputs through the shared local unlock flow. Batch progress identifies the current file and page.

The result workspace labels each output Lossless or Raster and compares source and output sizes without inventing savings. Nothing downloads automatically: download files individually or package multiple results into one ZIP.

Choose by document type: start with Lossless QPDF for a searchable report or fillable form; consider Raster compression for a scan only when flattening is acceptable. A smaller file is not more useful if small print becomes unreadable or a required link or form stops working.

Render scale controls how many pixels represent a page in Raster mode, while JPEG quality controls how those pixels are encoded. These controls do not change the PDF page's physical dimensions. Strong uses 1.0x render and 50% JPEG quality, Recommended 1.3x and 65%, and Light 1.7x and 82%. These are settings, not promised reduction percentages.

Compression and document checks run locally, although code and processing dependencies may need to download on first use. There is no exact target-size control or promised speed-up. Keep signed originals: rewriting a PDF can invalidate digital signatures, and structural or page-count checks do not certify every document feature or its security.

Key features

  • Lossless QPDF object and Flate-stream optimization
  • Selectable text, vector, link and form preservation in Lossless mode
  • Strong, Recommended and Light raster presets
  • Multi-PDF batch queue with add-more and remove controls
  • Local password unlocking for authorized encrypted PDFs
  • Fresh QPDF structure and PDF.js page-count verification
  • Per-file and per-page or optimization-stage progress
  • Individual and aggregate size comparison
  • Honest reporting when an output becomes larger
  • Individual downloads or one batch ZIP
  • Clear lossless-preservation and raster-flattening warnings
  • Private local compression

How to use

  1. 1Upload one or more PDFs and review each file's page count and source size.
  2. 2If a protected file asks for a password, unlock it only when you have permission. Review any skipped-file notice before continuing; Add more PDFs and the per-file remove controls let you correct the queue.
  3. 3Choose Lossless QPDF to preserve document features, or Raster compression for stronger reduction of scans and photo-heavy pages.
  4. 4When using Raster compression, choose Strong for the smallest image output, Recommended for balance, or Light for more detail.
  5. 5Select Optimize in Lossless QPDF mode or Compress in Raster compression mode; the button also shows the queued PDF count. Follow the optimization-stage or current-file/current-page progress.
  6. 6Compare each result and the aggregate size change rather than assuming every output is smaller.
  7. 7Use a result's Download button, Download compressed PDF for a single result, or Download all ZIP for a batch. Open the saved file and review small text, page count and orientation; in lossless outputs also test important links and forms. Keep the original until the result is accepted.

Examples

Optimize a digital contract losslessly
Input: Text and vector PDF using Lossless QPDF
Output: Structurally verified PDF retaining selectable text, links and forms

Already optimized files may have little or no size reduction.

Reduce a scanned application
Input: 24-page photo scan; choose Raster compression and Recommended (1.3x render, 65% JPEG)
Output: An image-based PDF with the original page count and measured Before and After sizes

Run Compress, then download and inspect identification numbers and fine print. No target size or reduction percentage is promised, and the result does not gain searchable text.

Compress separate reports without merging them
Input: Two PDFs in the queue; choose Lossless QPDF and run Optimize
Output: Two separately named results available individually or in Download all ZIP

Each source is processed into its own PDF. Check each result's method, page count and byte size; ZIP is a download container, not a merged report.

Frequently asked questions

Will text remain selectable?
Lossless QPDF retains existing selectable text; it does not add text to a scan. Raster mode rebuilds every page as a JPEG image, so previously selectable text is no longer selectable.
What does Lossless mode optimize?
QPDF regenerates compact object streams and recompresses compatible Flate streams at maximum compression without rasterizing pages or recompressing JPEG pixels.
Are links, forms and vector graphics preserved?
Lossless mode preserves those PDF structures. Raster mode flattens them into page images.
Can I compress multiple PDFs together?
Yes. Add multiple PDFs, apply one method and any raster preset to the queue, and download each result or one ZIP containing the complete batch. It does not merge them into one document.
Can it compress a protected PDF?
Yes, when you know the password and have permission. The shared unlock dialog decrypts it locally before adding it to the queue.
Is a smaller result guaranteed?
No. Already optimized or text-heavy PDFs can produce little saving or even a larger file.
Which raster preset has the best quality?
Light uses the highest render scale and JPEG quality; it also tends to create the largest result.
Why can compression fail on a phone?
Large documents, page images, processing dependencies and output files compete for device memory. Raster processing can require much more memory than the source file's compressed byte size. Try fewer files, a less detailed raster preset when acceptable, or a more capable device.
What do lossless and raster mean here?
Lossless QPDF rewrites internal PDF objects and compressed streams without intentionally rasterizing pages or re-encoding their existing JPEG pixels. Raster compression draws every page into pixels and embeds a JPEG image instead. The latter changes document behavior, not just file size.
What are object streams and Flate streams?
Object streams group internal PDF objects into a compact representation. Flate is a compression method used for some internal data streams. Recompressing these structures is different from lowering the quality of an existing JPEG photo.
Does a 65% JPEG setting mean a 65% file-size reduction?
No. JPEG quality is an encoding setting. Actual size depends on page content, render scale, the source's compression and the browser. Review Before, After and Size change rather than calculating expected savings from the preset number.
Can I request an exact size such as 500 KB?
This workspace has no target-byte-size control. Compare actual outputs, and try a different method or raster preset if its trade-offs are acceptable. A portal's limit may use different byte units; check the saved file before uploading.
Will compression preserve a digital signature or password protection?
Do not assume it will. Rewriting a signed PDF can invalidate its cryptographic signature, and locally unlocked inputs are processed as decrypted content. Keep the original and inspect the output's security settings before sharing.
Does successful validation mean every link or form was tested?
No. Lossless output receives QPDF structural checking and a PDF.js page-count check. Those checks do not interact with every link, field, signature or viewer feature. Review the downloaded result in the PDF application you intend to use.

Open a related tool to prepare your files or refine the finished result.