PDF

How to Compress PDF Without Losing Quality, and What Really Gets Lost

No browser compressor keeps every detail. We measured what Dokurapi keeps and what it drops, with zoomed crops of small print, a signature and a stamp, so you can judge your own file.

Updated ยท 12 min read

Screenshot of the Compress PDF tool tool on Dokurapi
Screenshot of the related Dokurapi tool. All processing runs in the browser.

If you want to compress PDF without losing quality, start with an honest fact: Dokurapi's Compress PDF tool does not keep text as text. It turns every page into a JPEG picture inside your browser, so some sharpness is always traded for size. What you can control is how much. For scans and photographed documents the loss is often invisible at normal zoom, while for PDFs exported from a word processor the loss is real and the file may even grow.

This guide shows where that line sits. We made a two-page synthetic letter with 12, 10, 8 and 6 pt text, a table, a signature and a round stamp, saved it once as a scan and once as a digital PDF, and ran both through the live tool on 18 October 2026. Every size below comes from a downloaded file, and every behaviour comes from the tool's own code. No real person or document was used.

What "without losing quality" can honestly mean

There are two very different promises hiding in the phrase. The first is lossless: the file shrinks but every letter, line and pixel is the same as before. That only works when a compressor rewrites the PDF's internals, for example by repacking fonts or recompressing embedded photos while leaving the text layer alone. Dokurapi does not do this, and we would rather say so than let a headline suggest otherwise.

The second promise is practical: the person who opens your file can still read every word, check every number and recognise the signature. For an upload form, that is usually what counts. A reviewer looks at the page on screen, maybe zooms in on a document number, and moves on. If that check succeeds, the compression did its job even though the file is technically different.

So in this article, "quality" means legibility for a human reader, measured at the zoom a reviewer would actually use. We look at three things that break first: small print at 8 pt and 6 pt, characters that look alike such as 0 and O or 1 and l, and the fine strokes of a signature or stamp. If you need selectable text, working links, fillable fields or a valid digital signature, no setting in this tool will keep them, and the section on digital PDFs explains what to do instead.

Ready to try it? The tool is free and runs in your browser.

Open the Compress PDF tool

What the Compress PDF tool does to every page

The behaviour below comes straight from the tool's script. Each page is drawn by Mozilla PDF.js onto a canvas at a chosen scale. PDF pages are measured in points, and the PDF 1.7 specification (ISO 32000-1, section 8.3.2.3) sets the default unit at 1/72 inch, so a scale of 1.0 gives 72 pixels per inch. The canvas is saved as JPEG with the browser's canvas toDataURL quality setting, and pdf-lib wraps the pictures into a new PDF.

The tool tries four render scales (1.2, 1.0, 0.82 and 0.68) and, for each scale, three JPEG qualities (0.78, 0.64 and 0.50). That makes twelve possible tries, run in order from sharpest to smallest. It stops at the first try that fits under the safe target, which is your target minus 6%. A 500 KB target therefore means 470,000 bytes. If none of the twelve fits, you get the smallest one with a message that the target was not reached.

Two consequences matter for quality. First, the sharpest possible result is fixed: scale 1.2 means a 714 pixel wide page for A4, about 86 pixels per inch. A 200 dpi scan goes in, an 86 ppi picture comes out, whatever target you choose. Second, the original text layer, links, form fields and digital signatures are not copied to the new file. The tool's status line says this after every run, and the note under the tool repeats it. Your original file stays untouched on your device, as explained in how browser tools work.

Diagram of the twelve tries the Compress PDF tool runs: render scales 1.2, 1.0, 0.82 and 0.68 crossed with JPEG qualities 0.78, 0.64 and 0.50. Our 2.37 MB scan stopped at try 1 (188 KB) for the 2 MB, 1 MB, 500 KB and 200 KB targets, gave 124 KB at a custom 150 KB, 96.7 KB at 120 KB, 86.4 KB at 100 KB, 47.8 KB at 60 KB, and missed a 40 KB target with 47.8 KB.
The twelve tries in order. Every preset from 2 MB down to 200 KB ended at try 1, so they produced the same file. Diagram: Dokurapi, data from our test on 18 October 2026.

