Optimize PDF
How to Compress a PDF Without Losing Quality
Shrink a PDF for email or upload limits while keeping it readable, using either automatic compression or a specific target file size.
By David Valle

A document usually balloons in size for one of a few predictable reasons: high-resolution scanned pages, embedded fonts that were never optimized, or photos placed at their original camera resolution instead of a size appropriate for a document. A compression tool re-encodes those heavy elements more efficiently, shrinking the overall file while keeping the text sharp and the layout intact.
Situations where shrinking a PDF actually matters
- An email service rejects the attachment because it exceeds a limit, commonly somewhere around 20 to 25 MB.
- A job portal, university admission form, or government upload field only accepts files under a strict cap, sometimes as small as 500 KB or 1 MB.
- A large batch of documents needs to be archived, and reducing each file's footprint saves meaningful storage space across the whole collection.
- A document needs to load quickly when opened on a slow mobile connection.
- A collaborative platform or content management system enforces its own upload cap, independent of any limit set by email or a specific form.
Automatic levels versus a specific target size
Most compression tools, including OnlyPDF's, offer a choice between automatic quality presets and a specific numeric target.
The automatic presets usually break down like this:
- A "High" setting keeps the most visual detail and produces the largest of the three results, best suited when image fidelity matters more than absolute file size.
- A "Medium" setting balances quality against size and is a sensible default for most everyday documents.
- An "Express" setting prioritizes the smallest possible result and the fastest processing time, appropriate when getting under a size limit matters more than preserving every visual detail.

When the requirement is an exact number, like a form that rejects anything over 200 KB, a target-size mode tends to be more reliable than guessing which automatic preset will land close enough. A good target-size tool tests several compression levels internally and stops at the first result that meets the requested size, rather than forcing a single fixed setting on every document regardless of its content.
Why some files compress far more than others
Two documents of similar page count can respond very differently to the same compression settings. A document made mostly of typed, selectable text compresses easily because text itself takes up very little space; the size is dominated by whatever images or fonts are embedded alongside it. A document made of scanned pages, where every page is essentially one large photograph, has much less room to shrink without a visible drop in sharpness, since there is no separate text layer to leave untouched.
This explains a common source of confusion: someone compresses a ten-page scanned contract and sees only a modest size reduction, while a ten-page typed report shrinks dramatically under the same setting. The difference comes from what is actually inside each file, not from the compression tool behaving inconsistently.
Why smaller files load faster on mobile connections
File size does not just matter for meeting an upload limit; it also affects how a document feels to open. A large, image-heavy PDF can take several noticeable seconds to fully load on a slower mobile data connection, particularly in areas with inconsistent signal strength, while a well-compressed version of the same document opens close to instantly. This matters for anything meant to be viewed on the go, like a boarding pass, an event ticket, or a portfolio shared with a client who might open it while out of the office rather than at a desk with reliable broadband.
For documents that will primarily be viewed on a phone screen rather than printed, a more aggressive compression setting is usually a safe choice, since a phone display shows far less fine detail than a printed page would, meaning the quality difference from stronger compression is far less noticeable on screen than it might be on paper.

Practical steps to shrink a file responsibly
- Start with a Medium-equivalent setting before jumping straight to the most aggressive option, since the most aggressive setting is a noticeably bigger quality trade-off.
- If a strict target size cannot be reached without visible quality loss, check whether the source document contains unusually high-resolution scans; resizing those images before conversion to PDF often helps more than compressing after the fact.
- Always compress a duplicate of an important document rather than your only copy, until the result has been checked and confirmed to look correct.
- If the compressed file will be used for something official, like a government form or a legal submission, open it and zoom in on any small print, signatures, or stamps before submitting, to confirm nothing important became illegible.
- Keep a short note of which setting worked for a particular type of document, so the next similar file does not require the same trial and error.
When compressing alone is not the best answer
Compression is not always the right tool for a size problem. If a document is genuinely long, rather than heavy per page, splitting it into smaller parts may solve an email attachment limit more effectively than squeezing every page's quality down. And if the size problem originates from an oversized image before it was ever converted to PDF, converting from image or Word to PDF with a more reasonable source resolution avoids the need for aggressive compression afterward entirely.

Common mistakes worth avoiding
- Repeatedly compressing an already-compressed file, hoping for further gains. Each additional pass tends to degrade quality with diminishing size benefits.
- Choosing the most aggressive setting by default "just to be safe," when a moderate setting would have met the requirement while keeping the document sharper.
- Submitting a compressed document to an official form without opening it first to confirm the required details are still clearly legible.
Frequently asked questions
Is a compressed PDF acceptable for official or legal submissions?
Generally, yes, as long as all required text, signatures, and stamps remain clearly legible after the process. It is worth opening and reviewing the compressed file before submitting it anywhere that matters.
Why is a scanned document so much larger than a typed one of the same length?
Scanned pages are stored as images rather than as text, and images take up far more space than the equivalent typed characters. A typed document of the same page count is typically a fraction of the size of its scanned counterpart.
Are files uploaded to a remote server during online compression?
Not necessarily, and it is worth checking. OnlyPDF's compression tool processes the file inside your own browser, meaning the document never has to leave your device during the process.
What is the fastest way to hit an exact size limit, like under 1 MB?
A target-size mode, where you type the exact limit and the tool finds a compression level that meets it, is generally faster and more reliable than manually trying each automatic preset one at a time and checking the result.
Does compressing a PDF affect its text searchability?
No, as long as the document already contained real, selectable text before compression. Compression targets images, fonts, and other heavy elements; it does not convert existing text into an image or otherwise remove the ability to search and copy it afterward.
Whether the goal is squeezing under an email limit or meeting a strict upload requirement for an official form, choosing between an automatic preset and an exact target size covers nearly every real-world compression scenario.
Similar articles
Organize PDFHow to Split a PDF Into Separate Files or Pages
Convert to PDFHow to Convert Word, JPG, and Images to PDF
Optimize PDFHow to Compress a PDF for a Job Application Upload
Optimize PDFHow to Compress a PDF to Under 100KB Online
Optimize PDFHow to Reduce PDF File Size for Email Attachments