Image Resizer

Resize images to exact pixel sizes, by percentage or to presets like 1920×1080, with or without keeping the aspect ratio. Batch resizing runs in your browser.

The interactive tool loads here when JavaScript runs.

About this tool

What is the Image Resizer?

The Image Resizer changes the pixel dimensions of one image or a batch. Type a width and height, pick a preset such as Full HD (1920×1080) or Square Medium (800×800), or switch to Percentage and scale everything by, say, 50%.

With Maintain aspect ratio on, the image is scaled to fit inside the box you set, the way CSS object-fit: contain works, so nothing is cropped or stretched. With it off, the image is forced to exactly the width and height you typed. Crop to fill gives the exact size without stretching: the image is scaled to cover the box and the edges are trimmed from the centre, the way CSS object-fit: cover works. Every result is a JPEG at quality 0.9, unless you set a Min and Max size in KB, in which case the tool picks the highest quality that stays under the maximum and flags a file that lands outside the range.

Resizing happens on a canvas in your browser. Files are not uploaded, and the resized copies carry no EXIF metadata from the originals.

  • Exact pixel, percentage and preset resizing
  • Fit-inside aspect ratio maths with whole-pixel rounding
  • Batch processing with drag and drop
  • Presets from 400×400 to 4K UHD (3840×2160), plus upload-form photo and signature sizes
  • Crop to fill an exact size without stretching
  • Optional min and max file size in KB
  • Descriptive file names such as photo_1440x1080.jpg
  • Runs locally; images never leave your device
Read the guide: Resize, Convert, Compress: A Practical Order for Web Images

Updated

How to use the Image Resizer

  1. Choose Pixels or Percentage under Scaling Type.
  2. For Pixels, pick a Preset Size or type Width (px) and Height (px), and decide whether Maintain aspect ratio should stay on.
  3. For Percentage, enter a Scale (%) between 1 and 500.
  4. Drop images onto the upload area or click Choose Images. Each card shows the old and new dimensions and file sizes.
  5. Change the settings and click Resize All to redo the batch, then Download or Download All. Files are named like photo_1440x1080.jpg.

Worked examples

Phone photo into a Full HD box

Input

4000×3000 photo, preset Full HD (1920×1080), Maintain aspect ratio on

Output

1440×1080

The scale is min(1920/4000, 1080/3000) = 0.36. With the switch off the output would be 1920×1080 and visibly stretched sideways.

Portrait photo into a landscape box

Input

3000×4000 photo, width 1920, height 1080, aspect ratio on

Output

810×1080

Height is the limiting side: 1080 / 4000 = 0.27, and 3000 × 0.27 = 810.

Scaling by percentage

Input

1001×333 image at 50%

Output

501×167

Each side is multiplied by 0.5 and rounded to the nearest whole pixel (500.5 → 501, 166.5 → 167).

Background and insight

Aspect ratio is width divided by height. To fit an image inside a box without distortion you scale both sides by the same factor: the smaller of target width / original width and target height / original height. A 4000×3000 photo fitted into 1920×1080 gets min(0.48, 0.36) = 0.36, so it becomes 1440×1080. The height fills the box and the width stops short. Results are rounded to whole pixels and never drop below 1.

Pixel count grows with the square of the dimensions. Halving width and height leaves a quarter of the pixels, which is why resizing is usually the single biggest file-size saving for photos straight off a phone, where 12 megapixels (4032×3024) is common and a web page rarely needs more than 2000 pixels across.

Making an image larger cannot add detail. The canvas interpolates new pixels from existing ones, so a 400-pixel logo scaled to 1600 pixels looks soft. Very large reductions have the opposite issue: browsers may sample from too few source pixels and leave jagged edges. For extreme reductions, resizing in two steps (50%, then the final size) usually looks cleaner.

Common use cases

  • Website and CMS images

    Bring phone photos down to 1600 or 2000 pixels wide before uploading them to a blog or store.

  • Social and profile pictures

    Use the square presets for avatars and listings that expect 400, 800 or 1200 pixels.

  • Wallpapers and slides

    Fit images to HD, Full HD, QHD or 4K UHD frames for presentations and screens.

  • Batch thumbnails

    Scale a folder of images to 25% to produce quick previews for a gallery or document.

Tips and limitations

  • Maintain aspect ratio fits inside the box; it does not crop. To get an exact square from a rectangle, switch on Crop to fill.
  • Upload forms often fix both pixels and KB (for example a 200×230 photo between 20 and 50 KB). The Form photo, signature, thumb impression and declaration presets set the size, Crop to fill and the KB range in one step; check them against your own form, because every exam or portal sets its own.
  • Small images are enlarged too if the box is bigger than the source. Check the dimensions on each card.
  • Output is always JPEG, so transparent areas become white. Use the Image Format Converter afterwards if you need PNG.
  • The HD preset is 1280×720 and Full HD is 1920×1080, matching the broadcast naming.
  • For a smaller file at the same dimensions, run the result through the Image Compressor.

Sources and further reading

  1. CanvasRenderingContext2D: drawImage() method, MDN Web Docs. How the browser scales an image onto a canvas
  2. Learn Images, Google. Sizing images for the web
  3. Using responsive images in HTML, MDN Web Docs

Frequently asked questions

How do I resize an image without stretching it?

Keep Maintain aspect ratio switched on. The tool then scales width and height by the same factor so the image fits inside the box you typed. One side matches your number and the other is smaller, so nothing is distorted or cropped.

How is the new height calculated when I keep the aspect ratio?

The tool takes the smaller of target width ÷ original width and target height ÷ original height, multiplies both sides by it and rounds to whole pixels. A 4000×3000 image in an 800×800 box gets a factor of 0.2 and becomes 800×600.

Can I resize an image to an exact size like 1200×630?

Yes. Type 1200 and 630 and switch on Crop to fill: the image is scaled to cover 1200×630 and the extra edges are trimmed from the centre, so nothing is stretched. With Maintain aspect ratio off and Crop to fill off, the image is stretched to the exact size instead.

Does resizing a photo reduce its file size?

Usually by a lot. File size tracks pixel count, and halving both sides removes three quarters of the pixels. A 4032×3024 phone photo resized to 1600 pixels wide often drops from several megabytes to a few hundred kilobytes.

Why does my enlarged image look blurry?

Enlarging cannot invent detail. The browser fills the new pixels by interpolating between existing ones, which softens edges. Start from a larger original or use a vector format such as SVG for logos and icons.

What format does the image resizer save in?

It saves JPEG at quality 0.9, named after the original with the new dimensions added, for example beach_1440x1080.jpg. Transparent areas are filled with white because JPEG has no transparency. If you need PNG or WebP, run the resized file through the Image Format Converter.

Is there an in-depth guide to the Image Resizer?

Yes. “Resize, Convert, Compress: A Practical Order for Web Images” covers the background, how it works, common pitfalls and worked examples. Read the full guide.