A visa application with passport scan
Target: 500 KB File: 3 pages, 4.6 MB, colour scan
A colour scan at this size shrinks well. The passport page stays legible, which is what the portal checks.
Make a PDF smaller than 500 KB for an email or a portal upload, without sending it to any server.
Last updated
Coddy teaches you by writing real code in your browser - interactive lessons, instant feedback, and AI help when you get stuck.
500 KB is half a megabyte, a limit you meet on visa portals, bank and insurance uploads, and some course applications. It is generous for text and works for short scanned sets, so most files need only a light touch to fit.
Heavy files usually have something specific in them: a full-resolution photo, a 600 dpi scan, or a presentation exported with big pictures. The tool shrinks those pictures in steps and stops at the first one that fits, so the result keeps as much quality as the limit allows. Text, fonts and links are not changed in that step.
It all happens in your browser, so a passport scan or a certificate is not uploaded for compressing. The result shows the size before and after and a preview of the first page.
Drop the file in. The page opens with 500 KB as the target.
Watch the progress. Pictures are shrunk first, and pages are only redrawn if that is not enough.
Check the first page preview and the percent saved.
If the result is under 500 KB, upload it. If not, split the file and try again.
What usually gets a file under 500 KB.
| Starting point | Typical fix | Result |
|---|---|---|
| Text document with one photo | Shrink the photo | Fits, text selectable |
| Scan at 300 dpi, 5 pages | Pictures to about 1300 px | Fits, readable |
| Slide deck with large images | Smaller pictures | Fits, images softer |
| Scan at 600 dpi, 10 pages | Strong shrink or split | May need a split |
| Very long scan | Split into parts | Each part fits |
Target: 500 KB File: 3 pages, 4.6 MB, colour scan
A colour scan at this size shrinks well. The passport page stays legible, which is what the portal checks.
Target: 500 KB File: 12 slides, 9 MB, photo backgrounds
Backgrounds drive the size. Expect softer pictures, and text on the slides stays sharp.
from pypdf import PdfReader, PdfWriter
writer = PdfWriter()for page in PdfReader("pack.pdf").pages: writer.add_page(page)for page in writer.pages: page.compress_content_streams()writer.compress_identical_objects(remove_duplicates=True, remove_unreferenced=True)with open("pack-small.pdf", "wb") as f: writer.write(f)This tidies page content and duplicate objects. Pictures still need recompressing, which is what the tool adds.
Dozens of text pages, or roughly ten scanned pages scanned at 150 dpi in grayscale. Photos reduce that count.
Yes in this tool: 500 KB is 500,000 bytes, which is 0.5 MB. For a 1 MB limit use the 1 MB page.
Slides carry big background and photo images. They shrink well, but a long deck can still exceed 500 KB.
No. Nothing is uploaded. The work happens in your browser.
You get the smallest file it could make. Split the document, or remove pages you do not need.