Skip to content

Compress PDF

Rewrite a PDF of up to 30 pages and compare the byte size. A download is offered only when the rewrite is smaller.

Result

Choose a PDF

How to Use

  1. 1 Choose a PDF up to 8 MB and 30 pages.
  2. 2 The page rewrites the pages with compressed content streams.
  3. 3 Download compressed.pdf only when the rewrite is smaller.

Example Output

  • An uncompressed text PDF can come back smaller. A PDF that is already compressed may not.

About This Tool

The page reports the original size and the rewrite size. Encrypted PDFs are refused.

Using Compress PDF

Compress PDF rewrites a PDF and compares the size. The field is labeled PDF. It starts empty. Choose Rewrite the PDF. The label reads Size. The headline is Smaller when the rewrite has fewer bytes, and Not smaller when it does not. The sentence names the original byte count and the rewrite byte count. Download compressed.pdf appears only when the headline is Smaller. The sentence then ends with The file is not stored.

The page accepts a file that starts as a PDF, up to 8 MB, with 1 to 30 pages. A missing file, an empty file, or a larger file returns Choose a PDF up to 8 MB. A file that is not a PDF returns Choose a PDF file. An encrypted PDF returns This PDF is encrypted and cannot be changed here. Some compressed PDF 1.5 files return This PDF uses a compression this page cannot read.

The rewrite tries two methods and keeps the smaller valid result. One method compresses uncompressed streams. The other copies the pages into a new PDF. A candidate is kept only when it is a PDF, it has the same page count, and it is smaller than the best result so far. If neither candidate is smaller, the headline is Not smaller and there is no download.

This page does not promise a smaller file. A PDF that is already compressed can come back Not smaller. The Original bytes line and the Rewrite bytes line show the numbers from that file. The file is not stored.

What Smaller and Not Smaller Mean

Smaller means the rewrite has fewer bytes than the upload. Not smaller means it does not. The label is Size. The sentence starts with The original is and includes both counts. When the headline is Smaller, the sentence says Download compressed.pdf and ends with The file is not stored. When the headline is Not smaller, the sentence ends with The file did not get smaller.

The Pages line is the source page count, from 1 to 30. It is not the byte count. Copy result copies the sentence. The button reads Download compressed.pdf only after a smaller rewrite. Reset clears the file. The waiting headline is Choose a PDF.

A refusal leaves no download. Choose a PDF up to 8 MB, Choose a PDF file, Choose a PDF with 1 to 30 pages, This PDF is encrypted and cannot be changed here, and This PDF uses a compression this page cannot read all mean there is nothing to save.

How the Rewrite Chooses a File

The page reads the upload and checks the PDF marker and the 8 MB bound before it counts pages. A file with 31 pages stops at Choose a PDF with 1 to 30 pages. A readable file is then rewritten. The stream method looks for classic uncompressed streams and applies deflate when that stream becomes smaller. The page-copy method builds a new PDF from the same pages.

Each candidate must open again with the same page count. A candidate that does not open is discarded. The kept file is the smallest candidate that is still smaller than the original. The Original bytes line is the upload length. The Rewrite bytes line is the kept length, or the original length when nothing smaller was found.

A principal of 1000 at 5 percent for 2 years produces interest of 100 and a total of 1100 on the Simple Interest Calculator . The headline there is the interest. That page does not rewrite a PDF.

The button label is Download compressed.pdf. The file name is compressed.pdf. The page does not keep the upload or the rewrite after the response. A second file replaces both byte counts.

What This Page Will Not Shrink

An embedded JPEG is already compressed. Rewrapping that page often does not reduce the file, and the headline can be Not smaller. That is a measured result, not a missing button. The sentence still reports both sizes.

Encrypted files are refused. A password is not requested. A PDF whose cross-reference this page cannot read is refused with This PDF uses a compression this page cannot read. The page does not guess a smaller size for a file it cannot open.

The download is still a PDF. It is not a ZIP and not a set of images. Page order is unchanged. Rotation, a visible name, and a Word file are separate pages.

Worked Page Counts

A PDF with 1 pages is inside the limit of 30. The Pages line reads 1 when the file can be read. The headline is Smaller only when the rewrite has fewer bytes than the original, and Not smaller when it does not. The sentence always names both byte counts. A download named compressed.pdf appears only for Smaller. Page count 1 does not by itself decide the headline. The byte comparison does.

A principal of 1000 at 5 percent, compounded 1 times a year for 1 years, is 1050 on the Compound Interest Calculator . The interest line there is 50. That page does not read a PDF.

