Image Resizer

Image Resizer

Your image never leaves your browser. Resizing happens entirely on this page with JavaScript - no upload to any server, no sign-up.

PNG is lossless: the quality slider has no effect on PNG output. It applies to JPEG and WebP only.

Leave blank for no size limit. When set, quality is lowered in steps until the output is under the target, never below quality 10. It does not apply to PNG, because PNG is lossless.

What this tool does

The Image Resizer changes the width and height of a picture right in your browser. It works with JPG, PNG and WebP images. You can type exact dimensions in pixels, or pick a ready-made size for a passport photo, Instagram, Facebook, YouTube or X. You choose the output format (JPEG, WebP or PNG) and the quality, and you can set a target file size in KB. With a target set, the tool lowers the quality in steps until the file fits under it, never below quality 10.

Your image never leaves your browser. It is read and resized with JavaScript on this page, never uploaded to any server. There is nothing to install and no sign-up.

How to use it

  1. Click “Choose an image” and pick a JPG, PNG or WebP file. The page shows the original dimensions and file size.
  2. Choose a “Resize mode”: keep “Custom – exact dimensions” and type a “Width (px)” and “Height (px)”, or pick a preset such as “YouTube thumbnail – 1280 x 720”, which fills both fields for you.
  3. Tick “Keep aspect ratio” if you want the picture to keep its original proportions: changing the width then sets the height for you automatically.
  4. Pick an “Output format” (JPEG, WebP or PNG) and set the “Quality” slider for JPEG or WebP. PNG is lossless: the quality slider has no effect on PNG output.
  5. Optional: type a “Target file size (KB)”. When set, the tool lowers the quality in steps until the output is under the target, never below quality 10.
  6. Click “Resize image”. The page shows the resized dimensions and output file size, with a preview. Click “Download resized image” to save it as ilovetool3-resized-image.jpg (or .webp / .png).

Worked examples

We tested the tool with a real 1200 x 800 px JPG photo (92,774 bytes, 90.6 KB). Here is exactly what it produced.

Example 1 – exact size. Resizing the photo to 600 x 400 px as a JPEG at quality 80 gave an output file of 26.3 KB, down from 90.6 KB. The downloaded file measured 600 x 400 px, exactly as requested.

Example 2 – YouTube thumbnail preset. Choosing the “YouTube thumbnail – 1280 x 720” preset resized the same photo to 1280 x 720 px. The output was 94.9 KB, slightly larger than the original 90.6 KB, because the picture was enlarged. The downloaded file measured 1280 x 720 px.

Example 3 – target file size. Resizing to 600 x 400 px with a target file size of 50 KB produced a 26.3 KB file at final quality 80%, already under the target, so no quality reduction was needed. With a tighter target of 10 KB, the tool stepped the quality down and finished at 8.3 KB at final quality 30%.

Common mistakes

  • Clicking “Resize image” before choosing a file. Pick an image first, or the tool says “Please choose an image first.”
  • Enlarging a small picture and expecting it to stay sharp. Making an image bigger cannot add detail, and it can make the file larger, as Example 2 shows.
  • Changing the width with “Keep aspect ratio” ticked when you want different proportions. The height is then recalculated from the original ratio, so a preset shape such as a square is lost. Picking a preset turns the box off for you.
  • Expecting the quality slider to change a PNG. PNG is lossless, so the quality slider and the target file size have no effect on PNG output.

FAQs

Is my photo uploaded anywhere?
No. The Image Resizer runs entirely in your browser. Your image never leaves your device, and no copy is stored on any server.

Which image formats can I resize?
JPG, PNG and WebP. If you pick another kind of file, the tool tells you plainly: “That file is not an image. Please choose a JPG, PNG or WebP image.”

What does the target file size do?
If you set one, the tool checks the output size after resizing. If it is over your target, it lowers the quality by 10 points at a time and tries again, stopping at quality 10. The target does not apply to PNG, because PNG is lossless.

What size is a passport photo?
A standard passport photo is 35 x 45 mm. At 300 dpi that is 413 x 531 px, which is one of the presets in the “Resize mode” list. Choose it and the width and height are filled in for you.

Related tools

After resizing, make the file smaller still with the Image Compressor. Need a code that links to your picture or page? Try the QR Code Generator.

Scroll to Top