Compress PDF to Any Size in Your Browser

Select any PDF below, type your exact target file size in KB or MB, and compress it locally in your browser. Hashvex PDF first tries a lossless object-stream pass that keeps your text selectable, and only rasterizes pages if needed to fit your limit—without ever uploading your file to a server.

How Browser-Based Target-Size Compression Works

Most online compressors force you to upload sensitive contracts, resumes, or scanned IDs to a remote cloud queue and guess between vague presets like "Low" or "Medium." Hashvex PDF solves both problems in your browser: you set the exact ceiling your upload form demands, and your document stays on your machine from start to finish.

Two-Stage Compression Strategy

Choose a Preset Target Size

Need a quick preset for an application portal or email attachment? Jump straight to a dedicated size tool below.

Preset PDF Size Compressors

Frequently Asked Questions

Are my PDF documents uploaded to a server?

No. Every step runs locally inside your browser using WebAssembly and HTML5 Canvas. Your PDF never leaves your device.

Does compressing a PDF keep my text selectable?

Yes, whenever possible. Step A re-saves your PDF using compressed object streams without touching fonts or vector text. Only if the file is still larger than your chosen limit does Step B convert pages into optimized JPEG images.

How does the tool hit an exact KB or MB target?

When rasterization is required, the compressor tests resolution scales from 150% down to 50% and runs a binary search over JPEG quality levels to find the sharpest version that stays safely under 97% of your target size.

What if my PDF cannot reach a very small limit?

If a multi-page or image-heavy PDF cannot fit under the requested ceiling even at the lowest safe scale, Hashvex PDF tells you honestly, shows the smallest size achieved, and lets you download it or adjust your settings.