Skip to main content

Resize an image

Change the dimensions of a PNG, JPEG, or WebP image, adjust width and height, then download the resized file directly from your browser.

  • Export
Automate

Embed this widget

Customize the result, check the live preview, then copy the code.

Preview

Embed code type

Code to copy

Responsive and automatically resized by Bethemesh.

Image
No image loaded

Drop an image here

Add a PNG, JPEG, or WebP image. The file stays on your device and all edits run locally in your browser.

Need more editing options?

Use multiple editing tools in one workspace, with your open file and its current edits.

Open the full editor

Was this tool useful?

How does this tool work?

Resizing an image means changing its number of pixels: shrinking a 6,000 px photo for a web page, matching the width a site or CMS requires, or lightening an attachment. This tool sets the width or height to the exact pixel while keeping the proportions, with an instant preview, right in your browser.

After import, the Width and Height fields show the current size. Type either value: the other is recalculated to keep the image's proportions exactly. You can also drag the handle at the bottom right of the image; the fields follow.

The final Dimensions are shown while you adjust. Click Apply: the image is resampled with the browser's high-quality smoothing, which limits aliasing on strong reductions. Cancel drops the current setting.

Proportions are always kept: to change the shape, crop first. Enlarging is possible up to 32,768 px but adds no detail. The downloaded file keeps the imported format, with -edited added to its name.

How to use this tool

  1. Import the image

    Drop a PNG, JPEG or WebP image; its size appears in the fields.

  2. Enter the new size

    Type the width or height you want, or drag the handle.

  3. Apply and download

    Check the final dimensions, click Apply, then download.

Calculating the new size

The dimension you did not type comes from proportionality; the pixel count changes with the square of the scale factor.

Height from the width

H' = round(W' × h ÷ w)

Likewise, W' = round(H' × w ÷ h).

Pixel count ratio

(W' × H') ÷ (w × h) = (W' ÷ w)²

Dividing the width by 5 divides the pixel count by 25.

w, h
original width and height
W', H'
new width and new height

Use cases

Prepare photos for a website

Shrink camera photos to 1,200 or 1,600 px wide before publishing them in an article.

Meet a required size

Give an image the exact width a theme, a platform or a form demands.

Lighten an attachment

Reduce a photo's resolution before sending it by email or messaging app.

Examples

Camera photo shrunk for the web

H' = 1,200 × 4,000 ÷ 6,000 = 800 px. The pixel count is divided by (6,000 ÷ 1,200)² = 25, which makes the file much lighter.

Input

6,000 × 4,000 px photo, width entered: 1,200

Result

1,200 × 800 px image

Required height of 1,080 px

The width is recalculated: 1,080 × 1,920 ÷ 1,440 = 1,440 px. The 4:3 shape is kept; for 16:9, crop before resizing.

Input

4:3 image of 1,920 × 1,440 px, height entered: 1,080

Result

1,440 × 1,080 px image

Tips and best practices

  • Shrink to the size actually displayed: an image shown at 800 px needs no more than 1,600 px, even for high-density screens.
  • Resize before compressing: the optimizer then reaches a much smaller file size.
  • Avoid enlarging a small image: edges get blurry, resizing does not create detail.
  • Keep the original: several successive reductions degrade more than a single direct one.

Sources and references

Frequently asked questions

Are proportions kept?

Always: width and height are linked. For another shape, crop the image or enlarge the canvas.

Can I enter an exact size?

Yes. Type the width or height in pixels; the other dimension is calculated and rounded to the pixel.

Can I enlarge an image?

Yes, up to 32,768 px per side, but enlarging adds no detail: the image will look blurrier.

Does resizing reduce the file size?

Yes, usually a lot, because the pixel count drops with the square of the reduction factor.

Does the format change?

No. The downloaded file keeps the imported format; to change format, use the converter.

Is my image uploaded to a server?

No. Resampling is done in your browser.

Related tools

Tools similar or complementary to this one.

Works well with

Convert an image to PNG, JPEG, or WebP and adjust output quality before download.

Images & graphicsFeaturedUse this tool