"Resize without losing quality" sounds like a simple request, but it hides two different situations. Making an image smaller in pixels can be done so that it looks just as good at its new size, and it is the most effective way to cut file size. Making an image larger cannot add detail that was never captured, no matter which tool you use. This guide explains the difference, shows how to keep the shape of a picture intact, and reports what happened to file sizes and sharpness when we resized real photos.
Pixels, dimensions and file size
A digital image is a grid of pixels. Its dimensions are the width and height of that grid, for example 3840 × 2560. Multiply them and you get the pixel count: 3840 × 2560 = 9,830,400 pixels, or about 9.8 megapixels.
When you halve both dimensions to 1920 × 1280, the pixel count drops to 2,457,600, a quarter of the original. That is the key fact behind resizing: file size follows the pixel count, not the width. Halving the width and height removes three quarters of the pixels.
Pixel dimensions are also what decides how sharp an image can look on screen. A 1200-pixel-wide image shown in a 1200-pixel-wide space is displayed one to one. Show it in a 600-pixel space and the screen is effectively doing the downscaling for you; show it in a 2400-pixel space and the screen has to stretch it, which makes it soft.
Aspect ratio: keep the shape
The aspect ratio is the relation between width and height. A 4000 × 3000 photo has a 4:3 ratio; a 1920 × 1080 image is 16:9. If you change the width and height by different factors, the picture is stretched or squeezed: faces get wider, circles become ovals.
To keep the shape, change only one side and let the other be calculated. In TabGarden's Resize Image tool this is what happens when Keep aspect ratio is checked or the Height field is left empty: the height is computed from the width and rounded to the nearest whole pixel. A 4000 × 3000 photo resized to a width of 1200 becomes 1200 × 900. The Percent mode always scales both sides by the same factor, so it keeps the shape as well.
If a website asks for an exact size with a different ratio, such as a square profile picture from a landscape photo, resizing alone will distort it. Crop the photo to the right ratio first in a photo editor, then resize.
Shrinking: how to do it well
Downscaling throws away pixels by design, but done properly the result looks like a smaller version of the same picture, not like a damaged one. Three things matter.
1. Start from the largest original you have
Resize from the original file, not from a copy that was already shrunk or compressed. Each lossy save (JPG or lossy WebP) adds a little error, and those errors pile up.
2. Resize to the size you actually need
If an image will be shown 1200 pixels wide, a 1200-pixel version will look the same on that screen as a 4000-pixel one, at a fraction of the file size. For screens with high pixel density, where one layout pixel is drawn with two physical pixels, you can choose twice the layout width.
3. Use a good resampling method, and be careful with very large reductions
When a program shrinks an image it has to compute each new pixel from several old ones. This step is called resampling, and the method affects sharpness and the risk of odd patterns (moiré). TabGarden's tool draws the image on an HTML canvas with the browser's imageSmoothingQuality set to "high", but it does not make a big reduction in one go. While the image is still at least twice the target width and height, it first halves it, and only the last step goes to the exact size. Reducing to a quarter is two halvings; reducing a 4000-pixel-wide photo to 1200 pixels is one halving to 2000 and then a final step to 1200. The measurements below show why: in the browser engine we tested, one big step with the "high" setting skipped over fine detail, while halving steps stayed much closer to an exact average. You do not need to do anything for this, and running the tool twice by hand would only save the JPG twice.
Enlarging: what is and is not possible
Upscaling creates new pixels by blending existing ones. The image gets bigger, but no new detail appears: edges become softer and fine texture turns into smooth blur. A 600-pixel photo enlarged to 2400 pixels will look like a 600-pixel photo viewed up close.
We measured this. We took 12 photos, shrank each to half its width and height, and then enlarged the half-size version back to the original dimensions. Compared with the original pixels, the result had a median PSNR of 32.0 dB (range 21.8 to 39.6 dB). PSNR, or peak signal-to-noise ratio, measures how close an image is to a reference; higher is closer. For comparison, simply re-saving the full-size photo as JPG at quality 92, without any resizing, scored a median of 41.7 dB (38.8 to 48.4 dB). The lost detail did not come back. On our three synthetic screenshots, the round trip was worse still (23.3 to 26.4 dB), because sharp text suffers most.
So: if you need a large image, look for a larger original. Use upscaling only when a form requires minimum dimensions and you have nothing bigger, and expect a softer picture.
How we measured
All measurements were run on 28 November 2026.
- Engine: headless Chromium 129 with a software-rendered canvas. We resized exactly as TabGarden's Resize Image tool does now: while the image is at least twice the target width and height, halve it on an intermediate canvas; then draw it at the target size; every step uses
imageSmoothingQuality"high"; then save. Where useful, we also report a single draw straight to the target size, the tool's earlier method, as a comparison. JPG output uses quality 0.92, which is the fixed setting the tool uses; PNG input is saved as PNG. - Photos: 12 CC0 photographs from Wikimedia Commons, used at their downloaded size, from 2500 × 1660 to 3840 × 2848 pixels and from 932 KB to 6,877 KB. They were already JPG files, not raw camera output.
- Screenshots and patterns: three synthetic 1600 × 1000 screenshots and a synthetic black-and-white line pattern drawn in the browser.
- File sizes are in KB (1 KB = 1024 bytes); "median" is the middle value of the set.
Results: how much smaller does halving make a file?
To isolate the effect of size, we saved each photo at full size and at 75%, 50% and 25% of its width and height, all as JPG at quality 0.92, and compared:
- 75% of the dimensions (56% of the pixels): median 60% of the full-size file (range 50 to 69%).
- 50% of the dimensions (25% of the pixels): median 30% of the full-size file (range 23 to 34%).
- 25% of the dimensions (6.25% of the pixels): median 9.0% of the full-size file (range 5.8 to 10.1%).
For 75% and 50% the tool's result is the same as a single draw. At 25% it is not: a single draw straight to a quarter gave a median of 8.5% (range 5.4 to 9.6%). The step-wise result is closer to an exact average of the source pixels (see the sharpness results below), and that extra detail costs a few bytes.
The file shrank slightly less than the pixel count, because a smaller image packs the same scene into fewer pixels, so each pixel carries a bit more detail. Still, halving the dimensions reliably cut the size to around a third.
Compared with the files as we downloaded them, the half-size versions were a median of 31% of the original size (range 6 to 40%). The 6% case was a 5.3 MB photo (5,294 KB) that had been saved with very light compression; the half-size version was 329 KB.
PNG screenshots behaved differently. Halving the three synthetic screenshots and saving them as PNG gave 44%, 47% and 44% of the full-size PNG, not a quarter. Lossless compression of text and interface elements does not scale down as neatly, because the edges of text remain complex at any size.
A catch: re-saving at high quality can make a file bigger
Resize Image saves JPG at a fixed quality of 0.92 so that resized photos stay sharp. When we re-saved our 12 downloaded photos at quality 0.92 without resizing, 8 of the 12 files got bigger; across all 12, the median was 112% of the downloaded size. Those originals had been compressed more strongly than 0.92, and re-encoding at a higher setting adds bytes without adding detail.
This matters for small reductions. At 75% of the dimensions, the resized files were a median of 67% of the downloaded files, but one was 81%. If the size did not drop enough, follow the resize with Compress Image at a lower quality, which always keeps the smaller of the two files. The upload-limit guide shows measured combinations of the two.
Results: sharpness and resampling
To see how the browser's resampling behaves, we compared resized images with a mathematically exact reference: the plain average of each block of source pixels (for example, each 2 × 2 block when halving). Closeness was measured as PSNR against that reference.
- Halving (50%): with the "low" and "medium" smoothing settings the result matched the block average closely (median 51.5 dB). With "high", which the tool uses, it was a median 44.0 dB (34.7 to 51.9 dB); a halving is a single step, so the tool's result is identical. "High" uses a different filter than a plain average, so part of this gap may be edge sharpness rather than damage.
- Reducing to a quarter (25%): in one step, "medium" stayed close to the block average (median 49.6 dB), while "low" (33.6 dB) and "high" (31.4 dB) drifted much further away. The tool's method, two halvings with "high", scored a median 40.3 dB (33.6 to 47.5 dB), much closer than one big step.
- Fine line pattern reduced to one third: a band of 1-pixel black lines spaced 3 pixels apart should become an even grey (level 170 on a 0 to 255 scale) when averaged exactly. A single draw with "low", "high" or smoothing switched off scored 10.5 dB, and in all three the band came out pure white: the lines vanished. The tool's method (one halving, then a final step) scored 14.1 dB. Its band averaged 167.5, close to the right grey, but as alternating darker and lighter columns (levels 99 and 236) rather than an even tone. A single draw with "medium" scored 17.4 dB and also alternated (127 and 223).
The practical reading: in this browser engine, a single large reduction with the "high" setting can skip over fine detail instead of averaging it, which is why Resize Image now halves first. Halving steps fixed most of the gap on photos, but not every problem: a very fine, regular pattern can still turn into stripes or moiré in fabrics, fences, screen photos and small text.
Browsers with hardware-accelerated canvases, and other browsers, may resample differently. Check the result at 100% zoom if your image contains fine repeating patterns.
A simple checklist
- Keep the original; work on a copy.
- Find out the size you need, in pixels, and whether a minimum or exact size is required.
- If the ratio must change, crop first, then resize.
- Resize with the aspect ratio locked.
- Resize once, straight to the final size. The tool already makes big reductions in halving steps, and a second run would save the JPG twice.
- If the file is still too large, compress after resizing, not before.
- Look at the result at 100% before you upload it.
Resizing with TabGarden
Resize Image accepts JPG, PNG and WebP files, several at once. Choose px to set a width (and optionally a height) or Percent to scale by 1 to 400%. Each output keeps its format and gets the new dimensions in its name, for example holiday-1920x1280.jpg. The images are processed inside your browser and are not uploaded. If you then need a smaller file, use Compress Image, and if you are unsure which format to save in, read JPG vs PNG vs WebP.