Optimize tool

Resize an image to the dimensions you need

Set pixels, scale by percentage, or choose a social-media preset. Compare the output before downloading.

Processing
In your browser
Accepts
JPEG, PNG, WebP, AVIF, GIF

Drop an image to resize it

Choose a JPEG, PNG, WebP, AVIF, or GIF. Set exact pixels, a percentage, or a social-media preset.

Processed privatelyJPEG, PNG, WebP, AVIF, or GIFUp to 75 MB

Fit

Fits the entire image inside the selected box. Nothing is cropped, so one output dimension may be smaller.

Fill

Produces the selected width and height by cropping equally from opposite edges around the center.

Exact

Produces both selected dimensions. Keep the ratio locked to avoid stretching the image.

Privacy and image quality

Resizing decodes and re-encodes visible pixels on your device. PNG keeps lossless pixels, while JPEG, WebP, and AVIF use the selected quality. Files never leave your browser. Very large images are rejected before they can exhaust browser memory.

Transparency and animation

PNG, WebP, and AVIF outputs preserve transparent pixels when the browser encoder supports them. JPEG has no transparency and uses a white background. JPEG and PNG are static. Animated GIF, WebP, and AVIF inputs are flattened to their first frame because canvas output does not preserve animation.

Resize geometry

The requested box and final image are not always the same

Suppose a 4000 × 3000 photo needs a 1200 × 630 social image. The mode decides how those two aspect ratios are reconciled.

Fit
Outputs 840 × 630. The complete photo remains visible, but it does not fill the width.
Fill
Outputs 1200 × 630. The center is retained while excess height is cropped.
Exact
Outputs 1200 × 630. With the ratio unlocked, the full source is stretched to that shape.

Aspect ratio protects proportions

A locked ratio links width and height. Presets intentionally unlock the dimensions because Fit, Fill, or Exact must decide how the source enters a fixed social-media frame.

Percentage uses source dimensions

At 50%, a 4000 × 3000 source becomes 2000 × 1500. Switching to percentage recalculates both fields from the displayed percentage.

Output format matters

JPEG is compact for photos but has no transparency. PNG is lossless and can be larger. WebP and AVIF combine modern compression with alpha support when the browser can encode them. Quality controls apply only to lossy formats.

Browser safety limits

Photo Payload rejects files above 75 MB, 100 million pixels, or 32,768 pixels on either side before processing. Large output dimensions can still require substantial memory, especially on mobile devices.

Common questions

Image resizer FAQ

Keep the aspect-ratio control locked and use Fit. Enter one dimension and Photo Payload calculates the other from the source ratio.

Fit keeps the whole image inside the requested box, so one dimension may be smaller. Fill creates the exact requested dimensions by center-cropping overflow from opposite edges.

Often, because fewer pixels usually require fewer bytes, but output size also depends on format, quality, transparency, and image detail. The displayed estimate is not a guaranteed final size.

Yes when Prevent enlargement is turned off. Enlargement creates more pixels but cannot recover detail that was not in the source, so the result can look soft or blocky.

Resizing re-encodes the image and removes embedded metadata. Animated GIF input is flattened to its first frame; JPEG output replaces transparency with white.

After dimensions are correct, reduce encoding size or choose a format suited to the destination.