Measured results: one scan, nine targets

Our scanned letter is two A4 pages at 200 dpi with light scanner grain, 2,368,972 bytes in total. We ran it through the English tool with every preset and four custom targets, then opened each downloaded PDF to read the pixel width of the page pictures. The table lists what came back.

Scanned two-page letter (2,368,972 bytes) through Compress PDF, measured 18 October 2026
TargetDownloaded filePage width (A4)Approx. resolutionStatus
2 MB preset187,857 B714 px86 ppiTarget reached
1 MB preset187,857 B714 px86 ppiTarget reached
500 KB preset187,857 B714 px86 ppiTarget reached
200 KB preset187,857 B714 px86 ppiTarget reached
150 KB custom124,215 B714 px86 ppi, stronger JPEGTarget reached
120 KB custom96,690 B595 px72 ppiTarget reached
100 KB preset86,371 B488 px59 ppiTarget reached
60 KB custom47,761 B404 px49 ppiTarget reached
40 KB custom47,761 B404 px49 ppiNot reached, smallest result

The scan shrank by 92% at the first try, from 2.37 MB to 188 KB. Going further down costs resolution in visible steps: 714, 595, 488 and finally 404 pixels across the page. The two-page file could not go below 47,761 bytes, so a 40 KB limit would need fewer pages or a different source, a situation covered in why a compressed file is still too big.

Screenshot of the Compress PDF tool on dokurapi.com with scan-letter.pdf of 2.37 MB, target 200 KB, status Safe target reached, original 2.37 MB, output 188 KB (187,857 B), size difference 2.18 MB, and a Download PDF button.
The live tool after compressing our synthetic scan at the 200 KB preset. Screenshot: Dokurapi.

Why a looser target does not give a sharper file

Many people pick 2 MB or 1 MB in the hope of keeping more detail, then reach for a smaller preset only if the form complains. With this tool that habit buys nothing. The 2 MB, 1 MB, 500 KB and 200 KB presets all returned the identical 187,857-byte file, because the first try already fit under every one of those limits. The best quality the tool can produce is the first try, and a bigger allowance cannot unlock anything sharper.

Quality only changes when the target is tight enough to push the tool past try 1. At 150 KB it kept the 714 pixel width but used stronger JPEG compression. At 120 KB it dropped to 595 pixels, and at 100 KB to 488. The crops below show what that means for small print, rendered from the downloaded files at roughly 340% zoom so the differences are easy to see.

Five crops of the same 8 pt and 6 pt lines at about 340% zoom. Original scan sharp. 188 KB result slightly soft but readable. 124 KB result readable with more blotches. 86.4 KB result: 8 pt readable, 6 pt barely. 47.8 KB result: 8 pt hard to read, 6 pt unreadable.
Same lines, five files. The 188 KB and 124 KB results keep 6 pt print readable; at 86.4 KB the 6 pt line breaks down, and at 47.8 KB even 8 pt is a struggle. Crops of our downloaded files, rendered with MuPDF.

The practical rule is simple. Choose the limit the form actually states, not a lower number for safety, because the tool already keeps a 6% margin. If the form allows 500 KB and your file comes back at 188 KB, you have the best this tool can do. If you want to know your file's size before you start, the PDF size checker shows it without changing anything, and checking file size before upload explains how forms count kilobytes.

When the result stays readable

The tool works best when the PDF is already a picture. A scan, a phone photo of a certificate or a PDF built from camera images has no text layer to lose, so rasterising it again only changes resolution and JPEG strength. In our test the 188 KB file kept the 12 pt and 10 pt lines crisp, the 8 pt line clean and the 6 pt footnote readable with a little softness. The 124 KB file was close behind.

Signatures and stamps behave like large, simple shapes, which is good news. At 188 KB and even at 86.4 KB the signature stroke and the stamp ring stayed recognisable. What suffers first is the tiny text inside the stamp: at 86.4 KB the stamp number was hard to read, and at 47.8 KB it was gone. If your document's proof lives in a small stamp number or a tiny serial code, treat 100 KB and below as risky.

