PDF Compressor

Compress PDF files with Lossless, Balanced or Strong qpdf presets, measured size comparisons and temporary server-side processing.

Secure temporary processing

Compress a PDF for easier sharing

Send one PDF to ToolMint's dedicated qpdf worker, compare the measured result and download the smaller copy. Files are processed in temporary storage and scheduled for deletion immediately afterward.

Input limit
25 MB
Page limit
150 pages
Processing
Temporary

Drop one PDF here

PDF only, up to 25.00 MB and 150 pages.

Compression settings

Choose a compression preset

Important: encrypted, password-protected and digitally signed PDFs are rejected. Balanced and Strong may recompress suitable images, so keep the original document.

Compressed output

Choose a PDF and compression preset. The measured output size will appear here after processing.

Steps

How to use

  1. Choose one PDF up to 25 MB, or drop it onto the upload area.
  2. Select Lossless, Balanced or Strong compression based on the required tradeoff.
  3. Click Compress PDF to create a short-lived request scope and upload the PDF directly to the dedicated worker.
  4. Wait while qpdf validates and processes up to 150 pages within the 45-second processing limit.
  5. Compare the measured original and output sizes, review the result and download the smaller PDF.
Examples and use cases
  • Reduce an image-heavy report before attaching it to an email with a strict size limit.
  • Create a smaller sharing copy of a scanned document while retaining the original archive copy.
  • Optimize a presentation export before uploading it to a document portal.
  • Apply lossless structural compression when existing image encoding should remain unchanged.
Privacy, limits and tool details

Key facts

Best use case
Image-heavy PDFs, scans, reports and sharing copies that need a smaller byte size
Input format
PDF
Output format
Structurally transformed PDF; pages are not rasterized
File limit
Up to 25 MB per PDF
Page limit
Up to 150 pages per run
Presets
Lossless, Balanced (JPEG quality 75 when applicable) and Strong (JPEG quality 55 when applicable)
Privacy model
Direct upload to an isolated worker with private temporary files scheduled for immediate deletion
Compatibility
Encrypted, password-protected, malformed and digitally signed PDFs are rejected
Privacy

Privacy and processing

Processing method: The browser requests a 60-second HMAC token scoped to the same origin, selected preset and exact file size, then sends the raw PDF directly to a dedicated qpdf 12.4.1 worker. The worker validates the input, applies the selected structural and image optimizations, validates the output, requires an unchanged page count and strictly smaller result, streams the PDF back and schedules all temporary files for immediate removal.

Privacy model: The PDF is transmitted to a dedicated processing worker and is not processed only in the browser. The worker does not receive the local filename, does not log document bytes or text and uses a private temporary directory scheduled for immediate deletion after success, failure, cancellation or timeout. Analytics receive only privacy-safe operational fields such as preset, aggregate size, aggregate savings and result status.

Limitations

Limitations

  • Password-protected and encrypted PDFs are rejected; the service intentionally has no password field.
  • PDFs containing signature fields or signature dictionaries are rejected because rewriting bytes would invalidate signature expectations.
  • Lossless compression usually produces modest savings and no preset can guarantee that every valid PDF becomes smaller.
  • Balanced and Strong may recompress suitable images with lossy JPEG settings, so image quality should be reviewed before use.
  • The service does not repair corrupted PDFs, run OCR, remove passwords or guarantee preservation of every uncommon interactive feature.
  • The worker returns no output when the compressed result is not strictly smaller than the input.
  • Instance-local token rate limiting is useful abuse protection but is not a globally durable distributed quota.

Page freshness

Published
Sep 20, 2026
Last updated
Oct 25, 2026
Features

Benefits

Measured size comparison

See the actual input size, output size and reduction percentage before downloading.

Three documented presets

Choose no image recompression, a balanced default or stronger suitable-image optimization.

Structure-aware processing

qpdf transforms PDF objects and streams instead of rasterizing every page in a browser canvas.

Bounded temporary handling

Short-lived authorization, strict limits, sanitized logs and immediate cleanup scheduling reduce unnecessary exposure.

Tips

Pro tips

  • Start with Balanced, then compare Strong only when additional image compression is acceptable.
  • Use Lossless when avoiding image recompression matters more than maximum byte savings.
  • Keep the original PDF and review text, images, links, forms, bookmarks and page order in the downloaded result.
  • Unlock encrypted documents before use; ToolMint does not request or transmit a PDF password.
  • For PDFs built from source images, optimize those images before rebuilding the PDF when you need finer quality control.
