PDF

How to compress a PDF to 50KB, and when it cannot fit

Fifty kilobytes is a one page budget for most scans. Here are the steps, how the tool searches for a result, and what happened when we pushed 1, 2 and 3 page scans under the same limit.

Updated ยท 11 min read

Featured image: How to compress a PDF to 50KB, and when it cannot fit, with a real screenshot of the Compress PDF tool tool on Dokurapi
Inside the frame: a real screenshot of the Dokurapi tool. All processing runs in the browser, nothing is uploaded.

To compress a PDF to 50KB, open Dokurapi's free Compress PDF tool, choose the file, type 50 in the Custom target (KB) box, press Compress PDF, and read the Output line before you press Download PDF. The tool aims 6% below your number, so a 50 KB target means a file of at most 47,000 bytes. The file never leaves your browser tab. In our test a 1.50 MB one page scanned form came out at 41,455 bytes in about two seconds.

The honest part comes next. Fifty kilobytes is a tiny budget, and for scanned pages it usually covers one page, sometimes two. Our two page form ended 191 bytes above the safe line, and a three page bundle could not get closer than 77,770 bytes. This guide shows the steps, the twelve attempts the tool makes, real numbers from three test files, and what to do when the target is out of reach. If your limit is larger, our guides to 100 KB and 200 KB give the pages more room.

Steps to compress a PDF to 50KB

You need no account and no app. The tool makes a new copy and never changes the file you chose, but keep the original anyway in case the result is too soft to read.

  1. Check the size and page count first. Our PDF size checker shows both. If the file has more than two scanned pages, read the section on page count before you start.
  2. Open the Compress PDF tool and choose one PDF. The preset menu starts at 100 KB, so 50 KB needs the custom box.
  3. Type 50 in the Custom target (KB) box. A number in this box always wins over the preset menu, even if the menu still shows another size.
  4. Press Compress PDF. A one page file finishes in a few seconds. Longer files take longer because the tool may try all twelve settings.
  5. Read the status line and the Output figure. Green text that says the safe target was reached means the file is at or under 47,000 bytes. Grey text that says the target was not reached means you got the smallest file the tool could make.
  6. Open the downloaded PDF and zoom in. At 50 KB the pages are small images, so check names, numbers and stamps before you upload.
Dokurapi Compress PDF tool with 50 typed as the custom target, showing a 1.50 MB scan reduced to 41.5 KB (41,455 bytes)
Our first test in the live tool: a synthetic one page scanned form of 1.50 MB with 50 typed in Custom target (KB). The safe target was reached at 41,455 bytes and the status line warns that the page was rasterized.

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

Open the Compress PDF tool

How the tool searches for a 50KB file

The compressor does not guess one setting. It draws each page as a picture, saves the picture as a JPEG, rebuilds the PDF, and measures the whole file. It can make up to 12 attempts: four page widths (scales 1.2, 1, 0.82 and 0.68 of the page size, which is 714, 595, 488 and 404 pixels for an A4 page) combined with three JPEG qualities (78%, 64% and 50%). The quality number goes to the browser's image encoder, described in MDN's toDataURL reference.

It starts with the sharpest pair and walks down. As soon as one attempt is at or under the safe line, it stops and offers that file. For 50 KB the safe line is 50 x 1,000 x 0.94 = 47,000 bytes. The tool counts 1 KB as 1,000 bytes, the decimal convention explained by NIST.

Our one page scan needed six attempts. The first five were between 103,078 and 53,121 bytes, all too big. Attempt 6, 595 pixel pages at quality 50%, came in at 41,455 bytes, so attempts 7 to 12 were never made. If none of the 12 attempts fits, the tool keeps the smallest one and tells you the target was not reached. The same search runs for every size, as our guide to a specific size explains.

Twelve bars for the twelve compression attempts on a 1-page scan, with a dashed safe line at 47,000 bytes and attempt 6 marked as the stopping point
All 12 possible attempts for our one page scan, measured with the same code the tool uses. Attempts 1 to 5 were above the 47,000 byte safe line, attempt 6 (595 px pages at quality 50%) fitted at 41,455 bytes, and the tool stopped there.

What the live tool returned in our tests

