This free compress PDF widget lets visitors reduce the size of their PDFs on your website before they upload or email them. They choose a compression level, or type an exact limit such as 200 KB or 1 MB, and download a lighter file with the text still sharp. If your site has an upload limit, this widget turns “file too large” errors into a two-click fix.
Live preview – this is the real widget. Try it.
Customise your widget
The widget grows and shrinks to fit its content automatically, so visitors never see a scroll bar inside it.
Free forever. No sign-up, no API key, no ads inside the widget. Paste it into any page (WordPress: Custom HTML block).
What the Compress PDF widget does
The widget runs our Compress PDF tool. Unlike compressors that turn every page into a blurry picture, it shrinks the photos and scans inside the PDF and leaves text untouched. Visitors can use:
- Three levels: Low (best quality), Recommended and Strong (smallest file).
- An Exact size mode, where they type a limit in KB or MB.
- A Black & white option that makes scanned forms much smaller.
- Old and new size shown for each file, and several PDFs at once.
- Removal of hidden extras such as embedded thumbnails and metadata.
How each level works and why PDFs get so big is explained on the Compress PDF tool page. Your widget puts the compressor right where visitors meet your size limit.
Who should add a compress pdf widget to their website
Any site that accepts PDF uploads with a limit can use this widget. It works especially well for:
- Job portals and application pages – “upload your CV, maximum 2 MB” is a common barrier. A compressor beside the upload field keeps applicants from giving up.
- Colleges and universities – admission and exam portals often limit documents to 100–500 KB. Place the widget on the instructions page.
- Government-form help sites – guides explaining how to apply for certificates or schemes can show the compressor at the document step.
- Real estate and loan agents – document packs of scanned agreements and statements are often huge; clients can compress them before emailing.
- Online course and assignment sites – students submitting scanned assignments can bring them under your platform’s limit.
How your visitors use it
- The visitor chooses one or more PDF files.
- They pick a level, or choose Exact size and type the limit, for example 200 KB.
- For scanned forms they can tick Black & white for a much smaller file.
- They click Compress, compare the old and new sizes, and download.
Tip: write your exact upload limit in the line above the widget so visitors know what to type in Exact size.
How to add the Compress PDF widget to your website
Set the colour and size in the box above, click Copy code, then paste the code where the Compress PDF widget should appear. It is plain HTML (an iframe, one credit line and a tiny height script), so you need no account, API key or plugin.
| Platform | Where to paste the code |
|---|---|
| WordPress | Add a Custom HTML block and paste. Elementor: HTML widget. Classic editor: Text tab. |
| Any HTML site | Paste anywhere inside <body>. No jQuery or other library needed. |
| Blogger | Post editor in HTML view, or Layout › Add a Gadget › HTML/JavaScript for every page. |
| Wix | Add › Embed Code › Embed HTML, paste, then set the box height yourself (about 650–750 px). |
| Shopify | Online Store › Pages › Show HTML (<>), or a Custom Liquid section in the theme editor. |
| Google Sites | Insert › Embed › Embed code, then drag the box tall enough for the whole tool. |
Where to put it: Paste it right under the sentence that states your PDF size limit. Put it next to your upload form, so visitors compress and upload without switching tabs. To remove the widget later, simply delete the code.
Customise the Compress PDF widget
| Setting | Options | Tip for the Compress PDF widget |
|---|---|---|
| Button colour | Any colour (colour picker) | Use your brand colour for the Compress button and the selected level. |
| Maximum width | 760 px (recommended), 600 px, 480 px for sidebars, or full width | 600–760 px fits the level choices and results comfortably. |
| Starting height | 480, 560 (recommended) or 680 px | 560 px shows the start screen well; results expand it automatically. |
Size and mobile
On phones, the level buttons stack and the Exact size box opens a number keypad. Results for each file are shown as clear cards with before and after sizes. The iframe stays inside your column on any screen and adjusts its height as files are compressed, so the page around it never jumps oddly or shows a second scroll bar.
Light on your page and always up to date
The iframe uses lazy loading, so the browser only loads the widget when a visitor scrolls near it. Inside the widget there are no ads, no analytics and no tracking scripts. The PDF libraries are fetched only when a visitor chooses a file, and compression runs on the visitor’s device. Your server does no work, even if hundreds of applicants use the widget during a deadline.
PDF compression keeps getting better. When we improve image handling or add options, your widget gets the update automatically. You never need to change the code.
When the Compress PDF widget is not the right fit
- PDFs that contain only text are usually small already, so they shrink very little. The biggest savings come from scans and photos.
- When a very small Exact size is impossible otherwise, pages are saved as images; the tool tells the visitor when this happens, and text can no longer be selected.
- Password-protected PDFs need to be unlocked first with our Unlock PDF tool.
- On Wix and Google Sites the widget cannot resize itself, because those builders keep embedded code in a closed frame. Set a fixed height there.
Privacy for your visitors
Applicants compress CVs, certificates and ID scans with this widget. The files are processed inside their own browser and never uploaded to our server or yours. Nothing is stored, no account is needed, and the widget contains no cookies or ads.
Is the compress PDF widget free?
Yes. It is free for any website, with unlimited use, no sign-up and no API key. Please keep the credit line under it.
Can visitors compress a PDF to a specific size like 100 KB?
Yes. They choose Exact size and type the limit in KB or MB, and the tool finds the best quality that fits.
Does compression make text blurry?
No. The tool shrinks images inside the PDF and leaves text, fonts and lines untouched, except when a very small exact size forces it to save pages as images.
Are PDFs uploaded to a server?
No. Compression runs in the visitor’s browser and files never leave their device.
Will it slow down my site?
No. The widget is lazy-loaded and loads its PDF libraries only after a visitor chooses a file.
Does it work on mobile?
Yes. It works in modern browsers on Android phones and iPhones.
Can I show it with the Merge PDF widget?
Yes. Many sites place both on one page: merge first, then compress to meet the upload limit.