Flattening and compressing are two operations that people often use interchangeably — or confuse entirely. Both can make a PDF easier to share. Both can reduce file size. But they work on completely different aspects of the file, and using the wrong one for the wrong situation leads to outcomes you didn't want. Here's exactly what each one does and when to use it.

What Compression Does
Compression targets the size of the data used to store content in the PDF. It doesn't change the document's structure — layers, form fields, annotations, and interactive elements all stay intact. What changes is how efficiently the underlying data is encoded.
In practice, compression works mainly on images. It reduces the resolution or encoding of embedded photos, charts, and graphics to bring the file size down. Text content is typically already stored efficiently and doesn't compress much further. The result is a file that looks essentially the same but takes up less space on disk and travels faster over email.
Compression is reversible in the sense that you still have the original — but the compressed version itself can't be uncompressed back to full quality. The trade-off is permanent for that copy, which is why keeping the original file before running PDF Compression is always good practice.
Try Compress PDF
No installation needed. Works directly in your browser.
What Flattening Does
Flattening merges all the separate layers and interactive elements of a PDF into a single, static layer. Think of it like taking a stack of transparent sheets — each with its own content — and photocopying them onto a single piece of paper. The result looks the same but is now one unified thing rather than many individual parts.
What gets removed during flattening:
- Form fields become static text — they can no longer be filled in or edited
- Annotations and comments are baked into the page — they can't be removed or replied to
- Signatures are embedded permanently — no longer separately verifiable as electronic signatures
- Transparency effects are resolved into the background — no longer editable
Flattening is irreversible. Once a PDF is flattened, you cannot separate the layers back out. This is why it's always done on a copy, not the working version.
The Key Differences Side by Side
What they target
Compression targets data size — the same content, encoded more efficiently. Flattening targets document structure — the same content, with interactivity removed. A compressed PDF is still a layered, interactive document. A flattened PDF is a static image of what the document looked like.
What they affect
Compression affects visual quality — specifically image sharpness at high compression levels. Flattening affects functionality — form fields, annotations, and interactive elements stop working. Neither changes what the document looks like to a casual reader, but they change it in very different ways under the hood.
File size impact
Compression almost always reduces file size — that's its primary purpose. Flattening sometimes reduces file size (by removing layer data and embedded objects) but the reduction is inconsistent and unpredictable. A flattened PDF can actually be larger than the original if the transparency resolution process adds complexity. Don't flatten primarily to reduce file size — use compression for that.
When to Use Each One
Use compression when:
- The file is too large to email or upload
- You want to reduce storage footprint without changing how the document works
- The document still needs to be fillable, editable, or have working annotations
Use flattening when:
- The document is final and you want to prevent any further editing
- A form has been filled out and you want to lock the answers in place permanently
- The PDF has rendering issues caused by transparency effects or layer conflicts
- You're archiving a document and want to ensure it renders consistently decades from now
Can You Do Both?
Yes — and for final documents going to external parties, doing both in sequence often makes sense. Flatten first to lock the document structure, then compress to reduce the file size. Doing it in this order is important: flattening after compression can reintroduce size, while compressing after flattening gives you the smallest possible static file.
WukongPDF's PDF Compression tool at www.wukongpdf.com handles the compression step cleanly — upload the PDF, choose your compression level, and download a leaner version ready to send.
Try Compress PDF
No installation needed. Works directly in your browser.