We made three synthetic scans with no personal data: off white paper, scanner noise, a heading, and lines of sample text, saved as high quality JPEG pages inside a PDF. That is close to what a phone scanner app or an office copier produces. Each file went through the live tool with a 50 KB custom target.

Compress PDF to 50KB: results on three scanned PDFs (English test files, November 2026)
Test fileOriginalResultAttempt usedStatus in the tool
1 page form1.50 MB41,455 B6: 595 px, 50%Safe target reached
2 page form3.07 MB47,191 B12: 404 px, 50%Target not reached (191 B over the safe line)
3 page bundle4.69 MB77,770 B12: 404 px, 50%Target not reached

The pattern is clear. One page fitted with room to spare. Two pages needed the very last and smallest attempt and still missed the safe line by 191 bytes. Three pages ended 55% above 50 KB. The original size did not decide this; a 1.50 MB file and a 4.69 MB file are both large, but one has a single page and the other has three.

Why 50KB is a one page budget for scans

A scanned PDF is a stack of pictures, one per page, plus a small amount of PDF structure. Compressing it means deciding how many bytes each picture may use. Divide 47,000 bytes by the number of pages and you get the budget per page.

How the 50KB safe line is shared between pages
PagesBudget per pageSmallest attempt in our tests (404 px, 50%)Fits?
147,000 B21,175 BYes, with a sharper setting
223,500 Babout 23,600 B a pageJust misses
315,667 Babout 25,900 B a pageNo

At the smallest setting a page of our test text needed roughly 21,000 to 26,000 bytes. That is the floor. A second page doubles it, a third triples it, and no setting in the tool goes lower than 404 pixels at quality 50%. Pages with photos, color stamps or dark backgrounds need even more. Plain typed pages on white paper need less, which is why some two page files do fit.

Three stacks of pages, 1, 2 and 3 pages, with their 50 KB results: 41,455 bytes fits, 47,191 bytes is 191 bytes over the safe line, 77,770 bytes is not reached
The same 50 KB limit with more pages. One page fitted on attempt 6. Two pages ended on the last attempt, 191 bytes over the safe line. Three pages could not get below 77,770 bytes.

When the result is under 50KB but the tool says not reached

Our two page form is the interesting case. The output was 47,191 bytes, which is 47.2 KB and clearly below 50,000 bytes, yet the tool said the target was not reached. That is because the tool measures against its safe line of 47,000 bytes, not against 50,000.

The margin exists for portals that count differently. Some systems treat 1 KB as 1,024 bytes, which makes 50 KB equal to 51,200 bytes. Others round the size before they compare, and a few add a little overhead when they store the file. A file at 47,191 bytes passes both 50,000 and 51,200, so most forms will accept it. The warning simply tells you that the 6% cushion was not fully kept.

So read the exact byte count, not only the colour of the message. If the result is under the limit stated on the form and the pages are readable, it is usually fine to try. If the form gives no exact rule, our explainer on how KB and MB are counted shows both conventions side by side.

Dokurapi Compress PDF tool showing a 3.07 MB two page form reduced to 47.2 KB (47,191 bytes) with the message that the target was not reached
The near miss: the two page form ended at 47,191 bytes on the last attempt. The tool reports the target as not reached because the safe line for 50 KB is 47,000 bytes, even though the file is under 50,000 bytes.

How a page looks at 50KB

At 50 KB the page is no longer a sharp scan. Our one page result used a 595 pixel wide image, about the width of a phone screen, saved at JPEG quality 50%. Headings and normal body text stayed readable, but the edges of letters turned soft and the paper texture became blotchy. Small print, signatures and the fine lines of a stamp suffer first.

The comparison below shows the same corner of the page before and after. Open your own result at 100% zoom and check the parts that matter: ID numbers, dates, names and any signature. If something is hard to read on your screen, the person reviewing the upload will struggle too.

Keep the trade-off in mind. The tool always picks the sharpest attempt that fits, so a one page file at 50 KB is as good as this method can make it. If you need more detail, the only lever left is the page itself: crop away empty margins before scanning, scan only the part that is required, and avoid photographing a page at an angle, because skewed lines and shadows cost bytes without adding information.

Side by side crop of the same heading and text lines from the original scan and from the 50 KB result, the result visibly softer but still readable
The same detail from the original 1.50 MB scan (left) and the 41,455 byte result (right), rendered at the same size. Text remains readable, but letter edges and the paper texture lose detail.

