Nimble Toolbox

Compress a PDF to a target size

Drop in a PDF and set the limit. It compresses the file at up to nine settings, starting with one that leaves every picture as it is, measures the real size each time, and keeps the clearest one that fits. Your browser does the work, so the document stays on your device.

Compressed PDF
The compressed PDFDrop a PDF and it appears here at your target size.

How to use it#

  1. Drop the PDF onto the box above, or click it to choose one.
  2. Type the size limit in KB or MB, such as 150 KB, or pick a common one: 50, 100, 200, 300, or 500 KB, or 1, 2, 5, or 10 MB.
  3. Keep pictures in colour, or choose Greyscale to turn photos and scans grey, which leaves more room under the limit.
  4. Check the new size. Changing the limit or the colour compresses the file again straight away.
  5. Download the smaller copy. The original is left as it was.

The clearest setting that fits#

A size limit usually comes from somewhere that will not bend: a job application portal, a court filing system, a visa form, or a mail server that bounces anything over 10 MB. The file has to be under it, and any smaller than that only costs picture quality.

So it works through nine settings. The first is the Lossless level of the PDF compressor, which keeps every picture exactly as it is, so a file that is over the limit only because of data stored without compression fits with nothing lost. The next keeps pictures at up to 600 dots per inch at 95% JPEG quality, which few people could tell from the original, and two more step down, through the compressor’s Minimal level at 300, to its Light level at 220. Then come its other levels, down to Strong, which keeps pictures at 100, with one setting between each pair. It compresses the whole document at each one it tries and measures the real result, because a PDF’s size after compression cannot be worked out in advance. It stops at the clearest setting that comes in under the limit, which takes five tries at most, so a 5 MB limit gets the sharpest pictures that fit in 5 MB rather than a file far smaller than it needed to be.

Only the pictures lose detail. Text, fonts, links, and drawings are copied across as they were, so every word can still be selected and searched. Two savings that cost nothing are made at every setting as well: parts of the file stored without compression are compressed, and data left behind by earlier edits, which nothing in the file uses, is dropped.

Greyscale for scans and small limits#

A colour picture stores three values for every pixel and a grey one stores one, so the same scan takes less room in grey at the same sharpness. With Greyscale chosen, every setting the search tries writes the pictures in grey, starting at the clearest one after Lossless, since Lossless changes no picture. The room that saves lets it stop at a lighter setting than it could in colour. It makes the biggest difference to colour photos, which often come out a third smaller or more, and to a scanned ID or certificate printed in colour. A scan of black text on white paper has little colour to take out, so it gains only a few percent.

Only pictures turn grey. Text, lines, and shapes the PDF draws itself keep their colours, so a typed document with a blue logo drawn as shapes keeps its blue. A scanned document is made of nothing but pictures, one per page, so a scan comes out grey all over. Pictures in print colours (CMYK) and JPEG 2000 pictures stay in colour, and the result says how many turned grey.

With Greyscale on, a file already under the limit is still compressed, at 95% quality, so that its pictures turn grey as asked. With colour kept, it is handed back untouched.

When it cannot get under the limit#

Some files will not go under, and the page says so. The saving comes from photographs and scans, so a long document that is mostly text, or one whose pictures are already small, may stay over the limit however hard the pictures are squeezed. The result then shows how close the strongest setting got, and that copy can still be downloaded.

It does not go past Strong. Below 100 dots per inch the small print inside a scanned page starts to break up, and a file that fits the form but cannot be read is no use to whoever receives it.

If its pictures are in colour, choose Greyscale first. After that, make the file shorter. Take out pages nobody needs with the page remover, or split it into parts that each fit, since many forms accept more than one file. For a scan of text, scanning again in black and white at 150 to 200 dots per inch makes a far smaller file than any colour or grey scan, and it is kept as it is here.

How the megabytes are counted#

The limit is counted in thousands: 1 MB here is 1,000,000 bytes, the smaller of the two ways a megabyte is counted. A form or a computer that counts in 1024s allows a little more, 1,048,576 bytes to the megabyte, so a file under the limit here is under it there too, whichever way the form counts.

Frequently asked questions#

Is my PDF uploaded?

#

No. The compression runs in this tab, using code fetched the first time you drop a file. Every try is built and measured on your device, and the one that fits is handed straight back to you.

How do I get a PDF under 1 MB?

#

Drop it in with the limit set to 1 MB, which is where the page starts. The pictures are made smaller only as far as it takes, and the size line says the result is under 1 MB. If it is not, the strongest setting was not enough, and the page suggests what to try next: Greyscale when the pictures are in colour, then fewer pages.

Can it get a PDF under 200 KB or 100 KB?

#

Often, if the document is short. Limits this small are common on government and exam application forms, which usually want a page or two, such as a certificate or an ID. Every scanned page still needs room for its picture at the strongest setting, so a one page scan has the best chance, and a scan of ten pages will almost always stay over. Pick 200 KB or 100 KB above and the size line says whether it fits. Greyscale helps when the scan has colour in it, such as a photo ID. If it still does not fit, send only the pages the form asks for, using the page remover. A 300 KB limit usually leaves room for two or three scanned pages. Below 100 KB, a scanned page rarely fits, which the next answer explains.

Can a scanned PDF get under 50 KB?

#

Seldom, if it is a scan of printed text. At the strongest setting a scanned page is still a picture about 1,100 pixels on its long side, and the fine detail of the letters usually keeps it over 50 KB, in colour or in grey. A typed document with no pictures often fits easily, and so can a page that is one photo. For a text scan, send only the pages the form needs, taking the rest out with the page remover or using split to make one file per page. If a single page is still over, scan it again in black and white at 150 to 200 DPI. That file is far smaller than any colour or grey scan, and this page keeps black and white scans as they are. For a limit of 20 KB or 10 KB, type it into the box: a typed page may fit, and a scanned one rarely does. Pick 50 KB above and the size line says whether it fits.

Does greyscale make a PDF smaller?

#

Yes, when its pictures are in colour. Each photo and scan is written again with one grey channel instead of three colour ones, which takes less room at the same resolution, so the search can keep more detail and still fit. The saving is largest on colourful photos and smallest on a scan that was nearly grey already. Text, lines, and shapes keep their colours, since they are not pictures, and they weigh very little anyway. A document with no pictures gets no smaller from it.

What if it cannot get under the limit?

#

Then the pictures are not where the weight is, or there are too many pages. If the pictures are in colour, try Greyscale. Otherwise remove the pages you do not need with the page remover, or split the PDF into parts that each fit. The copy made at the strongest setting can still be downloaded if it helps.

Will the text still be selectable?

#

Yes. Only the pictures are compressed. Text stays text, so it can be selected, searched, and read aloud by a screen reader, and links still go where they did.

Is a megabyte 1000 or 1024 kilobytes?

#

Here, 1000 kilobytes of 1000 bytes each, the stricter of the two. A form that counts in 1024s allows slightly more, so a file that is under the limit here passes there as well.

Can I compress a password-protected PDF?

#

Not directly, because an encrypted file cannot be changed without the password. Remove the password with the PDF password remover first, compress the unlocked copy here, then add the password back with the PDF protector if you need it.