How to compress an image
Drag one or more images onto the box, select “choose files”, or paste an image from your clipboard. The tool accepts JPG, PNG and WebP files, and AVIF files in browsers that can open them.
Pick a mode. Quality lets you set the compression level with a slider: higher values keep more detail, lower values make smaller files. Target size lets you choose a maximum file size — 20 KB, 50 KB, 100 KB, 200 KB, or a custom number — and the tool chooses the quality for you.
Choose an output format. Keep the original format, or convert to WebP for a smaller file on the web.
Download each result on its own, or select “Download all (ZIP)” to save the whole batch in one file. Check the new size shown next to each image before you upload it anywhere.
Quality or target size?
Use Quality when you care about how the picture looks and simply want a lighter file — for a website, a blog post, a chat message or a shared folder. A setting between about 70 and 85 usually removes most of the weight while the photo still looks the same at normal viewing size. Move the slider, then compare the new file size and how the downloaded image looks until you are happy.
Use Target size when something outside your control sets the rule: an upload form that rejects files over 100 KB, an email system with a limit, or a portal that asks for “under 50 KB”. You set the limit; the tool searches for the highest quality that keeps each file at or under it.
If a large photo cannot reach a very small target even at the lowest quality, the image simply has too many pixels for that size, so the tool reduces its width and height until it fits and shows the new dimensions. To decide what stays, crop it to the part that matters or set a maximum width and height before you compress. A smaller, cleaner image almost always looks better than a large one squeezed at the lowest quality.
For common limits, these pages open the tool with the target already set: Compress image to 100KB, Compress image to 50KB and Compress image to 20KB.
JPG, PNG or WebP?
JPG is the safest choice for photos you need to upload to a form or send to someone else. Almost every website, portal and email client accepts it, and it compresses photos well.
PNG is lossless, which suits screenshots, diagrams, logos and images with transparent areas. It keeps sharp edges and text clean, but a PNG photo is often much larger than the same photo as a JPG. Because PNG is lossless, the quality setting does not apply to it: in Target size mode, a PNG that stays PNG can only get smaller by losing width and height, so choose JPEG or WebP output for photos that must fit a limit.
WebP usually produces a noticeably smaller file than JPG at similar visual quality, and it supports transparency. All modern browsers display it, which makes it a good format for your own website. Some upload forms and older programs still accept only JPG or PNG, so check the requirements before converting a file you need to submit.
Converting to WebP with this tool is optional: leave the output format on the original if a form expects JPG or PNG.
AVIF often makes an even smaller file than WebP at similar visual quality, and current versions of the major browsers display it. It takes noticeably longer to create, especially in Target size mode, and fewer upload forms and programs accept it, so it is best kept for your own website. The AVIF option appears only in browsers that can run its encoder.
When to compress an image
Uploading to a form. Application portals, job sites and registration pages often reject files above a fixed size. Use Target size with the limit they state, and keep the format they ask for.
Publishing on a website. Large images are the most common reason pages load slowly, especially on phones. Compressing photos before you upload them to a blog, shop or portfolio makes pages faster without changing how they look. WebP is a good output format here.
Sending and storing. Smaller files attach to email more easily, send faster in chat apps on slow connections, and take less space in shared drives and backups. A quality setting around 75–80 is usually enough for photos people will only view on screen.
Whichever case you have, keep your original files. Compression discards detail permanently, so it is best to compress a copy and go back to the original when you need a different size.
How the compressor works
Your images are decoded and re-encoded by your own browser, on your own device. Nothing is sent to DSOOU, so there is no upload wait, no copy on a server and nothing to delete afterwards. That makes the tool suitable for personal photos and scanned documents that you would rather not hand to an unknown service.
Lossy compression works by discarding detail that the eye notices least: fine texture, subtle color steps and noise. Each lower quality step removes a little more. That is why a photo can often lose most of its file size without an obvious change, and why very low settings eventually produce blocky edges and color banding.
Because the work happens on your device, speed depends on your computer or phone and on the size of each image. Large batches of high-resolution photos take longer, especially on older phones. When you leave or reload the page, the images and results are gone, so download what you need first.
Read our privacy policy for details about tool input and website access logs.