What it does
Drop or choose an image, set a target width in pixels, and the tool draws it onto an HTML canvas at that size, then re-encodes the result as PNG, JPEG or WebP for download. By default the height scales proportionally so the aspect ratio is preserved; untick Keep aspect to force the original height and stretch the image instead. The result card shows the final dimensions, format and file size so you can see the saving at a glance.
Format and quality
PNG is lossless and keeps transparency — best for logos, icons and screenshots with sharp edges, but larger. JPEG is lossy with no transparency — best for photos, and it exposes a quality slider (0.1–1.0) that trades file size against artefacts. WebP is also lossy here and usually beats JPEG at the same quality, with transparency support; it is well supported in modern browsers. The quality slider only appears for JPEG and WebP because PNG has no lossy setting.
Gotchas
- This resamples pixels — enlarging past the original width does not add detail, it just interpolates and looks soft. Downscaling is where you get real quality and size wins.
- Re-encoding a JPEG as JPEG applies lossy compression a second time; for repeated edits keep a lossless master (PNG) and export JPEG/WebP only at the end.
- Exporting a transparent PNG to JPEG flattens transparency (typically to black), since JPEG has no alpha channel. Use PNG or WebP if you need it.
- EXIF metadata and colour profiles are dropped on re-encode, which also strips location data — handy for privacy, but don't rely on orientation tags surviving.
Worked example
A 4000×3000 photo straight off a phone might be several MB. Set the width to 1600, pick WebP and drop quality to around 0.8, and you will typically land well under a few hundred KB — plenty for a blog hero or product shot, with the height auto-set to 1200 to keep the 4:3 ratio. For smaller UI assets, resize to the exact pixel width your layout uses so the browser isn't scaling at render time.
Privacy
All resizing happens locally with the canvas API; the image is never uploaded.