Original format
The output MIME type follows the validated JPEG, PNG, or WebP source. Resizing still requires decoding and re-encoding, so the result is not byte-identical and source metadata is not promised.
Pixels or percent · Contain or cover · Optional no-upscale
Resize a static JPEG, PNG, or WebP with explicit geometry. Set dimensions in pixels or percent, preserve the aspect ratio, fit inside a box, fill and crop a box, or prevent accidental enlargement.
source 2400 × 1600
box 1200 × 1200
result 1200 × 800
Aspect ratio preservedNo crop in contain mode
Resize one image or a local batch of up to 20
Select validated static images, choose pixel or percentage sizing and a fit mode, then compare source and output dimensions for each result. Downloads are created only after the browser has decoded and re-encoded them.
Loading the image resizer…
Enable JavaScript to select, validate, resize, preview, and download an image. Geometry rules and format limitations remain readable below.
Choose the rule that matches the destination
A width and height can describe an exact output, a bounding box, or a crop frame. The selected mode determines which interpretation applies.
Protect proportions and real detail
Aspect lock couples width and height to the decoded source ratio. Changing one dimension recalculates the other, preventing an accidental stretch that makes circles oval and faces unnaturally narrow. Contain and cover also preserve the ratio, but differ in whether the entire source or the entire destination box wins.
No-upscale caps the scale at 100% of the source. For example, a 640 × 480 image contained in a 1200 × 1200 box remains 640 × 480 when no-upscale is enabled. Without the cap, interpolation can produce a larger file and more pixels, but it cannot recreate texture, focus, or lettering that the source never captured.
Cover mode necessarily discards pixels outside the destination crop. Check the preview for subjects near the edges; a general-purpose centered crop cannot understand which face, label, or object is important.
Geometry first, encoding second
The output MIME type follows the validated JPEG, PNG, or WebP source. Resizing still requires decoding and re-encoding, so the result is not byte-identical and source metadata is not promised.
Useful for opaque photographs. JPEG cannot store an alpha channel, so transparent source pixels are composited over the background color selected in the tool.
Keeps decoded alpha and sharp pixel boundaries through lossless encoding, but photographs can produce much larger files than lossy JPEG or WebP.
Can combine browser-controlled lossy encoding with transparency. Browser encoder support is checked: a fallback blob with the wrong MIME type is rejected.
Validate before allocating a canvas
Start from the destination
Choose a 1200 × 1200 pixel box with contain. A 3:2 landscape source becomes 1200 × 800; the whole photograph remains visible.
Choose 512 × 512 with cover. Inspect the centered crop, especially faces or logos near an edge, before exporting.
Choose 50% with aspect lock and no-upscale. Each dimension is halved, so the output has one quarter of the source pixel count.
Local pixels, bounded claim
The selected file is read with browser file APIs, decoded, drawn to a canvas at the computed geometry, encoded, previewed, and downloaded without intentionally sending its image bytes to an image-processing service. Large dimensions can still consume significant local memory; a decoded RGBA canvas commonly requires about four bytes per pixel before browser overhead.
Ordinary page requests are separate from image processing. Browser extensions, device security tools, cloud-synced folders, and any destination where you later share the download have their own data handling. Re-encoding also should not be treated as a guaranteed metadata-sanitization process.
When delivery size matters more than exact geometry, use measured JPEG/WebP quality search and proportional fallback resizing.
Open the Image Compressor →Geometry and format answers
Use pixels when a layout, platform, or asset specification requires exact dimensions. Use percent when you want a relative scale such as half-size while preserving the relationship to the source dimensions.
Contain fits the whole image inside the requested box and can leave unused space on one axis. Cover fills the entire box and crops overflow from the other axis. Both preserve the image's aspect ratio.
No-upscale prevents the image from being enlarged beyond its source dimensions. It is useful when a requested box is larger than the original and you prefer a smaller output over invented extra pixels.
No. Upscaling creates more pixels by interpolation but cannot restore detail that was not present in the source. The larger result may look softer or expose compression artifacts.
PNG and WebP output can retain decoded transparency when the browser encoder supports it. JPEG has no alpha channel, so transparent pixels are flattened onto the selected background color.
It accepts validated static JPEG, PNG, and WebP files up to 25 MiB and 40 megapixels. HEIC, AVIF, animated images, unsupported signatures, and undecodable files are rejected; processing occurs in the current browser tab.