Part of PDF Conversion

PDF ToolsPDF

Free PDF Compressor

Compress PDFs with four engines: Smart Hybrid (preserves vector text), Raster (for scans), Target File Size, or Lossless. 100% private — in-browser.

Zero Server Upload (100% Private)No Watermarks & UnlimitedNo Signup Required
TA
Tanbir Ahamed
Published June 2026

Interactive Tool Workspace

Your files never leave your device — 100% private
Drag & drop a PDF here or click to browse
PDF — contracts, scans, reports, slides (any size)

How to Use

  1. 1Drag & drop a PDF or click to browse.
  2. 2Choose an engine: Smart Hybrid (recommended), Raster (for scans), or Target File Size.
  3. 3Select a compression preset (Balanced, Strong, Extreme, or Light).
  4. 4Optionally toggle Grayscale for an additional 40–60% reduction on text scans.
  5. 5Click "Compress PDF" and download your reduced file.

Features

  • ✓Smart Hybrid engine: Downsamples embedded images while keeping text 100% crisp & selectable
  • ✓Raster engine: Full-page compression with white background fill for scanned paperwork & receipts
  • ✓Target File Size mode: Guarantees files under 200KB, 500KB, 1MB, 2MB, or custom size
  • ✓Optional Grayscale mode for ~40–60% extra byte reduction on documents
  • ✓Live progress tracking with stage feedback
  • ✓Side-by-side original / compressed / reduction readout with honest stats
  • ✓100% client-side via WebAssembly & Canvas — zero server uploads for complete confidentiality
  • ✓Preserves PDF bookmarks, metadata, links, and forms in Smart mode
Comprehensive Guide & Reference

Comprehensive Technical Guide to PDF Compression & Optimization

An engineering deep-dive into how PDF compression works, the difference between Smart Hybrid and Raster engines, resolution trade-offs, and in-browser privacy architecture.

1. What PDF Compression Actually Does

Portable Document Format (PDF) files are container archives holding heterogeneous assets: PostScript vector instructions, embedded TrueType/OpenType font programs, cross-reference tables (XREFs), document metadata dictionaries, and embedded raster images (JPEG, PNG, TIFF, or raw CCITT facsimile scans).

PDF documents inflate in size for three primary reasons:

  • High-Resolution Embedded Bitmaps: Cameras, office flatbed scanners, and photo editors frequently embed uncompressed or 300+ DPI images into PDFs, resulting in 10MB–50MB file sizes for simple multi-page reports.
  • Uncompressed Streams & Legacy Object Tables: Older PDF exporters store font metrics, page descriptions, and metadata dictionaries as individual indirect objects, creating massive redundant byte overhead.
  • Redundant Full Font Embedding: When a document embeds an entire 15MB font family instead of subsetting only the specific glyph characters used in the text.

2. Smart Hybrid vs. Raster Engines

Smart Hybrid Engine (Recommended)

Inspects the internal PDF structure and extracts embedded images. It downsamples large bitmap streams and re-encodes them to high-efficiency JPEG while leaving vector text instructions, fonts, bookmarks, and form fields completely intact.

✓ 100% searchable text, crisp vector typography, 40–80% size shrink.

Raster Engine (Best for Scans)

Renders every page onto an HTML5 canvas at a specified DPI (72–150 DPI) with white background fill, compresses the canvas to JPEG, and rebuilds a brand new PDF.

✓ Maximum reduction on physical paperwork, scanned receipts, and government forms.

3. Meeting Strict File Size Upload Limits

Government portals, academic submission systems, visa processing systems, and email providers enforce rigid file size ceilings (e.g., "PDF must not exceed 500 KB" or "File limit: 1 MB").

Our Target File Size mode computes a dynamic per-page budget:

Page Budget = (Target File Size × 0.90) ÷ Total Document Pages

It automatically selects the highest possible DPI and JPEG quality factor that fits within this budget, then runs an automated verification pass to ensure the final output complies with your target limit.