What to do when a PDF will not go under 50KB

When the tool says the target was not reached, the fix is almost always fewer pages or lighter pages, not another click. Try these in order:

  • Remove pages that are not required. Cover pages, blank backs and instruction sheets cost bytes. Our guide to deleting PDF pages shows how to drop them.
  • Upload separate files if the form allows it. Each file then gets its own 50 KB budget. Splitting a PDF takes a minute.
  • Rescan in grayscale on white paper. Color, shadows and a grey desk behind the page all add bytes. Our scanning guide covers lighting and cropping.
  • Ask whether 50 KB is per file or per page. Some forms list a small limit for a single document, such as a declaration, and a larger limit for bundles.

If you have tried all of this and the file is still too big, our checklist for a compressed file that is still too big covers rarer causes such as huge page sizes and embedded images that a scan did not need.

Text PDFs from Word are a different story

Everything above is about scans. A PDF exported from Word, Google Docs or a form generator stores text as text, not as a picture, and is often already well under 50 KB for a page or two. In that case the tool tells you the file is already under the target and suggests using the original, which keeps the text sharp and selectable.

If a text PDF is over 50 KB, the cause is usually an embedded image such as a logo, a photo or a scanned signature. Compressing the whole file with this tool would turn every page into a picture, which makes the text blurry and unsearchable. A better route is to shrink that image in the source document, export the PDF again, and only then check the size. When you need to combine several of these small files, read our note on merging PDFs for submissions first, because the merged file adds up the sizes.

Before you upload the 50KB file

Run one last check. Confirm the byte count in the tool's Output line, then open the file in a PDF reader and scroll through every page. Make sure the page order is right and no page is blank. Rename the file the way the form asks, since some portals reject spaces or long names. Keep the compressed copy next to the original, so you can try again quickly if the portal rejects it.

Remember what the tool changed: pages are now images, so text cannot be selected, and links, form fields and digital signatures are gone. If the portal needs a digitally signed PDF, compressing it this way removes the signature, so sign after compressing or ask the institution how it handles signed files. The privacy side stays simple: the file was processed in your own browser, as our explainer on how browser tools work describes, and nothing was uploaded. On a phone, the same steps work in Chrome or Safari; see our tips for compressing a PDF on a phone.

Frequently asked questions

How do I compress a PDF to 50KB for free?
Open the Dokurapi Compress PDF tool, choose the PDF, type 50 in the Custom target (KB) box, press Compress PDF and download the result. It is free, needs no account, and the file stays in your browser.
How many pages can fit in a 50KB PDF?
For scanned pages, usually one. In our tests a one page scan fitted at 41,455 bytes, a two page scan ended at 47,191 bytes on the last attempt, and a three page scan could not get below 77,770 bytes. Plain typed pages on white paper can fit a little more.
Why does the tool say target not reached when my file is under 50KB?
The tool measures against a safe line 6% below your target, which is 47,000 bytes for 50 KB. A result such as 47,191 bytes is under 50,000 bytes but above the safe line, so it is reported as not reached. Most forms will still accept it.
Is 50KB the same as 0.05MB?
Yes in decimal units, where 1 MB is 1,000 KB. Systems that use 1,024 count 50 KB as 51,200 bytes, which is about 0.049 MB. The tool aims below both readings.
Will my PDF text still be selectable after compressing to 50KB?
No. The tool turns each page into a JPEG image, so text cannot be selected or searched, and links, form fields and digital signatures are removed.
Is my document uploaded to Dokurapi?
No. The PDF is read and compressed by your browser on your own device. The page loads its PDF libraries from dokurapi.com, but your file is never sent to a server.
What if the 50KB result is too blurry to read?
Use fewer pages, rescan in grayscale on white paper, or upload pages as separate files if the form allows it. Each of these gives every page more bytes, which keeps text sharper.
Can I compress a PDF to 50KB on my phone?
Yes. The tool works in mobile browsers such as Chrome and Safari. Keep the screen on until the result box appears, then open the downloaded file to check it.

Sources

  1. Prefixes for binary multiples, NIST
  2. HTMLCanvasElement: toDataURL() method, MDN Web Docs

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.