ToolNimba Browse

🖼️ Image Resizer

By ToolNimba Editorial Team · Updated 2026-06-19

PNG, JPEG, WebP, GIF or BMP. Files stay on your device, nothing is uploaded.

Choose an image to begin. All processing happens locally in your browser.

This image resizer changes the pixel dimensions of a photo right in your browser. Pick an image, type the width and height you want (or lock the aspect ratio and set just one), and download the result. Because everything runs locally using your browser canvas, your picture is never uploaded to a server, which keeps private photos private and makes the resize instant.

What is the Image Resizer?

Resizing an image means changing how many pixels wide and tall it is. A digital photo is a grid of pixels, so a 4000 by 3000 image holds twelve million of them. When you make it smaller, the browser samples that grid down to the new size; when you make it larger, it invents in-between pixels by interpolation. Reducing size (downscaling) keeps quality well because you are throwing detail away cleanly. Enlarging (upscaling) cannot add real detail, so a small image blown up will look soft or blocky.

The aspect ratio is the relationship between width and height, for example 4:3, 3:2, or 16:9. If you change width and height independently, the picture stretches or squashes and people look too thin or too wide. Keeping the aspect ratio locked means the tool works out the matching dimension for you, so the photo simply scales without distortion. This tool locks the ratio by default and lets you unlock it when you deliberately want to force an exact size.

File format and resizing interact. PNG is lossless and supports transparency, so it is ideal for logos, screenshots and graphics, but the files are larger. JPEG and WebP are lossy: they compress photographs into much smaller files at a quality you choose, which is why they suit web pages and email. This resizer lets you keep the original look with PNG or shrink the file further by exporting to JPEG or WebP with an adjustable quality slider.

When to use it

  • Shrinking a large camera photo so it loads fast on a website or fits an upload size limit.
  • Resizing an image to exact pixel dimensions required by a form, marketplace listing or printer.
  • Making a profile picture or thumbnail at a specific square or fixed size.
  • Reducing a screenshot before attaching it to an email or support ticket.
  • Scaling private or sensitive images without uploading them to an online service.

How to use the Image Resizer

  1. Click Choose an image and pick a PNG, JPEG, WebP, GIF or BMP file from your device.
  2. The tool shows the original dimensions and fills in the current width and height.
  3. Type the new width or height. With Lock aspect ratio on, the other value updates automatically.
  4. Optionally pick an output format (PNG, JPEG or WebP) and, for JPEG or WebP, set the quality.
  5. Press Resize image to redraw it, then use the download button to save the new file.

Formula & method

When the aspect ratio is locked, the matching dimension is: new height = new width × (original height ÷ original width), and new width = new height × (original width ÷ original height). The aspect ratio itself is width ÷ height.

Worked examples

A 4000 × 3000 photo (4:3) that you want 1200 px wide, with the aspect ratio locked.

  1. Original aspect ratio = 4000 ÷ 3000 = 1.3333 (4:3)
  2. New height = new width × (original height ÷ original width)
  3. New height = 1200 × (3000 ÷ 4000) = 1200 × 0.75 = 900
  4. Pixel count drops from 12,000,000 to 1,080,000, about 9 percent of the original.

Result: Resized to 1200 × 900 px, the 4:3 shape is preserved.

A 1920 × 1080 screenshot (16:9) that you want 800 px wide, aspect ratio locked.

  1. Original aspect ratio = 1920 ÷ 1080 = 1.7778 (16:9)
  2. New height = 800 × (1080 ÷ 1920)
  3. New height = 800 × 0.5625 = 450

Result: Resized to 800 × 450 px, still 16:9.

Common aspect ratios and matching dimensions

Aspect ratioUsed forExample sizes (px)
1:1Profile pictures, social posts512 × 512, 1080 × 1080
4:3Compact camera photos, slides1600 × 1200, 1024 × 768
3:2DSLR and 35mm photos1500 × 1000, 3000 × 2000
16:9Widescreen, video thumbnails1920 × 1080, 1280 × 720
9:16Phone screens, stories, reels1080 × 1920, 720 × 1280

Choosing an output format

FormatLossy?TransparencyBest for
PNGNo (lossless)YesLogos, screenshots, line art, sharp graphics
JPEGYesNoPhotographs where small file size matters
WebPYes (also lossless)YesWeb images needing small files plus transparency

Common mistakes to avoid

  • Stretching the image by unlocking the ratio. If you turn off Lock aspect ratio and enter mismatched width and height, the photo squashes or stretches. Keep the ratio locked unless you truly need an exact, non-proportional size.
  • Upscaling a small image and expecting more detail. Enlarging adds no real information, so a 300 px image blown up to 3000 px looks soft and blocky. Start from the largest original you have when you need a big result.
  • Saving a photo as PNG to make it smaller. PNG is lossless and often larger than JPEG for photographs. To cut file size on a photo, export as JPEG or WebP and adjust the quality slider rather than relying on PNG.
  • Exporting transparency as JPEG. JPEG cannot store transparency, so transparent areas are filled (this tool paints them white). Use PNG or WebP when you need to keep a transparent background.
  • Confusing pixel dimensions with DPI. On screen only the pixel width and height matter. DPI affects the physical print size, not how an image displays online, so resizing here changes pixels, not a print resolution tag.

Glossary

Pixel
The smallest dot of color in a digital image. Dimensions are measured in pixels (px).
Aspect ratio
The proportion of width to height, such as 16:9. Keeping it fixed prevents distortion.
Downscaling
Reducing an image to fewer pixels. This generally keeps quality high.
Upscaling
Enlarging an image to more pixels. The browser interpolates new pixels, which can look soft.
Lossy compression
A format like JPEG that discards some detail to shrink the file, at a quality you choose.
Lossless compression
A format like PNG that keeps every pixel exactly, usually at a larger file size.
Canvas
A browser drawing surface used here to redraw the image at its new size, with no upload involved.

Frequently asked questions

How do I resize an image?

Choose your image, type the new width or height, and press Resize image. With Lock aspect ratio on you only need to set one dimension and the tool calculates the other. Then download the resized file. It all happens in your browser.

Is my photo uploaded to a server?

No. The image is read and redrawn entirely in your browser using FileReader and the HTML canvas. Nothing is sent anywhere, which is why it works offline once the page has loaded and keeps private images private.

Will resizing reduce the image quality?

Making an image smaller (downscaling) keeps quality well. Making it larger (upscaling) cannot add real detail, so it can look soft. Saving as JPEG or WebP also applies compression, so use the quality slider to balance size against sharpness.

How do I keep the aspect ratio?

Leave Lock aspect ratio checked (it is on by default). When you change the width, the height updates proportionally, and vice versa, so the image scales without stretching or squashing.

Which format should I download?

Use PNG for logos, screenshots and graphics or when you need transparency. Use JPEG for photographs where a smaller file matters. WebP gives small files and supports transparency, making it a good all-round choice for the web.

Is there a file size or dimension limit?

There is no fixed upload limit because nothing is uploaded, but very large images use more memory, so extremely high dimensions can be slow on low-powered devices. This tool caps each dimension at 20000 pixels.