4. In-Browser Privacy & Security

Traditional online PDF compressors upload your confidential contracts, medical records, tax filings, and bank statements to remote cloud servers.

FreeToolWise executes 100% of the compression pipeline directly inside your browser tab using WebAssembly and hardware-accelerated HTML5 Canvas. Your documents never travel across the internet, ensuring full compliance with HIPAA, GDPR, and confidentiality requirements.

Real example

Real example: shrinking a color scan for email

Input
Upload: scanned-contract.pdf (2.4 MB, color pages at 300 dpi) · Quality: medium
Output
→690 KB at medium quality, text still crisp — about 71% smaller, now easy to attach to any email.

Medium quality re-encodes the page images at lower resolution; text-heavy scans stay legible while photo-heavy pages lose the most weight.

Real example: when quality matters more than size

Input
Same 2.4 MB scan · Quality: high
Output
→About 1.6 MB at high quality — bigger than medium but visually near-identical to the original scan.

Try medium first and zoom to 100% to check the text; step up to high only where pages look soft.

Privacy & data handling

This tool runs entirely in your browser. What you enter is processed on your own device using JavaScript and WebAssembly — it is not uploaded to our servers, and there is no account, no signup and no per-use limit. Read our privacy policy.

Frequently Asked Questions

How does Smart Hybrid compression reduce PDF size without losing text quality?
Over 90% of a typical PDF’s file size comes from embedded high-resolution bitmap images (photos, logos, scanned pages, or charts). Smart Hybrid mode analyzes the internal PDF object graph, extracts and downsamples those images to an optimal resolution, and re-compresses them using modern JPEG encoding. Because vector text instructions, TrueType/OpenType fonts, and bookmarks are preserved untouched, text remains 100% crisp, zoomable, and searchable.
When should I choose Raster (Scans) mode over Smart mode?
Choose Raster mode when your document originated from a physical scanner, phone camera scan, or contains complex rasterized artwork. Raster mode renders every page onto an HTML5 canvas with a clean white background, compresses each page to optimized JPEG, and re-packages them into a clean PDF. It is the most powerful method for physical paperwork, receipts, and government forms.
How does the Target File Size mode work?
Target File Size mode calculates an exact byte budget per page based on your desired maximum size (such as Under 500 KB or Under 1 MB). It dynamically chooses the optimal DPI and compression ratio, verifies the resulting file size, and automatically refines the output so your PDF fits under upload limits on government portals, job applications, or university submissions.
What does the Grayscale toggle do?
The Grayscale toggle converts all color image streams to single-channel luminance data. For black-and-white documents, contracts, legal filings, and scanned receipts, discarding unnecessary RGB color channels reduces file weight by an additional 40–60% without any loss of textual legibility.
Are my confidential PDF documents uploaded to a remote server?
Never. Processing runs 100% locally inside your browser using client-side WebAssembly and modern web APIs (pdf-lib, pdfjs-dist, and Canvas). Your confidential legal contracts, medical records, financial tax forms, and IDs never travel across the internet.
Why did my previous compressor not reduce the PDF file size?
Many basic PDF tools only re-save the PDF container using standard object streams without modifying internal images. If a PDF already contains pre-compressed streams or large embedded photos, container-only tools achieve 0% reduction or even increase file size. Our engine actively optimizes embedded images and page layouts to ensure real, significant file size reductions.
Can I compress password-protected or encrypted PDFs?
Encrypted PDFs must be unlocked before compression because the browser cannot parse encrypted object streams without the decryption key. Use our free PDF Unlock tool first to remove the password, then compress the unlocked file here.
What is the maximum PDF file size supported?
Because processing occurs in local browser memory (RAM), files up to 50MB–100MB compress smoothly on modern desktop browsers (Chrome, Edge, Firefox, Safari). On mobile devices with constrained memory, documents under 30MB or up to 100 pages perform best.

Related Tools

Topical Collection

Explore all tools in PDF Conversion

View collection

Related Guides