How to compress an image to 20KB
- Drop your images into the box above, or click it to choose files. You can add many at once.
- Check that the target is set to 20KB. Pick another button or Custom if you need a different size.
- Keep JPG as the format unless you know the site accepts WebP; almost every form accepts JPG.
- Each file shows its new size and dimensions. Download them one by one, or all at once as a zip file.
Good to know
- Sizes are counted with 1 KB = 1,000 bytes, so results also stay under the limit on sites that count 1 KB as 1,024 bytes.
- For very small targets such as 20 KB, the resolution is reduced as well. The new dimensions are shown for each file.
- Compressed files do not contain metadata such as GPS location.
How it works
What decides the file size
Image file size depends on two things: the number of pixels and how strongly they are compressed. JPG and WebP use lossy compression, which throws away detail the eye barely notices. Lowering the quality setting shrinks the file quickly at first, then starts to show blocky artifacts, which is when reducing the resolution becomes the better option.
JPG
JPG (JPEG) is the most widely supported photo format. It uses lossy compression, so files stay small, but it has no transparency and quality drops a little every time it is re-saved.
WebP
WebP is a modern web format from Google. It is usually 25–35% smaller than JPG at similar quality and supports transparency, but some older apps and editors still cannot open it.
Frequently asked questions
- How does it get the file under the target size?
- It lowers the compression quality first and reduces the resolution only if quality alone is not enough. It automatically finds the highest quality that fits, so the image never loses more than necessary.
- Will the image dimensions change?
- Not if the target is generous. The dimensions are reduced only for very small targets, and the result size is shown for each file.
- What if my photo is already under the target?
- If it is already small enough and in the chosen format, it is kept exactly as it is, so no quality is lost for nothing.
- Should I save as JPG or WebP?
- Most upload forms accept only JPG. WebP looks slightly better at the same size, but check that the site accepts it first.
- Are my files uploaded to a server?
- No. Everything happens inside your browser, so private photos and documents stay on your device.
- Is it free? Are there limits?
- It is completely free, with no sign-up and no watermark. How much you can process depends only on your device’s memory.
- Does it work on my phone?
- Yes, in current versions of Chrome, Safari, Samsung Internet and other modern browsers.