PDF Compressor

Make PDFs smaller with Ghostscript presets or custom image DPI and JPEG quality, with previews.

Max 100 MB.

When you run the tool, this file is uploaded to our server, processed and then deleted. The files the tool creates stay on our server for about 2 hours: download them to keep them, or save them to your Google Drive.

Also runs the next levels so you can download and compare each.

More options
DPI

Used only to open the file for this conversion; it is written to a private temporary file, never to a command line, and deleted with the job.

Try an example: ·

More about this tool

Part of Paperwell PDF & documents

How it works

Re-writes a PDF with Ghostscript using the screen, e-book, printer or prepress preset, or your own image resolution and JPEG quality. Shows the size before and after, can compare up to three presets side by side, and renders page 1 before and after so you can judge the quality. If the result is not smaller, you get the original back.

  • The PDF is validated with qpdf and decrypted with your password if needed. Ghostscript (pdfwrite) then rewrites it: images are downsampled to the preset resolution and re-compressed, fonts are subset and compressed, duplicate images are stored once.
  • Presets follow Ghostscript's -dPDFSETTINGS: screen ≈ 72 DPI images, ebook ≈ 150 DPI, printer and prepress ≈ 300 DPI (prepress keeps more colour information). Screen and e-book always re-encode colour and gray images as JPEG (Ghostscript would otherwise keep smooth images lossless, which can make them larger); printer and prepress let Ghostscript choose. Custom sets the colour/gray image resolution and the JPEG quality directly.
  • With comparison on, a warning appears if a smaller level still produced a larger file than a higher-quality level.
  • Savings = 1 − new size ÷ original size. When a level does not make the file smaller (common for text-only or already optimised PDFs), the original file is returned for that level instead.
  • Page 1 is rendered at the same size before and after (Poppler) so you can compare image quality and text sharpness.
  • Dates and random IDs are removed from the output so the same input always gives the same file. Document title/author are kept; XMP metadata is removed.

Ghostscript re-creates the PDF: interactive elements such as form fields usually survive, but digital signatures become invalid and some rare features may be lost. Keep your original.

Use this tool in an app

These free programs for your browser have this tool built in, next to everything else the task needs.

  • Paperwell Document studio: PDFs, OCR, redaction, forms & contract reading

    Your paperwork in one dossier: PDF tools, OCR, redaction, forms and contract reading.

    Open Paperwell

Related tools

How to use the PDF Compressor

Shrink a PDF with Ghostscript presets or your own image DPI and JPEG quality, compare three levels side by side and check the quality before you send it.

What it is for

An upload form says "max 2 MB", an email bounces, or a scanned contract is 40 MB. Most of the size in a PDF like that comes from images, and this tool rewrites the PDF with Ghostscript to downsample and re-compress them. Fonts are subset and compressed, and duplicate images are stored once.

Pick a preset (screen ≈ 72 DPI images, e-book ≈ 150 DPI, printer and prepress ≈ 300 DPI) or set your own image resolution and JPEG quality. You can compare up to three levels in one run, and page 1 is rendered before and after so you can judge sharpness. If a level doesn't make the file smaller, you get your original back for that level.

It can't do much for text-only PDFs, which are usually already small. Ghostscript re-creates the file: form fields usually survive, but digital signatures become invalid. Keep your original.

Worked example

A three-page photo brochure (brochure.pdf, 929 KB) with one full-page JPEG photo per page at 250 DPI. Preset screen with "compare" on:

Level /screen: 929 KB → 60.0 KB, 93.5% smaller.

The comparison table showed all three levels:

Worked example
LevelSizeSaving
Screen (72 DPI JPEG images)60.0 KB93.5%
E-book (150 DPI JPEG images)200 KB78.4%
Printer (300 DPI images)929 KB0% (original kept)

The printer level doesn't help because the photos are already below 300 DPI, so there's nothing to downsample, and the rewritten file wasn't smaller, so that level returns the original. A custom run at 120 DPI and JPEG quality 70 landed in between: 134 KB, 85.6% smaller.

Screen and e-book always store colour and gray images as JPEG. Left to itself, Ghostscript sometimes keeps smooth images (gradients, renders, charts) lossless, and then screen could come out larger than e-book. If a smaller level still ends up larger than a higher-quality one, the tool warns you and names the better level.

For contrast, the built-in text-only example (1.03 KB) can't be compressed at all: the rewritten file would be 1.08 KB, so the tool returns the original and says so.

How to read the result

  • Metrics: original size, new size, saving and pages.
  • Download: the compressed PDF for the chosen level. With compare on, there's one download per level.
  • Comparison table and bars: size and saving per level. "Kept original" means that level didn't help.
  • Before/after preview of page 1: zoom in on small text and fine photo detail. That's where low DPI shows first.
  • Warnings: for example, which level gave the smallest file, or that a level returned the original.

Tips and common mistakes

  • Start with e-book. It's readable on screen and prints acceptably. Use screen only for previews or when a hard size limit forces you to.
  • Use custom when presets jump too far: 100–120 DPI with JPEG quality 60–75 often meets an upload limit while text in scans stays legible.
  • Grayscale helps a lot for colour scans of black-and-white documents, but check stamps and signatures that were meant to be coloured.
  • Don't compress a signed PDF you have to forward as signed. The signature will no longer validate.
  • Compressing an already compressed PDF again rarely helps and loses more quality each time. Go back to the original instead.
  • Occasionally a "smaller" preset gives a larger file than the next one, because Ghostscript chooses the image encoding itself. That's why the comparison is useful: check the actual sizes.

FAQ

Why does the tool say "no saving possible"?

The PDF is mostly text or already optimised, so rewriting it would make it larger. Rather than give you a bigger file, the tool returns your original.

Will text stay sharp?

Yes, real text stays vector text at every level. Only images are downsampled. Text inside scanned pages is part of an image, so it gets softer at low DPI.

Can I compress a password-protected PDF?

Yes, with the password. It's only used to open the file for this job and is deleted afterwards.

Is metadata kept?

The document title and author are kept. XMP metadata is removed, and dates and random IDs are stripped so the same input always gives the same output.

Guide last updated:

For scripts and AI agents

  • JSON API: POST https://pdfcompressor.usefulweb.site/api/v1/calculate (same calculation as this page)
  • Interface description: OpenAPI 3.1 · AI guide: llms.txt
  • MCP server (Streamable HTTP): https://pdfcompressor.usefulweb.site/mcp · tool name pdf_compressor
Example request
curl -s -X POST https://pdfcompressor.usefulweb.site/api/v1/calculate \
  -H 'content-type: application/json' \
  -d '{…see OpenAPI examples…}'
Feedback · ideas & bug reports welcome