About this tool
Compress and resize images for strict 20KB limits
Toolerd's Compress Image to 20KB tool reduces JPG, PNG and WebP files towards a 20KB target. It also lets you change image width and height, choose how the image fits and add a padding colour when required.
This is useful when a form specifies both a maximum file size and exact pixel dimensions. The tool works directly in your browser, so the selected image is not sent to a Toolerd processing server.
How it works
Compress an image in four steps
Upload
Choose a JPG, PNG or WebP image from your device.
Resize
Keep the original dimensions or enter a custom width and height.
Compress
Let the tool test multiple quality and size settings automatically.
Download
Review the final size and dimensions, then save the result.
Common uses
Useful for forms and document portals
Government forms
Prepare smaller images for public-service and identity portals.
Passport-style photos
Create a small file with controlled dimensions and padding.
Job applications
Meet image-size limits used by recruitment systems.
College admission
Resize and compress images for school and university forms.
Visa documents
Prepare files for online applications with strict upload limits.
Exam registration
Reduce profile photographs for examination portals.
Privacy
Your image stays in your browser
This tool uses the browser's Canvas API and Compressor.js to resize and compress the image locally. The selected file is not uploaded to a Toolerd image-processing API.
Temporary previews remain available only during the current browser session until you reset the tool, replace the image or leave the page.
Private browser-based workflow
- ✓ No account is required.
- ✓ No Toolerd processing upload is used.
- ✓ Compression happens on your device.
- ✓ You choose when to download the result.
Frequently asked questions
Compress Image to 20KB FAQ
Can every image be compressed to exactly 20KB?+
Not always. The tool aims for 20KB or the closest usable result. Image detail, dimensions and compression limits affect the final size.
Can I resize the image dimensions at the same time?+
Yes. Enter a custom width and height before compression and choose contain, cover or stretch.
Which image formats are supported?+
The uploader accepts JPG, PNG and WebP images. The compressed download is created as a JPG file.
Is this tool free?+
Yes. You can use this Toolerd tool without creating an account.
Are images uploaded to a Toolerd server?+
No. Resizing and compression happen in your browser using Canvas and Compressor.js.
Why can the final result be larger than 20KB?+
Some images contain too much detail to reach 20KB without becoming unusable. The tool then returns the smallest result found.
What does contain mode do?+
Contain preserves the original proportions and adds the selected padding colour when extra space remains.
What does cover mode do?+
Cover fills the selected width and height while preserving proportions, which can crop part of the image.
What does stretch mode do?+
Stretch forces the image into the exact width and height, which may alter its proportions.
What dimensions should I use?+
Use the exact dimensions requested by the destination form or website.
Will compression reduce quality?+
Some quality reduction is normally required for a very small file. Reducing dimensions can help preserve more visible detail.
Can I use the result for official documents?+
You can prepare the file with this tool, but always confirm the required size, format, dimensions and photo rules before submitting it.
Related tools
Continue editing your images
Image Compressor
Reduce image size with adjustable quality settings.
Open tool →Image Resizer
Change image width and height for documents and websites.
Open tool →Background Remover
Replace an image background with a solid colour.
Open tool →All Image Tools
Browse more free Toolerd image utilities.
Open tool →Related guides
Learn more about image compression
How to Compress an Image to 20KB
Learn practical ways to meet a strict image-size limit.
Read guide →GuideHow to Reduce Image Size
Understand how dimensions, quality and format affect file size.
Read guide →GuideCompress Images Without Losing Quality
Use sensible settings to keep images clear while reducing file size.
Read guide →GuideJPG vs PNG
Choose the best format for photos, graphics and small upload limits.
Read guide →