Four crops of the signature and round stamp at about 340% zoom: original scan, 188 KB result, 86.4 KB result and 47.8 KB result. The signature stays recognisable in all four; the stamp number No. 0001/TEST is clear at 188 KB, faint at 86.4 KB and unreadable at 47.8 KB.
The signature survives every target we tried. The small stamp number does not: it fades at 86.4 KB and is lost at 47.8 KB. Crops of our downloaded files.

Page size and page count change the picture too. All results here are for two A4 pages. A ten-page scan at the same target gives each page a fifth of the budget, so it slides down the ladder sooner. Our guides for 200 KB and 500 KB limits work through per-page budgets with more pages.

Digital text PDFs: where you lose the most

A PDF saved from a word processor, a spreadsheet or a web form stores letters as vector shapes. They stay sharp at any zoom, can be searched and copied, and usually take very little space. Our digital version of the same letter was only 61,836 bytes. Run through the tool at the 2 MB preset it came back at 226,176 bytes, more than three and a half times bigger, and the text became a 713 pixel wide picture.

Screenshot of the Compress PDF tool with text-letter.pdf of 61.8 KB, target 2 MB, status Safe target reached, original 61.8 KB, output 226 KB (226,176 B), size difference 0 B.
A 61.8 KB digital PDF came back at 226 KB. The tool reports a size difference of 0 B because the file grew. Screenshot: Dokurapi.

The 200 KB preset squeezed it to 180,115 bytes, still almost three times the original. In both cases the vector sharpness was replaced by soft, slightly blotchy letters, as the crops show. You lose quality and gain size, the worst of both worlds. The detailed scan versus text comparison is in our guide to reducing PDF size.

Three crops of the 8 pt and 6 pt lines at about 340% zoom: the original digital PDF with perfectly sharp vector text, the 226 KB result with soft pixelated letters, and the 180 KB result with stronger JPEG blotches.
Vector text versus the rasterised results. The original is sharp at any zoom; the compressed files are pictures of text. Crops of our downloaded files.

If your PDF is digital and already under the limit, upload it as it is. If it is digital and too big, the weight almost always comes from embedded photos, so shrink those at the source, re-export, and check again. If the PDF carries a certified digital signature that a reader can verify, do not run it through this tool at all, because the signature does not survive.

How to check legibility before you upload

A file that fits the limit can still be rejected if a reviewer cannot read it. Checking takes about two minutes and is worth doing every time. Open the downloaded file in your usual PDF viewer, keep the original open next to it, and go through this list.

  1. View the result at 100% zoom and read the first page normally. If anything already looks soft at this size, go back to a looser target.
  2. Zoom to 200% and find the smallest print on the page: footnotes, terms, the line under a logo. Read one full sentence.
  3. Check characters that are easy to confuse: 0 and O, 1 and l and I, 5 and S, 8 and B. Compare a document number letter by letter with the original.
  4. Read every number in tables, such as amounts, dates, grades and ID numbers. One wrong digit matters more than a soft heading.
  5. Look at the signature and any stamp. The stroke should be continuous and the text inside the stamp legible.
  6. Scroll through every page, not just the first. Dense pages and pages with photos degrade faster.
  7. Check the page count and order, which the tool keeps, but which is easy to confirm with the page order checklist.

If one item fails, try a target one step looser, provided the form allows it. If you are already at the form's limit, the fix is in the source file rather than in a tighter setting.

Choosing the right approach for your document

Different documents call for different moves. The table sums up what our test suggests, together with the tool's documented behaviour.

Which route keeps the most quality, by document type
Your PDFBest moveQuality risk with this tool
Scan or phone photo of a paper documentCompress at the form's real limitLow at 188 KB per two pages, rising below about 100 KB
Digital PDF already under the limitUpload the original, no compressionHigh: text becomes a picture and the file may grow
Digital PDF with large photos insideShrink the photos at the source, then export againAvoidable: keep the text layer
PDF with a certified digital signatureDo not compress; ask the issuer for a smaller copyThe signature is lost
Many pages and a very small limitSplit into the parts the form asks for, or remove blank pagesHigh if forced into one tiny file

When you build a PDF from photos yourself, quality is easier to control before the PDF exists. Compress the photos with the image compressor first, then combine them with Photo to PDF; the guide to turning JPGs into a small PDF shows the order. If you need several documents in one upload, join them with Merge PDF and compress once at the end, as in merging PDFs for submissions.

