Re-encode JPG/WebP at 0-100 quality, fully offline, with real size stats.
🔒 100% client-side: the image is decoded and re-encoded by an in-browser canvas at its original dimensions — nothing is uploaded. The output size shown is the real encoded file measured with canvas.toBlob, not an estimate. 70-85 quality is the usual sweet spot; WebP typically lands 25-35% smaller than JPEG at the same quality.
JPEG and WebP quality is a 0-100 dial over how much fine detail the encoder is allowed to discard. Down at 50, blocking appears around sharp edges; from 70 to 85 artifacts stay invisible on screens and files shrink dramatically; above 90 the curve flattens and each step buys almost nothing. The sizes shown here are the real encoded output measured by the browser, not an estimate.
WebP encodes the same visual quality in typically 25-35% less space than JPEG, and every current browser decodes it. Use JPEG only when something old must read the file. One caveat: WebP is lossy like JPEG, so re-encoding an already-compressed photo again — in any format — stacks artifacts generation after generation.
Re-encoding an already-optimized JPEG at high quality can inflate it: the encoder dutifully preserves the noise left by the previous compression. Tiny PNGs with few colors also grow when flattened into JPEG. If the tool reports the output larger, lower the quality, switch format, or simply keep the original — it tells you instead of pretending.
This tool redraws every pixel at the original width and height — only the encoding changes, so the image still looks identical at the same size. If the goal is fewer pixels (a 4000px photo down to 1200px for the web), resize first with an image resizer, then compress: resolution cuts far more bytes than quality ever will.
More tools you might find useful
Resize and compress images with live file-size preview.
Build OG and Twitter Card meta tags with a live social share preview.
Convert PNG/JPG to WebP and see the size savings.
Convert pixels to rem and em with a custom root font size.