Compress & Convert Images — JPG, PNG, WebP | KhanTools
Made a photo too big to email, attach to a job application or upload to a website form? This tool shrinks it, resizes it and converts it between JPEG, WebP and PNG, right in your browser.
How to compress an image
- Click the upload area and pick one image from your device. PNG, JPG and WebP files work, and so does any other image type your browser can open.
- Choose an output format: JPEG, WebP or PNG. WebP is selected when you start.
- Move the Quality slider (10% to 100%, starting at 80%). The slider only works for JPEG and WebP. PNG ignores it.
- If the picture is wider than you need, type a number in Max width. Height is scaled to match, so nothing gets stretched. Leave it at 0 to keep the original size.
- Look at the four boxes under the controls: original size, compressed size, percentage saved and final dimensions. The preview updates a moment after each change.
- Click Download. The file is saved with
-compressed added to its original name.
JPEG, WebP or PNG: which one should you pick?
Think about what is in the picture and where it’s going.
- JPEG is the safe choice for photos. Every phone, computer, email program and upload form accepts it. It has no transparency, so the tool fills any see-through areas with white.
- WebP usually gives a smaller file than JPEG at a similar look, and it keeps transparency. All modern browsers show it, which makes it a good fit for your own website. Some older programs and a few upload forms still reject it.
- PNG is lossless, so the quality slider does nothing. Use it for screenshots, logos and graphics with sharp text or flat colours. For photos, PNG files are often larger than the original JPEG.
Which quality setting to use
Start at 80%. For most photos you won’t see a difference from the original, and the file drops a lot. If you need it smaller, go down in steps of 5 and check the preview each time. Around 60% to 70% is often still fine for a phone screen or an email. Below that, you may start to see blocky patches in skies and smooth skin.
Resizing often saves more than the quality slider. A phone photo can be 4000 pixels wide, while most web pages show images under 1600 pixels. Setting a max width of 1200 to 1600 is a quick win for blog posts, online shops and listing sites.
Tips for good results
- If the Saved box turns red, the new file is bigger than the one you started with. This happens when the original was already well compressed, or when you turn a photo into PNG. Lower the quality or switch format.
- Compressing the same JPEG again and again loses a bit more detail each time. Keep your original and always start from it.
- Need a smaller file for an upload form with a size limit? Set the max width first, then lower the quality until the compressed size fits.
- Want to cut out part of the picture first? Use Image Crop, then bring the result back here.
Your image stays on your device
The tool uses the image encoder built into your browser. Your file is read, redrawn and saved on your own computer or phone. It’s never sent to our server. That matters for private things like ID scans, family photos or work documents, and it also means there’s no upload wait.
Limits and related tools
Frequently asked questions
Is this tool free?
Yes. You don’t need an account to compress or convert an image.
Can I convert PNG to JPG or JPG to WebP?
Yes. Upload the image, click the format you want and download. Any transparent areas become white when you save as JPEG.
Why is the quality slider greyed out?
PNG is a lossless format, so there’s no quality level to choose. Switch to JPEG or WebP to use the slider.
Why did my file get bigger?
Your original may already have been compressed, or you converted a photo to PNG. Try JPEG or WebP with a lower quality, or set a max width.
Does compressing change the image dimensions?
Only if you enter a max width. Otherwise the width and height stay the same, and the Dimensions box shows the final size.
Is my photo uploaded anywhere?
No. Compression runs inside your browser, and the file never leaves your device.
Is photo information like location kept?
The image is redrawn from scratch in the browser, so camera details and location data from the original are normally not copied into the new file.
KhanTools — Free Online Web Tools
Free browser-based tools for images and PDFs. No uploads. 100% private.
Blog ·
About ·
Privacy Policy ·
Terms of Service ·
Contact
JavaScript is required to use KhanTools. Please enable JavaScript in your browser.