nanogb
PDF · on your device · free

Compress a PDF to fit any size limit

Pick the place the PDF has to go, and nanogb makes it fit. Everything happens in this browser tab, so contracts, payslips and ID scans never leave your device.

Your file never leaves this device.

How nanogb shrinks a PDF

nanogb tries two methods, gentlest first, and stops as soon as the file fits your limit.

  1. Lossless repack. The PDF is rewritten with compressed object streams. Text, links and form fields stay exactly as they were. This helps most with PDFs exported by older software, and costs nothing in quality.
  2. Pages as images. If the repack is not enough, each page is drawn as a JPEG image at the highest resolution that still fits, from 144 dpi down to about 20 dpi. This is how scans and photo-heavy PDFs get small. The catch: text in the result is no longer selectable or searchable, and the receipt tells you when this happened.

Before you download, nanogb opens the new PDF again on your device and checks that the page count matches. The receipt lists the original size, the new size, the limit it was made for and a SHA-256 fingerprint of the result.

Rough guide: pages per limit

For pages that have to be stored as images (scans, photos). Text-only PDFs exported from a word processor are usually much smaller. These are estimates; your result depends on the content.

LimitAbout 150 dpi (sharp)About 100 dpi (clear)About 72 dpi (readable)
100 KBunder 1 page1 page1 page
200 KB1 page2 pages3 pages
500 KB2 pages5 pages9 pages
1 MB5 pages10 pages19 pages
2 MB10 pages21 pages38 pages
20 MB107 pages215 pages388 pages

Tips for a better result

  • Scanned documents: scan at 150 dpi in greyscale when you can. Colour scans at 600 dpi are often 20 times bigger than they need to be.
  • Remove what you do not need. Fewer pages is the cleanest way to a smaller file.
  • Password-protected PDFs cannot be opened by any compressor until you remove the password in the app that created it.
  • Email limits apply to all attachments together. If you attach two PDFs, give each one roughly half the limit (use a custom limit).

Why on-device matters for PDFs

Most online PDF compressors upload your file to their servers and process it there. That is a problem for documents covered by a confidentiality agreement or by data-protection law. nanogb never receives your file: the page you are reading cannot even open a connection to any other server (our Content Security Policy forbids it), and our server only accepts plain page requests. See how to check this yourself.

Frequently asked questions

Is it really free?

Yes. Compressing single files is free and needs no account. We plan to show ads on articles in future; the tools themselves stay ad-light.

Will my PDF be uploaded?

No. The file is read and processed by your browser on your device. nanogb has no upload endpoint, and the page is not allowed to send data to any other server.

Why is the text not selectable after compressing?

When a repack is not enough, nanogb redraws each page as an image to reach the limit. Images cannot hold selectable text. Choose a bigger limit or split the PDF to keep text selectable.

How small can a PDF get?

It depends on the number of pages. As a rough guide, a page drawn at 72 dpi as a JPEG is about 30 to 80 KB, so a 10-page scan fits 1 MB comfortably but not 100 KB.

More ways to make it fit