Image Compressor
Compress an image to JPEG with a quality slider and watch the file size drop as you drag, in your browser.
Resize an image to exact pixel dimensions in your browser, with the aspect ratio locked and a lossless PNG out.
Updated
Your browser is preparing the tool. It runs 100% locally.
Image Resizer changes an image's pixel dimensions on an HTML5 canvas, in your browser. Type a new width or height and, with the aspect ratio locked (the default), the other side follows. You can also tap a preset: 1920, 1280 or 800. The result is saved as a lossless PNG, so resizing adds no compression artefacts. Your image is not uploaded and the original is left untouched.
Sometimes an image is the wrong size in pixels: a 6000-pixel photo where 1200 would do, or an upload that must fit set dimensions. This tool redraws the image at the width and height you choose.
By default it keeps the proportions. Change the width and the height adjusts to match, so nothing looks stretched. Uncheck the aspect lock if you want to set both sides independently.
When you load an image, the tool fills in its current width and height and remembers the ratio between them. The presets and the aspect lock both work from that ratio, so a 16:9 photo stays 16:9 when you pick 1280.
Your chosen dimensions become a new canvas, and the image is drawn into it at that size with the browser's built-in smoothing. The canvas is saved as a PNG, a lossless format, so the pixel count is the only thing that changes.
Presets with the aspect ratio locked
Resizing runs on your device. The image is read from disk and redrawn in the page's memory, and the PNG is produced locally, so it is never uploaded.
The resized copy exists only until you download it or close the tab, and the tool asks for no login, so private photos are fine to use here.
| Engine | HTML5 Canvas (browser-native) |
|---|---|
| Controls | Width/height + aspect lock + presets (1920/1280/800) |
| Output | PNG (.png), lossless |
| Resampling | Browser's built-in smoothing (bilinear) |
| Aspect ratio | Locked by default; can unlock |
| Upload | None; resizing happens on your device |
Downscaling gives the best results: the tool drops pixels cleanly and the image usually looks good. It uses the browser's default bilinear smoothing, which suits typical reductions. Shrinking by a very large factor in one step can look a little soft next to a dedicated multi-step or bicubic resampler.
Upscaling cannot create detail. If you set dimensions larger than the original, the tool interpolates new pixels, so the image gets bigger but not sharper and may look soft or blocky. Enlarging suits small bumps in size, not rescuing a tiny image.
With the aspect lock on, the opposite dimension is computed for you so nothing distorts. Turn it off only if you mean to stretch the image to exact, non-proportional dimensions.
The output is a lossless PNG, so resizing adds no JPEG-style artefacts. A photo saved as PNG can be larger than the same photo as JPEG, so if file size matters, compress the resized image afterwards.
Shrinking vs enlarging
Hit a site's exact pixel dimensions for an avatar, banner, or product image.
Bring a multi-thousand-pixel photo down to a web-friendly 1280 or 800.
Make a set of images share the same width for a gallery or grid.
Generate a smaller version for previews or listings.
To cut file size, compress the resized image. To keep a region at full size instead of scaling, use an image cropper.
Written from the tool's canvas scaling and PNG export code, including the limit that enlarging an image cannot add detail.
Compress an image to JPEG with a quality slider and watch the file size drop as you drag, in your browser.
Drag a box over the part of the picture you want to keep and download just that region as a lossless PNG.
Upload an image and click any pixel to read its exact colour as HEX, RGB, HSL and CMYK. Click a value to copy it. The picture stays in your browser.
Convert a PNG to a much smaller WebP in your browser, keeping transparency, at 92% quality.
Convert a JPG to a lossless PNG in your browser. Nothing more is lost from here on, though the JPEG's existing compression stays.
Turn a PNG into a smaller JPG in your browser. Transparent areas become white and the JPEG is saved at 92% quality.
Your file is processed on this device and never uploaded, and there's no account to create.