Compress JPG
Compress JPG images in your browser — smaller files at the quality you choose, nothing uploaded. Free, unlimited, and private by design.
How to compress an image
- Drop or pick a JPG file — or paste it with Ctrl/⌘+V.
- Choose lossy for the smallest file or lossless to keep every pixel, then tune the quality and keep or strip metadata.
- Compress, preview the before/after, and download — all on your device.
Why compress?
JPEG is the universal lossy photo format — small and readable everywhere, but with no transparency. Compressing your JPG files makes pages load faster, lifts Core Web Vitals and cuts bandwidth — without a visible drop in quality when done right. Lossy re-encodes at a quality you choose for the smallest file; lossless keeps the pixels effectively identical.
OptImg compresses JPG locally with the same Rust codecs used server-side elsewhere, so you get the savings without the upload wait, the queue, or handing your images to a third party. If a file is already well optimized, we tell you and keep your original instead of handing back something larger.
Frequently asked questions
- Are my JPG images uploaded to a server?
- No. JPG compression runs entirely in your browser with WebAssembly — your image never leaves your device, and there are no size or file-count limits.
- What's the difference between lossy and lossless?
- Lossy gives the smallest files by discarding detail you're unlikely to notice; lossless only removes redundancy, keeping the image identical. Lossy re-encodes at a quality you choose for the smallest file; lossless keeps the pixels effectively identical.
- Does compressing JPG keep transparency?
- JPG has no transparency to keep, but EXIF orientation is baked in so photos always display upright.