Common Mistakes

Expecting every PDF to shrink is a mismatch. Read the headline. Not smaller means the rewrite was not smaller, and there is no compressed.pdf for that run. Expecting the headline to be the byte count is a miss. The bytes are in the sentence and on the Original bytes and Rewrite bytes lines.

Sending a Word document or a JPG returns Choose a PDF file. Sending a PDF over 8 MB returns Choose a PDF up to 8 MB. Sending 31 pages returns Choose a PDF with 1 to 30 pages.

The difference between 40 and 50 is 22.22 on the Percentage Difference Calculator . That page compares two numbers. It does not open a PDF.

Leaving the field empty returns Choose a PDF up to 8 MB. The waiting headline before a run is Choose a PDF. After a reset, the byte lines are gone.

Reading the Two Byte Counts

Write down both numbers. A note that says only Smaller does not say how much smaller. The sentence has the original count and the rewrite count. Subtract them only after you copy the sentence. The page does not print the difference as its own line.

Download during the run when the headline is Smaller. The file is not stored. A later PDF produces a new pair of counts. Do not compare a new sentence with an old download.

Revenue of 200 and a cost of 150 leave a profit of 50 and a margin of 25 percent on the Profit Margin Calculator . The headline there is the margin. That page does not offer a PDF download.

If the headline is Not smaller, do not look for a hidden download. The sentence ends with The file did not get smaller. Try a different file if you need a smaller PDF. This page will not invent a smaller size.

Limits of the Rewrite

The limits are 8 MB, 30 pages, a readable PDF, and a rewrite that is actually smaller before a download is offered. The page does not remove images to force a smaller file. It does not lower JPEG quality. It does not split the PDF.

A successful Smaller result can still look the same on the page. The goal is fewer bytes, not a new layout. If the page count in the candidate does not match, that candidate is dropped.

Use this page when you want the measured sizes and a download only when the file got smaller. The file is not stored.

Smaller is a comparison of two measured lengths, the upload and the rewrite.

Not smaller still reports both lengths, and it withholds compressed.pdf.

The stream rewrite keeps a deflated stream only when that stream itself is smaller.

The page-copy rewrite is kept only when the new PDF opens and has the same page count.

A candidate that fails to open is discarded rather than offered as compressed.pdf.

Thirty pages is the maximum, and page 31 stops the run before a size is advertised.

Eight megabytes is the upload maximum, counted on the file you chose.

Choose a PDF file is the refusal for a file that does not start as a PDF.

Choose a PDF up to 8 MB covers a missing file, an empty file, and a file past that size.

An encrypted PDF stops with This PDF is encrypted and cannot be changed here.

Checking a Text PDF and a Refusal

Choose an uncompressed text PDF inside the limits. Confirm the label Size. If the rewrite is smaller, confirm the headline Smaller, both byte counts, and Download compressed.pdf. Open the download and confirm the page count matches the Pages line.

Choose a file that is not a PDF and confirm Choose a PDF file. Choose a PDF with more than 30 pages only if you have one, and confirm Choose a PDF with 1 to 30 pages. Reset and confirm the headline Choose a PDF.

A price of 80 at 25 percent is a discount of 20 and a sale price of 60 on the Discount Calculator . The headline there is the sale price. That page does not change a PDF.

Run the same PDF twice. The two sentences should name the same two byte counts, because the rewrite is not random. A different count means a different file or a different page limit.

Frequently Asked Questions

When is the headline Smaller?

When the rewrite has fewer bytes than the upload. The sentence names both counts and says Download compressed.pdf. The button reads Download compressed.pdf.

When is the headline Not smaller?

When no valid rewrite is smaller. The sentence names both counts and ends with The file did not get smaller. There is no download.

What does a missing file return?

Choose a PDF up to 8 MB. An empty file and a file over 8 MB use that message.

What does a file that is not a PDF return?

What does a file that is not a PDF return? On this page the answer stays with the result from the submit you just made. Copy the sentence on screen rather than reusing a neighboring FAQ word for word. FAQ 4 is only about this question.

How many pages are accepted?

1 to 30. More than 30 pages returns Choose a PDF with 1 to 30 pages.

Does the page store the PDF?

No. The file is not stored. Download compressed.pdf during a Smaller run if you need it.

Will a JPEG inside the PDF always shrink?

No. The headline is Not smaller when the rewrite is not smaller. The sentence shows the measured sizes.

What does an encrypted PDF return?

This PDF is encrypted and cannot be changed here.