Watch out

Common mistakes to avoid

  • Submitting a digitally signed PDF and expecting a rewritten file to retain the original signature validity.
  • Using Strong compression for fine image detail without reviewing the downloaded result.
  • Deleting the original before confirming that the compressed copy works for the intended workflow.
  • Assuming Lossless will substantially reduce every already optimized PDF.
  • Describing the tool as local-only even though the PDF is transmitted to a dedicated temporary processor.

Sources

Detailed PDF Compressor guide

The ToolMint PDF Compressor reduces PDF file size with a dedicated qpdf 12.4.1 processing service. Choose Lossless, Balanced or Strong compression, send one PDF up to 25 MB and 150 pages, compare the measured input and output sizes, then download the smaller result. No account is required.

The selected PDF is uploaded directly to ToolMint's isolated compression worker for temporary processing. The worker does not use the filename, does not extract or log document text, and schedules its request directory, input and output files for immediate removal after every completed, failed, cancelled or timed-out request.

Try with a fictional practice file

The fictional two-page order is a small synthetic document for checking upload, result and download states. It may already be too compact to shrink: a no-smaller-result message is a legitimate outcome, not a promised compression percentage. For a real size comparison, use a non-sensitive image-heavy PDF and record the original and output byte sizes for each preset. Compression sends the file to the processing worker; it is not a browser-only operation.

What this PDF compressor does

PDF files can contain compressed streams, fonts, vector graphics, photographs, scans, forms and other objects. Their size depends on how the creating application encoded those objects, so no compressor can guarantee useful savings for every file.

ToolMint uses qpdf as a structural PDF transformer. It can rebuild object streams, recompress suitable streams and optimize images without rendering every page to a browser canvas. Searchable text and page structure are therefore not deliberately flattened into page-sized JPEG screenshots.

The worker validates the PDF before and after processing. It requires the %PDF- header, rejects malformed or warning-producing files, confirms that the page count is unchanged, verifies that the result is unencrypted and returns a file only when it is strictly smaller than the input.

How to compress a PDF

Choose a PDF from your device or drop one onto the upload area. The tool accepts one PDF up to 25 MB. The worker also enforces a maximum of 150 pages and a 45-second qpdf processing timeout.

Select a preset. Balanced is the recommended starting point. Lossless avoids image recompression and is the cautious choice when preserving existing image encoding matters. Strong compression uses more aggressive image recompression for a smaller sharing copy.

Click Compress PDF. ToolMint first creates a short-lived request token scoped to the current site origin, selected preset and exact file size. The browser then sends the raw PDF directly to the dedicated worker. You can cancel the request while it is uploading or processing.

When processing finishes, compare the original size, compressed size and measured reduction. The worker does not return an output when qpdf cannot make the file smaller.

Choosing a compression preset

  • Lossless enables object streams, stream compression, generalized decoding and Flate recompression level 9. It preserves existing image encoding and usually produces modest savings.
  • Balanced includes the lossless transformations and allows qpdf to optimize suitable images using JPEG quality 75. It can produce larger savings while retaining a practical quality level for routine documents.
  • Strong compression includes the lossless transformations and uses JPEG quality 55 when qpdf can optimize suitable images. It is intended for sharing copies where file size matters more than maximum image fidelity.

JPEG quality values apply only when qpdf selects an image for recompression. qpdf does not rasterize whole pages, reduce every page to a fixed DPI or guarantee that every image will be rewritten.

When compression works well

Image-heavy reports, presentation exports, scans and photographed documents often contain suitable data for stream or image optimization. These files may have meaningful room for reduction, particularly when their embedded images were saved at unnecessarily high quality.

Compression can also help when an email provider, document portal or upload form has a file-size limit. Keep the original as the archival copy and use the compressed result for the specific sharing workflow.

Mostly text-based PDFs can already be compact because characters, fonts and vector drawing commands are efficient. An already optimized PDF may offer little or no additional saving. In that case the worker returns a clear no-reduction response instead of supplying a larger file.

Document compatibility

Password-protected and encrypted PDFs are intentionally rejected. ToolMint does not request, receive or process PDF passwords.

PDFs containing a signature field or signature dictionary are also rejected. Compression changes document bytes and would invalidate the original digital signature, so keep signed documents unchanged.

