Size limit
Compress a PDF so it fits into any email
An attachment that exceeds your mail provider's size limit may bounce or turn into an unwanted cloud link. Scanned contracts and image-heavy presentations easily exceed standard 20 MB or 25 MB caps. This guide shows how to compress your document directly in your browser, balance image quality against file size, and verify readability before hitting send.
To fit a PDF under Gmail's 25 MB limit (around 18 MB raw after Base64 email overhead), compress it locally in your browser with zero uploads. Use lossless object-stream repacking to preserve selectable text, or switch to strong JPEG re-rendering at 96 to 150 DPI with optional grayscale to shrink image-heavy scans quickly.
Step by step
- Open the PDF compressor and drop your file in. It is processed locally in the tab: nothing is uploaded, which also means no waiting for an upload.
- Pick the mode that fits your case: lossless repacking keeps the text selectable and every pixel intact, while the strong mode re-renders pages at a lower image resolution and shrinks scanned documents dramatically.

- Download the result and attach it. Aim a little under the cap: around 20 MB leaves room for the email’s own encoding overhead.

Why your PDF is so heavy
Large scans and embedded photographs can account for much of a PDF's size. Fonts and other document objects also contribute, but a small text-only PDF may already be compressed efficiently. The lossless mode re-saves the document with compressed object streams and returns the original bytes if that would not reduce its size. Strong mode renders whole pages as JPEG images and rebuilds the PDF. It can reduce an image-heavy document, but the saving depends on the source and settings. Compare the actual result instead of assuming a particular reduction.
| Feature | Gmail / Google Workspace | Outlook / Microsoft 365 | Apple Mail / iCloud |
|---|---|---|---|
| File size cap | 25 MB (Base64: ~18 MB PDF) | 20–25 MB (Base64: ~15–18 MB) | 20 MB (Mail Drop > 20 MB) |
| Output & limits | Base64 Overhead: +33% | Base64 Overhead: +33% | Base64 Overhead: +33% |
If compression is not enough
Email MIME transport encodes binary attachments in Base64, inflating a raw PDF by roughly 33%, so an 18 MB file already approaches a 25 MB mailbox ceiling. When stripping metadata, switching to grayscale, or lowering scan DPI still leaves the file too heavy, split the document into numbered parts with the PDF splitter or extract only the pages your recipient needs with the page organizer. Both run locally, and sending targeted pages avoids forcing recipients to download a 60-page file for two relevant sheets.
| Feature | Scanned Contract (300 DPI) | Office / Vector Export | Aggressive Compression |
|---|---|---|---|
| Reference | DCT / JPEG Stream Downsample | Flate / Deflate Font Subset | 72–200 DPI JPEG (Strong Mode) |
| File size cap | -60% to -80% | -10% to -30% | Smaller Output (Depends on Pages/DPI) |
What PDF compression actually changes in the file
The two compression modes make different changes. Lossless mode loads the PDF with pdf-lib and saves it with object streams, returning original bytes if no savings occur. Strong mode renders full pages to JPEG at your chosen preset (72, 96, 150, or 200 DPI) with adjustable JPEG quality, up to 100 pages on desktop or 50 pages on mobile. You can also strip document metadata and annotations, or convert pages to grayscale in strong mode for smaller scans. Keep the source document and inspect text, signatures and pages before sending.
The tools used in this guide
- Compress PDFCompress a PDF with lossless stream optimization or strong 72–200 DPI image compression and grayscale conversion.
- Split PDFExtract PDF pages by custom ranges or split a document into chunks, equal parts, halves, or odd/even files locally.
- Organize PDF pagesReorder, rotate, duplicate, insert blank pages, or remove PDF pages using visual thumbnails, then export your reorganized PDF.
- PDF Optimizer & Structural Stream CompactorCompact PDF 1.5+ object streams, strip XMP and DocumentInfo metadata, and sweep private PieceInfo dictionaries locally in your browser.
Frequently asked questions
Will the text stay sharp after compression?
Lossless mode does not rasterize the pages, so existing text remains text. Strong mode rebuilds pages as images at 72, 96, 150, or 200 DPI, and text is no longer selectable. Small characters and fine lines may lose detail even when the page looks acceptable at its default zoom. Open the downloaded copy, inspect the smallest text at a useful zoom and print a sample if the recipient will print it. Use the lossless result or another delivery route if the stronger version is not readable. A 16-million-pixel desktop cap (8 million pixels on mobile) can lower the effective resolution on very large pages, so the selected DPI preset is not a guaranteed minimum resolution.
Does the PDF compressor send my file to a server?
No. The compressor runs entirely inside the browser tab. In lossless mode, pdf-lib repacks the document’s internal streams; in strong mode, pdf.js re-renders each page to an image before reassembly. Either way the PDF bytes never cross a network boundary. Open DevTools, switch to the Network panel and watch during compression: no request carries your file out. It also works offline once the page has loaded, useful when you are at a client site with a slow connection.