resizedphoto

Compress PDF

Reduce the size of a document.

Drop your PDF file here or browse

Supports multi-page PDF documents

Advertisement

How to compress a PDF

Compressing PDF documents directly inside your web browser offers the ultimate combination of speed, file size reduction, and total data confidentiality. Traditional online PDF compressors require you to upload private tax filings, medical histories, academic transcripts, or legal contracts to third-party cloud servers, creating substantial privacy and data breach risks. resizedphoto operates on a zero-upload client-side architecture: your PDF is decoded, rendered, and re-encoded entirely inside your device's local memory using WebAssembly and HTML5 Canvas technology. Whether you need to shrink a 25 MB scanned report down to under 500 KB for an official recruitment portal or downsize an email attachment, our in-browser compressor delivers instantaneous results without transmitting a single byte over the network.

  1. Load Your PDF & Review Baseline Diagnostics. Drag and drop your PDF document onto the upload area or click the browse button to select a file from your device. The client-side parser immediately reads the document header, displaying the exact byte size, total page count, and an interactive high-resolution canvas preview of the first page.
  2. Select Compression Strategy & Display Density. Toggle between Quality Mode and Target KB Mode. In Quality Mode, adjust the visual slider (from 10% to 100%) to balance compression artifacts against file weight. In Target KB Mode, input your exact required ceiling (such as 100 KB, 200 KB, or 500 KB for government portal uploads), and set the resolution scale (1.0x for standard 72 DPI display up to 2.0x for crisp high-DPI reading).
  3. Re-encode Pages & Download Optimized Document. Click the Compress button to initiate the local re-encoding pipeline. A live progress tracker displays real-time page processing and calculates the exact byte savings and percentage reduction. Once complete, click Download PDF to save your optimized document instantly to your local storage.

Technical specifications & privacy

Our PDF compression engine combines PDF.js page rendering with html-canvas re-encoding and pdf-lib document compilation. When a document is loaded, its internal /Pages tree and XRef (cross-reference) tables are parsed into memory. Each page viewport is rasterized onto an off-screen HTML5 Canvas context where optimized JPEG quantization tables compress photographic elements and redundant background scan noise. In Target KB Mode, an iterative binary search algorithm calculates the optimal quality factor within ±3% tolerance across test passes. The compressed raster streams are then packaged into fresh PDF /XObject dictionaries with FlateDecode filters. To prevent browser tab memory exhaustion on long documents (50+ pages), canvas contexts are systematically flushed and garbage-collected sequentially, ensuring stable execution on both mobile devices and desktop browsers.

Troubleshooting & common issues

Cannot reach target size (e.g. 100 KB) on a multi-page document

A document containing 10 or more pages has a mathematical structural byte floor (PDF catalog, font dictionaries, and page headers) that exceeds 100 KB even at aggressive compression. Lower the resolution scale slider from 1.5x down to 1.0x or 0.8x. If the file remains too large, split the document into smaller chapters using our Split PDF tool before compressing.

Fine text appears blurry or washed out after compression

Setting JPEG quality below 50% or using a 0.8x resolution scale introduces lossy quantization artifacts around high-frequency character edges. Switch to Quality Mode, set the slider to at least 70%, and increase the resolution scale to 1.5x. This preserves sharp font contrast while still discarding unnecessary background noise.

Password-protected PDF fails to load in compressor

Client-side JavaScript cannot decrypt encrypted binary PDF streams without the corresponding decryption key. Open the document in your system's native PDF reader (such as Adobe Acrobat or Chrome), enter the password, print/save it as an unlocked PDF, and load the unlocked file into the compressor.

Browser tab crashes or freezes during 100-page batch compression

Mobile devices and low-RAM laptops have strict V8 memory limits (~1 GB per browser tab), which can be exceeded by buffering dozens of uncompressed canvas bitmaps simultaneously. Process large documents in smaller segments of 25 to 30 pages using Split PDF, compress each part, and recombine them with Merge PDF.

Common questions

How does in-browser PDF compression work without uploading to servers?

The entire compression pipeline runs within your browser's JavaScript and WebAssembly engine. The tool uses PDF.js to render page streams into local canvas buffers and pdf-lib to recompile the compressed images into a new PDF document in device RAM. No file data is ever transmitted to an external server.

What is the difference between Quality Mode and Target KB Mode?

Quality Mode gives you direct manual control over image compression percentages (10% to 100%). Target KB Mode allows you to specify an exact file size limit (such as 200 KB); the engine automatically runs iterative test passes to determine the optimal quality setting that stays strictly beneath your limit.

Why do scanned PDFs shrink dramatically while digital vector PDFs shrink less?

Scanned PDFs consist of large, uncompressed bitmap images captured by scanner hardware, which contain massive redundant data that JPEG quantization can compress by 70% to 90%. Digital vector PDFs already consist of compact text instructions and system font references, which have minimal redundant image data to strip away.

Will text remain selectable and searchable after compression?

Because pages are rendered and re-encoded as high-density photographic page representations to maximize file weight reduction, vector text selectability is replaced by visual text. If your application strictly requires searchable text, use a high resolution scale (1.5x or 2.0x) or consider extracting the text first using our Extract PDF Text tool.

How can I meet strict 100 KB or 200 KB limits for recruitment portals (UPSC, SSC, State PSC)?

Switch to Target KB Mode, enter your portal's required ceiling (e.g., 100), and set the resolution scale to 1.0x. The compressor will calculate the exact mathematical parameters needed to deliver a compliant file on your first attempt.

Does compressing a PDF affect its print quality?

For standard office printers (300 DPI), compressing at 1.5x or 2.0x resolution scale maintains crisp, legible text and diagrams. Compressing below 50% quality at 1.0x scale is optimized for screen viewing and mobile portals rather than fine art reproduction.

Why is my compressed output file slightly larger than the target KB limit?

Target KB calculations account for image data, but final PDF serialization includes fixed PDF catalog overhead, cross-reference tables, and trailer dictionaries. These structural elements can add 2 to 5 KB to the final output file.

Can I safely compress confidential bank statements, tax returns, and legal contracts?

Yes. Because resizedphoto processes files 100% locally on your machine, confidential numbers, signatures, and personal identifiable information (PII) never leave your device. You can even disconnect your internet connection while compressing.

Related tools