HexaMedia — Free Online PDF & Image Optimizer

Compress PDF

Reduce the size of your PDF files with an adjustable quality slider. Everything runs in your browser, so your documents never leave your device.

Drop PDF files here

or click to browse — multiple files supported

60%

How Compress PDF Works

Compress PDF runs the pdf-lib and PDF.js JavaScript libraries directly in this browser tab, so no file is ever sent to a server. What happens depends on the file's size. PDFs over 500 KB are rendered page by page onto an in-memory canvas at 2x scale and re-encoded as JPEG images at your chosen quality, then reassembled into a new document. That rasterized version is only kept if it actually ends up smaller than the original; otherwise HexaMedia falls back automatically to a lighter pass. PDFs at or under 500 KB skip rasterization entirely and go straight through that lighter pass, which removes unused objects and cleans up metadata without touching any text or image content.

1. Drop your PDF(s)

Drag one or more PDF files into the drop zone, or click to browse. There's no limit on how many files you can queue at once.

2. Set the quality

Drag the slider anywhere from 10% to 95%, or pick a preset: Small (30%), Balanced (60%), or High Quality (80%). Then click Compress All.

3. Download the result

Each file shows its original size, compressed size, and the percentage saved. Download files one by one or all at once.

What to Expect

Large files may lose text selection

For PDFs over 500 KB, HexaMedia first tries the rasterized version, and only keeps it if it's actually smaller than the original (some already-efficient, text-heavy PDFs don't shrink that way, in which case the lighter pass is used instead). When the rasterized version is kept, every page becomes a JPEG image: same appearance, but the text can no longer be selected or searched.

Small files won't shrink much

Files at or under 500 KB only get the lighter cleanup pass: unused objects and metadata removed, nothing else. If your file is already lean, expect little to no size reduction; the file list will mark it 'Already optimal.'

Frequently Asked Questions

What's the difference between the quality slider and the presets?
The three presets are shortcuts for common slider values: Small sets quality to 30%, Balanced (the default) to 60%, and High Quality to 80%. You can also drag the slider to any value between 10% and 95% for finer control.
Will compressing my PDF make the text unselectable?
Only if the file is over 500 KB and the rasterized version ends up smaller than the original. In that case every page becomes a JPEG image, so text can no longer be selected or searched. Files of 500 KB or under only go through the lighter cleanup pass, which leaves text and vector content untouched.
Why didn't my PDF get any smaller?
Two things can cause this. Files at or under 500 KB only receive a light cleanup of unused objects and metadata, which may not shrink an already efficient file. For larger files, if rasterizing the pages doesn't actually produce a smaller result, HexaMedia keeps the original content instead, marked 'Already optimal' in the file list.
Can I compress several PDFs at once?
Yes. Drop or select multiple files and they're queued together. Click Compress All to process them one after another, with a progress bar per file and a combined summary of original size, compressed size, and space saved.
Is my PDF uploaded anywhere during compression?
No. Compression runs entirely in your browser tab using the pdf-lib and PDF.js JavaScript libraries. The file never leaves your device, nothing is sent to a server at any point.

Your PDF Stays on Your Device

Every render, every re-encode, and every byte of the compressed output happens locally in this tab. HexaMedia never uploads your PDF to a server, keeps no copy of it, and requires no account. Close the tab and nothing remains but the file you downloaded.