Step by step: compress with the least quality loss

These steps follow the tool's actual logic, so each one either protects quality or saves you a pointless run.

  1. Check the form's real limit and note it in KB or MB. Do not lower it "to be safe"; the tool already subtracts 6%.
  2. Check your file's size with the size checker. If it is already under the limit, stop and upload the original.
  3. Decide what kind of PDF you have. Try to select a word: if you can, it is digital, and the advice for digital PDFs applies.
  4. Open Compress PDF, choose the file and pick the preset that matches the limit, or type the exact number in Custom target.
  5. Press Compress PDF and wait for the status line. Read it: it says whether the safe target was reached.
  6. Download the result. The file name ends in -dokurapi-raster.pdf so you can tell it from the original.
  7. Run the legibility checklist above, then upload. Keep the original, since the compressed copy cannot be turned back into text.

Fixed limits have their own pages, such as 100 KB, 200 KB, 500 KB and 1 MB. They run the same engine with the preset already selected.

Sizes in this article are in decimal units, the way the tool and most forms count them: 1 KB is 1,000 bytes and 1 MB is 1,000,000 bytes, as set out by NIST's note on binary and decimal prefixes. A form that counts 1 KB as 1,024 bytes gives you slightly more room, never less.

Frequently asked questions

Can I compress a PDF without losing any quality at all?
Not with Dokurapi. The tool turns each page into a JPEG picture, so some detail is always traded for size. A truly lossless result needs a compressor that keeps the text layer and only repacks fonts and images. What this tool can do is keep the page readable for a reviewer, which our zoom tests show it does well for scans down to the 124 KB result we got for two A4 pages.
Does choosing 2 MB instead of 200 KB give a sharper PDF?
No. In our test the 2 MB, 1 MB, 500 KB and 200 KB presets produced the identical 187,857-byte file, because the tool stops at its first and sharpest try once it fits. A looser target never unlocks more detail; only a tighter one lowers it.
What is the highest resolution the compressed PDF can have?
The first try renders at scale 1.2, which is 1.2 times 72 pixels per inch, about 86 ppi. An A4 page becomes 714 pixels wide. Tighter targets step down to 595, 488 and 404 pixels.
Will small print stay readable?
At the first try, 8 pt text stayed clean and 6 pt text readable in our test. At the 100 KB preset (86.4 KB result) the 6 pt line broke down, and at 47.8 KB even 8 pt text was hard to read. Always zoom in to 200% and check before uploading.
Will my signature and stamp still be visible?
A handwritten signature stayed recognisable at every target we tried, down to 47.8 KB. Small text inside a stamp, such as a reference number, faded at 86.4 KB and was unreadable at 47.8 KB. A certified digital signature, the kind verified in a PDF reader, does not survive compression at all.
Why did my text PDF get bigger after compressing?
A digital PDF stores letters as compact vector shapes. The tool replaces them with pictures of the page, which take more space. Our 61.8 KB text PDF grew to 226 KB at the 2 MB preset and 180 KB at the 200 KB preset. Upload the original if it already fits.
Can I still select or search the text after compressing?
No. The pages become images, so text cannot be selected, searched or copied, and links and form fields stop working. Keep your original file if you need any of these.
Is my PDF uploaded to a server?
No. Rendering and compression run in your browser tab with PDF.js and pdf-lib. The file never leaves your device, and the original is not changed.

Sources

  1. Mozilla PDF.js: PDF rendering in the browser
  2. MDN: HTMLCanvasElement.toDataURL() and the JPEG quality parameter
  3. pdf-lib: create and modify PDF documents in JavaScript
  4. Adobe: Document management, Portable document format, Part 1: PDF 1.7 (ISO 32000-1:2008), section 8.3.2.3
  5. NIST: Prefixes for binary multiples

Need help?Result not quite right, or unsure about a form rule? Ask Dokurapi support on WhatsApp. Please do not send personal documents in chat.

Chat on WhatsApp

Related articles

Try Dokurapi for Free

No account needed. Pick a tool, drop in a file, and download the result, free.