Image tool
Image Compressor
Choose a JPG, PNG or WebP image, set the quality and compress it locally. The longest side is capped at 1,200 px, and you can compare the sizes before downloading.
JPEG, PNG, WebP, GIF or another raster image your browser can open. SVG files are not supported. Animated GIFs use the first frame.
Lower quality makes a smaller file. 80% is a good starting point for photos.
The longest side is capped at 1,200 px. Smaller images keep their dimensions.
What this tool does
The compressor reads an image from your device, redraws it on a canvas and asks your browser to encode a new file. You can lower the quality, and the longest side is capped at 1,200 pixels. The original and compressed versions are shown side by side with their sizes.
Nothing is uploaded. The image is read through the browser's File API, processed in the page and downloaded from an object URL.
How to use it
- Choose a JPEG, PNG, WebP, GIF or another raster image your browser can open. SVG files are not supported.
- Set the quality. The default is 80%.
- Select Compress image. The result appears next to the original.
- Download the compressed file, or move the quality slider and release it to try again.
Quality, format and file size
Quality is passed to the browser's image encoder. It is not a percentage of the original file size, and the same value can produce different results in different browsers. A lower value usually makes a smaller file, but it can introduce visible artifacts, especially around text and sharp edges.
This tool asks for WebP output when the browser supports it and falls back to JPEG otherwise. WebP often produces a smaller file at a comparable quality, but JPEG may be more widely accepted by older software. The result panel notes which format was used.
Compression is not guaranteed to shrink every file. An image that is already heavily optimised may grow when it is re-encoded. If that happens, keep the original or try a lower quality. For a wider performance checklist, read how to speed up your website.
Dimensions, transparency and animation
Images larger than 1,200 pixels on the longest side are scaled down proportionally. Smaller images are not enlarged. WebP can preserve transparency; the JPEG fallback does not, so transparent areas are filled with white.
Animated GIFs are treated as still images: only the first frame is redrawn and compressed. The tool does not create an animated WebP or keep the animation.
Metadata and privacy
The browser redraws the pixels into a new image, so most embedded metadata from the original file, such as camera details, is not carried over. This is not a dedicated metadata scrubber, and you should not rely on it for privacy-sensitive files without checking the result.
Processing happens in this browser tab. The image is not sent to NelcByte. Large images use more memory, and an older or memory-constrained device may fail to decode or encode a very large file.
Keep going
Related tools
Other utilities that pair well with this one.
Good to know
Questions
Is my image uploaded?
No. The file is read by your browser and compressed on your device. It is not sent to NelcByte or any other server.
Why did the compressed image get larger?
The original may already be optimised, or the new encoder may be less efficient at the quality you chose. Try a lower quality, or keep the original if it is already smaller.
What happens to transparency?
WebP output can keep transparency. If the browser falls back to JPEG, transparent areas are filled with white.
Does it keep EXIF data or animation?
The image is redrawn, so most embedded metadata is not copied. Animated GIFs are flattened to the first frame. This is not an animation converter.
Does it work offline?
Once the page and its scripts have loaded, compression itself does not need a network connection. Reloading the page while offline will not work.
Can I compress an image to an exact size, such as 100 KB?
No. The tool uses a quality setting, not a target file size. Lower the quality or dimensions and check the result; the final size varies by image and browser.
How do I resize an image without uploading it?
The longest side is automatically capped at 1,200 px. The resize and encode happen in your browser, so the image is never uploaded.