A simple, dependency-free tool to compress and/or resize images directly in the browser — no uploads, no server processing.
- Drag-and-drop or click to upload any image
- Resize by width/height, with an optional locked aspect ratio
- Output format selection — JPEG, WebP or PNG
- Adjustable quality slider (1–100%) for lossy formats
- Live before/after stats — original size, new size, and % reduction
- One-click download of the processed image
- 100% client-side — powered by the Canvas API, nothing is ever uploaded
Just open index.html in any browser, or use it directly online:
- Drag an image onto the dropzone, or click it to choose a file.
- Adjust width/height (aspect ratio is locked by default) and pick an output format.
- For JPEG/WebP, use the quality slider to balance size vs. quality.
- Check the size comparison, then click "Baixar imagem" to download the result.
- Vanilla HTML, CSS and JavaScript — no frameworks, no build tools
- Canvas API for resizing/re-encoding,
canvas.toBlob()for compression and export
MIT — feel free to use, modify and share.