The service does not repair corrupted files, remove passwords, run OCR or promise to preserve every uncommon interactive feature. Always open the downloaded result and verify text, images, links, forms, bookmarks and page order before using it.

Privacy and security

This is not a local-only browser tool: the PDF must be transmitted to the dedicated compression worker. The browser sends the PDF body directly to that worker rather than through ToolMint's main application route.

Authorization uses a short-lived HMAC-signed token restricted to the requesting origin, compression preset and maximum byte count. The token is carried in an authorization header, is not placed in a URL and is held only for the active request.

The worker creates a private temporary directory for each request. Input and output files are scheduled for immediate removal after every terminal path, and destroying a Cloud Run instance also removes its ephemeral filesystem. This design minimizes retention but should not be described as a promise that transmission never occurs.

Operational logs contain a generated request ID, preset, coarse size and duration buckets, HTTP status and a fixed result code. They do not include PDF bytes, filenames, tokens, secrets, temporary paths, processor output, metadata, extracted text or client IP addresses.

ToolMint analytics remain limited to privacy-safe operational fields such as the tool slug, operation type, selected preset, aggregate byte size, measured savings and result status. Filenames and document contents are not sent to analytics.

Technical limits and recovery

Each request is limited to one PDF, 25 MB, 150 pages and 45 seconds of qpdf processing. The short-lived authorization token expires after 60 seconds and is scoped to the exact input byte count.

The public token endpoint uses same-origin validation and instance-local rate limiting. The dedicated worker is additionally capped by its Cloud Run instance configuration. Instance-local rate limiting is practical abuse protection but is not a globally durable distributed quota.

If a request times out, is cancelled or disconnects, the worker terminates the qpdf process group and begins cleanup. Network interruptions can still prevent a result from reaching the browser even when processing started successfully, so retry once with a stable connection.

Common mistakes

Do not delete the original before reviewing the compressed copy. Balanced and Strong may recompress suitable images, and any PDF rewrite can affect uncommon document features.

Do not submit password-protected, encrypted or digitally signed PDFs. The worker rejects them intentionally instead of accepting a password or returning a document with invalid signature expectations.

Do not assume Strong is automatically the best preset. Start with Balanced, inspect the result and use Strong only when additional image compression is appropriate. Use Lossless when avoiding image recompression matters more than maximum savings.

Use the PDF Merger to combine complete PDF files and the PDF Splitter when removing unneeded pages is a better way to reduce what you share. Use the Image to PDF Converter when your source material is JPG, PNG or WebP images.

For source-image workflows, use the Image Compressor or Image Resizer before PDF creation. To verify whether two downloaded files are byte-for-byte identical, use the Hash Generator.

Browse more file and document utilities in the Utilities category. The visible FAQ section below this guide comes from the same ToolMint registry data used for FAQ structured data, so the on-page answers and schema remain synchronized.

Frequently asked questions

ToolMint uses qpdf to rebuild object streams, recompress suitable streams and optionally optimize images. It does not rasterize every page. The worker validates the output and returns it only when it is strictly smaller.

Yes. The browser sends the raw PDF directly to a dedicated ToolMint compression worker. The worker uses a private temporary directory scheduled for immediate deletion after success, failure, cancellation or timeout, and its application logs exclude filenames and document contents.

Balanced is the recommended starting point. Lossless preserves existing image encoding and usually gives modest savings. Strong uses more aggressive JPEG quality 55 when suitable images can be optimized.

qpdf is a structural transformer rather than a page renderer, so the tool does not deliberately flatten searchable text into page images. Always review the downloaded result because uncommon document features can still be affected by a rewrite.

No. The worker rejects PDFs containing signature fields or signature dictionaries because rewriting document bytes conflicts with the original signature expectations.

The worker requires the output to be strictly smaller. An already optimized or mostly text-based PDF may have no useful additional savings. Try a stronger preset only when image recompression is appropriate.

No. Encrypted and password-protected PDFs are intentionally rejected, and ToolMint does not request or process document passwords.

The tool accepts one PDF up to 25 MB and 150 pages. qpdf processing is limited to 45 seconds, and the short-lived request token expires after 60 seconds.

Yes, in modern mobile browsers with File, Fetch, AbortController, Blob and download support. The PDF must remain connected while it uploads, processes and downloads.
8 min read Works in browser Privacy notes