Image Resizer

Resize an image by pixels, by percentage or to fit a box, with the aspect ratio locked, or resize a whole batch at once and download it as a ZIP. Everything runs in your browser.

Tool Media & Files Updated Oct 4, 2026
How to Use
  1. Pick a mode: Pixels, Percent or Fit in box for one image, or Batch for many. A sample photo is resized as soon as the page opens.
  2. Drop an image on the box, click to browse, or paste one. TIFF, PSD, HEIC, TGA, PCX and camera RAW files open as well as PNG and JPEG.
  3. Enter the new size. With Lock aspect ratio on, typing the width fills in the height; Fit in box scales the image until it touches the box without cropping.
  4. Choose the resampling quality: High for photos (it halves in steps for big reductions) or Nearest neighbour for pixel art.
  5. Save the result in any format from the Save panel. In Batch mode, drop up to 200 images, set the longest side or a percentage and an output format, press Resize all, then Download ZIP.
Image & Size
px
px
Presets
Resized Image
New Size
—
Original
—
Scale
—
Pixels Kept
—

Worked Example

A phone photo for a web page. A 4000×3000 photo set to 1200 px wide with the aspect ratio locked: height = 1200 × 3000 ÷ 4000 = 900 px. The scale is 30%, and 1200 × 900 = 1.08 megapixels is 9% of the original 12 megapixels.

Fit in a square box. A 1600×1200 photo into 1080×1080: s = min(1080 ÷ 1600, 1080 ÷ 1200) = min(0.675, 0.9) = 0.675, so the result is 1080×810, touching the left and right of the box with nothing cropped.

Batch by longest side. With the longest side set to 1200 px, a 4032×3024 landscape photo becomes 1200×900 and a 3024×4032 portrait becomes 900×1200, so a mixed folder all comes out the same size on its long edge.

The common mistake: unlocking the ratio and typing both sides. Setting that 1600×1200 photo to 1080×1080 scales the width by 0.675 but the height by 0.9, so everything is stretched 0.9 ÷ 0.675 = 1.33 times taller than it should be. Use Fit in box (1080×810) and add borders, or crop to a square first.

Show Work

Load an image to see the resize worked out step by step.

Formulas

Locked aspect ratio
h′ = round(w′ × H ÷ W)
W × H original, w′ the new width
Percent
w′ = round(W × p ÷ 100)
The same p for the height
Fit in box
s = min(Bw ÷ W, Bh ÷ H)
Capped at 1 when enlarging is off
Longest side
s = L ÷ max(W, H)
Used by Batch mode
Pixels kept
P′ ÷ P = s²
Half the width and height keeps 25% of the pixels

How Resampling Works

Resizing never moves the original pixels; it computes new ones. Nearest neighbour copies the closest source pixel, which keeps hard edges but makes photos blocky. Bilinear blends the four nearest pixels, and bicubic uses sixteen: Robert Keys described the cubic convolution kernel most software still uses in a 1981 IEEE paper. Lanczos filters, named after the mathematician Cornelius Lanczos, use a wider windowed sinc for slightly sharper results.

Shrinking is harder than it looks. The sampling theorem of Harry Nyquist (1928) and Claude Shannon (1949) says detail finer than the new pixel grid cannot be shown, and if it is not averaged away first it turns into aliasing: jagged edges and moiré on fabric and brick. Lance Williams’ 1983 mipmaps solved this for graphics by halving an image repeatedly, which is what this tool’s High setting does before the final step.

About This Tool

This resizer scales one image by exact pixels, a percentage or a bounding box, with a locked or free aspect ratio and four resampling choices, and saves it in any format the site’s image engine writes. Batch mode does the same to up to 200 images by longest side or percentage, shows each file’s size before and after, and packs the results into one ZIP.

Images are decoded in your browser by the engine behind the Universal Image Converter, so TIFF, PSD, HEIC, TGA, PCX and RAW files work too. Nothing is uploaded.

Related tools: Image Cropper, Image Compressor, and Universal Image Converter.

Frequently Asked Questions

How do I resize an image without stretching it?

Keep the aspect ratio locked and change only one side; the other is worked out as new height = new width × original height ÷ original width. A 4000×3000 photo set to 1200 px wide becomes 1200×900. Typing both sides for a different shape, such as 1080×1080, squashes it instead.

How much smaller will the file be after resizing?

The pixel count falls with the square of the scale. Halving each side leaves 25% of the pixels, and 4000×3000 to 1200×900 leaves 9%. A JPEG or WebP shrinks roughly in step with the pixel count; the readout shows the pixel percentage and the Save panel shows the real file size.

What does Fit in box do?

It scales the image by s = min(box width ÷ width, box height ÷ height), so it fills one side of the box and fits inside the other with nothing cropped. A 1600×1200 photo fitted into 1080×1080 uses s = 0.675 and comes out 1080×810. Tick Don’t enlarge to leave smaller images alone.

Which resampling quality should I choose?

High for photos: for reductions of more than half it shrinks in halving steps (1600 → 800 → 400) before the last step, which avoids the jagged, shimmering edges of a single big jump. Nearest neighbour copies whole pixels, so a 32×32 icon enlarged to 128×128 stays crisp instead of blurry.

How does Batch mode work, and is anything uploaded?

Batch mode decodes and resizes each image in turn in your browser, writes it in the format you choose, lists the before and after sizes, and puts every result in one ZIP. It takes up to 200 images of up to 100 megapixels each. Nothing is uploaded at any point.

How do I use the Image Resizer?

Simply type your numbers and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.

Do I need to install or sign up for anything?

Not at all — it runs in the browser with nothing to install and no account. After it loads once, it even works without an internet connection.

Is my information private?

Yes. Everything happens in your browser. Nothing you type is sent to a server or saved anywhere.

Common Use Cases

Website and blog images

A 4000×3000 camera photo shown 1600 px wide only needs 1600×1200: 16% of the pixels, so the page loads far faster.

Square social posts

Fit a 1600×1200 photo into 1080×1080 to get 1080×810 with nothing cut off, then add borders or crop if the platform wants a full square.

Email attachments

Resize 12-megapixel photos to 1600×1200 (1.9 MP) before attaching, so ten of them fit comfortably under a 25 MB limit.

Thumbnails

Fit each image into a 256×256 box for gallery or product thumbnails: a 1600×1200 photo becomes 256×192.

Pixel art and icons

Scale a 32×32 sprite to 400% with Nearest neighbour for a sharp 128×128 version with no blurring.

A whole folder at once

Batch 50 product photos to a 1200 px longest side as WebP and download one ZIP: a 4032×3024 photo becomes 1200×900 and a portrait 900×1200.

Last updated: