How to resize an image without losing quality

Making a picture smaller to the size it will actually be shown at loses almost nothing you can see. What costs quality is enlarging (new pixels, no new detail), saving a JPG at a low quality setting, andsaving the same JPG again and again.

So: start from the original file, resize once to the size you need, and save JPG or WebP at around 80–90% quality, or PNG for graphics and text.

Shrinking to display size is safe

A 4000 × 3000 photo holds 12 million pixels, far more than a screen shows when the picture sits on a page or in a message. If it will appear 1200 or 1920 pixels wide, the extra pixels are scaled away when it is displayed anyway. Doing it yourself first gives a much lighter file that looks the same at that size.

What you lose is the finest detail: individual hairs, distant leaves, texture you would only notice by zooming in. If someone may need to crop into the picture or print it large later, keep the original as well and send the resized copy.

Pick the size from where the image will be used, not a round number. Theimage resolution guide explains how pixel size, megapixels and file size relate.

How the resampling is done matters

When an image shrinks, each new pixel has to stand for a block of old ones. A fast shortcut simply picks one old pixel per new one and skips the rest. Thin lines break up, text looks ragged and fine patterns turn into stripes.

The resizer on this site does it in two stages. It first averages whole blocks of pixels (a box filter) until the image is less than twice the target size, then uses a Lanczos-3 filter to reach the exact size. Lanczos weighs the pixels around each point, so edges stay crisp without jagged steps. Transparent pixels are handled with premultiplied alpha, which stops dark fringes appearing around the edges of a logo or cut-out.

You do not need to set any of this. It is simply why a careful resizer and a quick one can give different results from the same settings.

Enlarging cannot add detail

Making an image bigger means inventing pixels between the existing ones. A good filter makes the in-between pixels smooth rather than blocky, but it can only blend what is already there. Fuzzy text stays fuzzy, and the larger you go, the softer the picture looks.

Enlarge only when something insists on a minimum pixel size and your image falls a little short. If you have a larger version of the picture anywhere, start from that instead.

The quality setting is where JPG loses detail

JPG and lossy WebP files are always compressed when they are saved, and the quality slider decides how much is thrown away. The JPEG standard says so plainly: its usual (DCT-based) processes are lossy, while still aiming for “high visual fidelity”. High settings keep the loss hard to see; low settings bring blur and blocky patches, first in smooth skies and around sharp edges.

Compare that with the resize examples above. At 1200 × 900 and quality 85%, the file was 96,941 bytes, far smaller than the full-size photo at 40%, and it looks clean at its intended size. That is the usual pattern: reduce the pixel size first, then use a moderate quality, rather than keeping every pixel and crushing the quality.

If you need to land under an exact number of kilobytes, the compress to a target size tool balances the two for you. For a JPG you only want to make lighter without changing its size, useCompress JPEG.

Do not save the same JPG over and over

Every time a JPG is opened, changed and saved as JPG again, it goes through lossy compression once more. One extra save at a high setting is rarely visible. A photo that has been edited, saved, sent, edited and saved many times can pick up smeared detail and blocky edges.

Graphics, screenshots and text

Logos, screenshots and diagrams have hard edges and flat colour, which JPG handles worst. Resize them and save as PNG, so the only change is the resampling itself. If the PNG is then too heavy, cut its colours rather than switching to JPG: the PNG vs JPG guide has measured examples.

Screenshots with small text need extra care. Letters are drawn with strokes only a pixel or two wide, and any resampling softens them, so shrink a screenshot only as far as you must, or crop away what you do not need instead. The crop vs resize guide covers when each is the better move.

Questions

Can I make a photo sharper by setting it to 300 DPI?

No. DPI is a number stored in the file for printing; changing it leaves every pixel as it was. In our test, setting a 4000 × 3000 photo to 300 DPI changed its size by 0 bytes. See DPI vs PPI.

Is resizing by percentage worse than typing pixels?

No. Both produce a new pixel size and go through the same resampling. Percentage is simply quicker when you want, say, a quarter of the size: 25% of 4000 × 3000 is 1000 × 750.

Does resizing a PNG lose quality?

Shrinking removes pixels, as with any format, but saving the result as PNG adds no further loss, because PNG is lossless. The file stays larger than a JPG of the same photo.

Sources

  1. ITU-T Recommendation T.81: Digital compression and coding of continuous-tone still images (JPEG), ITU (CCITT), hosted by W3C. Checked December 2026.
  2. Portable Network Graphics (PNG) Specification (Third Edition), W3C. Checked December 2026.

Browse all image guides