Resize
Resize an image
Pick the longest edge; the other side follows.
The other side follows the original proportions. Nothing is enlarged.
The number on the button is the longest edge: a 4000×3000 photo resized to 1920 becomes 1920×1440, and a portrait photo uses the same rule on its height. The other side is computed from the original, so the picture is never stretched.
Nothing is ever enlarged. Ask a 600-pixel-wide image for 1920 and you get 600 back, unchanged — upscaling adds bytes and invents no detail, and a tool that silently doubles a small image is how blurry assets end up on a site.
The format is kept where the browser can write it: JPEG stays JPEG, everything else comes back as PNG, so a transparent PNG keeps its transparency. The quality setting for a JPEG is fixed at 92 percent here, because the point of this page is the pixel count, not the compression.
Questions
Why did my 400-pixel image come back the same size?
Because nothing is upscaled. The page only ever makes an image smaller; asking for more pixels returns the original.
Is the aspect ratio kept?
Yes. Only the longest edge is set; the other side is calculated from the original proportions.
Does a transparent PNG stay transparent?
Yes. PNG and WebP stay PNG here, and PNG has an alpha channel. Only the compress page writes JPEG.
Can I set both sides?
Not on this page. Setting width and height independently is how images get squashed, so this one only takes the longest edge.
More images
- Compress imageSmaller JPG, PNG or WebP by re-encoding at a lower quality.
- PNG to JPGA JPEG from a PNG, on a white background where it was transparent.
- Convert to WebPA WebP from any image the browser can read, transparency kept.
- Strip image metadataRemove EXIF, GPS and camera details by re-drawing the picture.