Compress Image

JPEG Quality & Target Size

Shrink JPEG, PNG, or WebP file size in your browser. Set quality or a target size. Files never leave your device.

This conversion runs only in your browser — nothing is uploaded.

Drag & drop an image, or browse below

What is this tool?

A local image compressor. You pick JPEG quality and optionally a maximum size in kilobytes. The browser draws the image on a canvas and exports JPEG. Nothing is uploaded.

It does not convert HEIC (use HEIC to JPG first) and does not produce Base64 strings.

Common use cases

  • Fit a photo under an email or form upload cap (for example 300–500 KB)
  • Shrink a PNG screenshot that is mostly photographic content
  • Batch a few web-hero images without opening desktop software

How to use

  1. Drop a JPEG, PNG, WebP, or GIF (GIF becomes a still JPEG).
  2. Set quality. Optionally enter a target size in KB.
  3. Check the before/after sizes, then Download JPG.

Examples

InputNotes
4 MB phone JPEG, quality 75%Typical web-share size drop with moderate artifacts.
PNG screenshot, target 400 KBMay still look blocky; screenshots compress poorly as JPEG.
Already-tiny 80 KB JPEG, quality 90%Result can be larger — JPEG re-encode is not always smaller.
15 MB+ imageRejected; downscale in Photos first.

Practical pitfalls

  • Screenshots: UI chrome and text suffer as JPEG. This tool is aimed at photos.
  • Transparency: alpha PNG becomes an opaque JPEG (usually black or white-filled by the canvas).
  • Target size is best-effort; it cannot invent a 50 KB file from a 12 MP RAW-like JPEG without wrecking it.

References

Last reviewed: 2026-08-30

Frequently asked questions

Does this upload my photos?
No. Re-encoding uses the canvas API in this tab. Close the page to drop the pixels from memory.
Why is the result always JPEG?
JPEG quality is the reliable browser knob for “make this smaller.” PNG stays lossless unless you re-encode; this tool converts to JPEG so quality/target-size controls actually shrink the file.
Target size vs quality slider?
Quality is a 10–95% JPEG factor. An optional target in KB binary-searches quality until the blob is under that size (or the minimum quality is reached). Huge photos may still miss a tiny target.
Will faces and text stay sharp?
Heavy compression adds block artifacts, especially on text and UI screenshots. Prefer PNG/WebP sources at a higher quality, or crop before compressing.