Resize Image

Set a new width and height, or a single scale percentage, for a JPEG, PNG, WebP, AVIF, GIF, BMP, ICO, or HEIC image. Aspect ratio can stay locked in dimension mode. JPEG, PNG, and WebP keep their format.

Use this tool

Drop a file here, or use the picker. The file type is checked from its contents.

Size

Result

The result appears in this panel after you run the tool.

About this tool

Dimensions mode keeps the width, height, and aspect lock. The lock stores the source aspect ratio and rounds the other side to the nearest pixel, so a very narrow image can drift by a pixel. Unlock it when you want an exact width and height that do not match the original ratio.

Percentage mode uses one scale. 150% makes each side one and a half times as long, and the aspect ratio stays as it was. The page shows the resulting pixel size. You do not enter a percentage and a pixel size at the same time.

Resampling changes how drawImage samples the source. Nearest neighbor turns smoothing off, which keeps hard edges for pixel art. Bilinear uses the canvas low-quality filter. Bicubic uses the canvas high-quality filter, which is the previous default. The selected filter is applied to the resized pixels, and the preview uses that same result.

The output MIME type matches the input: a resized WebP is still WebP. AVIF that this browser cannot encode comes back as PNG. If the requested size would exceed 40 million pixels, the page stops and explains that. It does not substitute a smaller size.

A resized image can be cropped, given a new canvas, rotated, flipped, turned grayscale, or compressed next. Those suggestions come from the format you actually produced. Canvas Size is the tool that changes the surrounding canvas without scaling the picture.

How to use it

  1. Choose an image. Width and height start at the image's current size.
  2. Stay on Dimensions to edit pixels, with the lock on or off. Switch to Percentage to scale both sides together, such as 150%.
  3. Pick nearest neighbor, bilinear, or bicubic. Resize it and download the result, or continue with another edit.

Limitations

A new sample grid, then a container to match

Dimensions, percent, and the three filters

Width and height are whole pixels of at least one. In dimensions mode the aspect lock remembers the source width divided by the source height and, when you edit one side, rounds the other side to the nearest pixel. A very thin picture can drift by one pixel under that rounding. Unlock the ratio when the target box is allowed to squash or stretch. Percent mode ignores the pixel fields and multiplies both sides by the same percentage, then rounds each side and refuses a result below one pixel. The readout under the scale field shows that pixel size before you run.

Resampling is how the canvas samples the source while drawing into the new grid. Nearest neighbor disables smoothing, so hard edges in pixel art stay stepped. Bilinear turns smoothing on and asks for the canvas low setting. Bicubic, the control’s initial choice, turns smoothing on and asks for the canvas high setting. There is no extra resampling library behind those three names. Making the picture larger fills gaps from neighboring samples. It does not restore texture that a prior JPEG already quantized away. A target above the in-memory pixel guard, forty million pixels, stops before a canvas is allocated.

The file after the grid changes

The bitmap is drawn at the new size and then encoded with preserve intent, so the MIME follows the source when the browser can write it. The quality range begins at 0.92. JPEG and WebP accept that number. AVIF accepts it only when a probe encodes the same pixels at two AVIF qualities and the two results differ in byte length. While the written file is PNG, GIF, BMP, ICO, or HEIC saved as PNG, the range stays disabled and the encoder is called without a quality argument. An AVIF source on a browser that cannot emit AVIF becomes PNG, and the status says so.

GIF output is a single still frame reduced to a 256-color palette. BMP output is uncompressed 24-bit, with any partial alpha blended onto white. Those formats ignore the range even though the pixels were resampled.

Why a second resize looks softer

A JPEG that you shrink and then enlarge does not return to the first file. Each JPEG or WebP or AVIF write quantizes again, so a follow-up save, even at the same 0.92, can blur edges the filter had kept. If the only goal is a smaller JPEG, one resize at the quality you want is cleaner than resize-then-compress-then-resize. A PNG resize keeps the resampled samples without a quality knob. The bytes are still a new PNG, not a cropped chunk of the old file.

Privacy

Your file is processed in your browser and is not uploaded to UtilChain. The file name is not sent to analytics.