Free local image compressor
Reduce JPG, PNG, and WebP photo and screenshot file sizes for websites and upload forms. Resize, crop, and convert locally. No image upload or account.
Image compression workspace
Localsquash is a free image compressor for reducing photo and screenshot file sizes without uploading them. Open JPG, PNG, WebP, BMP, or GIF and export WebP, JPEG, or PNG. Resize, crop, or remove metadata; each export contains one still frame.
How to compress JPG, PNG or WebP
- Select your image.
- Resize it to the dimensions you need.
- Choose WebP, JPEG, or PNG output.
- Compare file size and detail before replacing the original.
Which image format should I choose?
Resize to the dimensions you need, then compare output size and detail.
Photos
Start with WebP or JPEG at 75–85 quality. JPEG removes transparency.
Transparent graphics
Use PNG or WebP. PNG is lossless; WebP also offers a lossless mode.
Screenshots and small text
Compare PNG with lossless WebP. Keep the original dimensions when preserving pixels matters. Resizing changes pixels even with a lossless format.
Metadata
Strip metadata to omit embedded tags from the export. Keep the original if you need camera or copyright information.
Lossy compression changes detail. A smaller image is not guaranteed, especially if the source is already optimized.
Technical specifications
| Engine | FFmpeg compiled to WebAssembly (ffmpeg.wasm core 0.12.10, single-threaded), running in your browser tab |
|---|---|
| Inputs | JPG, PNG, WebP, BMP, GIF (first frame) |
| Outputs | WebP (libwebp, lossy or lossless), JPEG, PNG (compression level 9) |
| Controls | Quality, resize, crop, strip metadata |
| Transparency | Kept in PNG and WebP; JPEG has no alpha channel |
| Not supported | Animated output, batch processing, exact-KB targets |
| Memory | Limited by the browser and device; phones fail sooner on large files |
| Network | About 32 MB of engine files downloaded from cdn.jsdelivr.net when you select a file; your media is never sent |
How to verify nothing is uploaded
- Open your browser’s developer tools and select the Network tab.
- Select a file and wait until the engine status shows Ready.
- Optionally switch the device offline, then start compression. It still completes because encoding runs locally.
- Review the requests: page assets, analytics, and ffmpeg-core files appear, but no request contains your media.
Image compression FAQ
How do I make a photo smaller for an upload form?
Check the form’s allowed formats, pixel dimensions, and KB or MB limit. Select the photo, resize it if needed, and export JPEG or WebP if accepted. Lower quality gradually and check the downloaded size. Localsquash does not automatically target an exact image file size.
Are my images uploaded?
No. FFmpeg WebAssembly processes images locally in your browser. The processing engine is downloaded when needed.
Can I compress PNG without losing quality?
Keep the original dimensions and use PNG or lossless WebP. Cropping or resizing changes the image. An already optimized source may not become smaller.
Can I convert JPG or PNG to WebP?
Yes. Select WebP output and adjust quality, or enable lossless mode. Compare the exported image before replacing your original.
Can I compress animated GIFs or multiple images?
This tool exports one still frame and processes one file at a time. It does not preserve an animation or provide batch compression.
Can I compress an image to an exact KB limit?
The image tool does not target an exact KB size. Reduce dimensions or lower WebP or JPEG quality, then compare the downloaded file with your form’s limit. Repeat as needed. Large images can exceed browser memory.
