Image Enlarger
Published Updated
Scale a PNG, JPEG or WebP up by 1.1x to 10x, with smooth or pixelated resampling.
Check the size before you click
Output pixels are the original size times the factor, rounded. Google Chrome 156 creates a canvas of up to 268,435,456 pixels (16,384 x 16,384) and refuses 20,000 x 20,000. When a result would be too big, the tool shows an error with the largest size and scale your browser accepts, and no file is made.
| Original | Factor | Result | Megapixels | Chrome 156 |
|---|---|---|---|---|
| 800 x 600 | 4x | 3200 x 2400 | 7.7 | Well under the limit |
| 1200 x 800 | 2.5x | 3000 x 2000 | 6.0 | Well under the limit |
| 4000 x 3000 | 4x | 16000 x 12000 | 192 | Worked |
| 4000 x 3000 | 5x | 20000 x 15000 | 300 | Error with the largest size |
| 640 x 480 | 10x | 6400 x 4800 | 30.7 | Worked |
Smooth and Pixelated are two kinds of resampling
Smooth turns on the canvas imageSmoothingEnabled flag with quality set to high, so the browser interpolates between neighboring pixels. Pixelated turns smoothing off, which copies the nearest source pixel into each output pixel. The two flags are described on MDN as imageSmoothingEnabled and imageSmoothingQuality.
Neither adds information. Think of the tool as a way to reach a required pixel count, not as a restorer.
Enlarging an image
Step 1
Add a PNG, JPEG or WebP
The original size is shown. Other formats your browser can open are accepted and saved as PNG.
Step 2
Choose a scale and a mode
Press 2x, 3x or 4x, or type a custom factor from 1.1 to 10. Then pick Smooth or Pixelated.
Step 3
Enlarge and download
The target size is shown before you press Enlarge Image. The file keeps your original format. If the size is too big for your browser, an error names the largest scale that fits.
Pixels needed for print
Print size in inches times the resolution gives the pixel count you need. At 300 dpi:
- 4 x 6 in needs 1200 x 1800 px.
- 8 x 10 in needs 2400 x 3000 px.
- A 1200 x 800 px image enlarged 4x is 4800 x 3200 px, which fills 16 x 10.7 in at 300 dpi, but only holds the detail of the 1200 x 800 original.
For detail you do not have, use a dedicated AI upscaler. To set an exact pixel size instead of a factor, use Resize Image.
Smooth against pixelated, compared with the original
We generated a 1600 x 1200 picture with a gradient, 120 colored discs, 40 thin lines and some text, and shrank it to 400 x 300 by averaging exact 4 x 4 blocks. Then we enlarged that small version 4x with the tool's own enlarge code, once in Smooth and once in Pixelated, and compared each result with the 1600 x 1200 original. The numbers are PSNR in decibels (higher is closer) and the mean difference per color channel on a 0 to 255 scale. The small file was a PNG, and the engines are Chromium 153 (Playwright build, not Google Chrome), version 153.0.8010.12, Firefox 155.0 and Playwright's WebKit build (not the Safari app), version 26.6, all headless.
| Engine | Smooth | Pixelated |
|---|---|---|
| Chromium 153 | 22.33 dB, 7.25 | 22.19 dB, 6.37 |
| Firefox 155 | 22.31 dB, 7.20 | 22.17 dB, 6.26 |
| WebKit 26.6 | 22.27 dB, 7.29 | 22.12 dB, 6.49 |
In every engine the two modes landed within 0.2 dB and 1 level of each other, and neither came close to the original. Smooth had the slightly higher PSNR and the slightly higher mean difference, so these two measures did not agree on a winner. The enlarged pictures did not get back detail that the small version no longer held, which matches what the tool says.
The file size depends on the mode. In Chromium the 173,736-byte PNG became 1,469,367 bytes in Smooth and 327,194 bytes in Pixelated, probably because smoothing adds many in-between colors that a PNG has to store. From a 48,089-byte JPEG the two modes gave 264,869 and 260,029 bytes.
Sizes by factor, and the canvas limit by engine
| Factor | Pixels | PNG output in Chromium 153 | Time |
|---|---|---|---|
| 2x | 800 x 600 | 536,042 B | 23 ms |
| 3x | 1200 x 900 | 939,771 B | 23 ms |
| 4x | 1600 x 1200 | 1,469,367 B | 34 ms |
| 10x | 4000 x 3000 | 5,736,659 B | 164 ms |
These rows are single runs of Smooth on the 400 x 300 PNG, which was 173,736 bytes. At 10x the file was 33 times larger and had 100 times as many pixels.
For a 4000 x 3000 original, 4x means 16,000 x 12,000, which each of the three engines accepted. At 5x, 20,000 x 15,000 (300 megapixels), Chromium 153 and WebKit 26.6 refused and Firefox 155 accepted the canvas. That only means the canvas passed the tool's own check; we did not draw or export a picture of that size in Firefox. The first table on this page reports Chrome 156, so expect your own browser to differ.
Pixel art at five factors, both modes
A generated 16 x 16 sprite with six colours, a one-pixel checkerboard and a transparent background was enlarged by the site's own Image Enlarger component, measured in Google Chrome 157, Firefox 155 and the WebKit build. New colours are RGBA values that are not in the sprite, fully transparent pixels aside; blocks are counted along a checkerboard row.
| Factor and result | Pixelated, all three browsers | Smooth: new colours (Chrome 157 / Firefox 155 / WebKit build) | Smooth: partly transparent pixels |
|---|---|---|---|
| 2x, 32 x 32 | Blocks 2 pixels wide | 105 / 32 / 32 | 34.8% in all three |
| 3x, 48 x 48 | Blocks 3 pixels wide | 231 / 75 / 32 | 43.3% / 23.2% / 23.2% |
| 4x, 64 x 64 | Blocks 4 pixels wide | 337 / 90 / 90 | 42.5% / 34.8% / 34.8% |
| 2.5x, 40 x 40 | Blocks of 2 and 3 pixels, alternating | 201 / 103 / 69 | 47.1% / 30.6% / 30.6% |
| 10x, 160 x 160 | Blocks 10 pixels wide | 1,277 / 578 / 407 | 39.6% / 31.2% / 34.8% |
Pixelated kept the sprite's seven RGBA values at every factor in all three browsers, with no new colour and no partly transparent pixel. At 2.5x Firefox 155 starts the row with a 3-pixel block, Chrome 157 and the WebKit build with a 2-pixel one. The PNG files differ in size between the browsers: at 4x, Pixelated gave 432, 355 and 440 bytes and Smooth 3,147, 845 and 1,178 bytes (Chrome 157, Firefox 155, the WebKit build).
That split follows the HTML standard: with smoothing off, an enlarged image must use nearest-neighbor interpolation, while the filter for smoothing is left to each browser.
Image Enlarger FAQ
What if the result is too big for my browser?
Every browser has a largest canvas it can create, and the tool tests that before it enlarges. If the result would be bigger, you see an error that names the largest size your browser can make at that shape and the largest scale that fits, such as 7.8x for a 2,100 x 2,100 image in Chrome 156. Chrome 156 allows up to 268,435,456 pixels, which is 16,384 x 16,384, and phones allow less.
Can it add detail to a blurry photo?
No. It resamples the pixels you already have. Smooth mode blends neighbors and looks softer, and no sharpening or AI step is applied. Enlarging a thumbnail will give you a bigger thumbnail.
Which mode is right for pixel art and icons?
Pixelated, with a whole-number scale such as 2x, 3x or 4x. Every source pixel becomes a clean block. With 2.5x, some blocks are 2 pixels wide and some 3, so lines look uneven.
What file type do I get back?
The same as the original when it is PNG, JPEG or WebP. Anything else, such as a GIF or BMP, is saved as PNG. JPEG output uses quality 0.92.
Why is the enlarged file so much bigger?
File size grows with pixel count. A 4x enlargement has 16 times as many pixels. Compress the result afterward if you must upload it.
What is the smallest and largest factor?
1.1 and 10. Values outside that range show an error, and the result is rounded to whole pixels.
Does Smooth recover more detail than Pixelated?
Not in our test. Enlarging a 400 x 300 image 4x and comparing it with the 1600 x 1200 original, Smooth and Pixelated scored within 0.2 dB of each other in Chromium 153, Firefox 155 and WebKit 26.6, at about 22 dB. We used one generated picture.
Is the canvas limit the same in every browser?
No. A 20,000 x 15,000 canvas was refused by Chromium 153 and WebKit 26.6 and accepted by Firefox 155, and 16,000 x 12,000 was accepted by all three. Phones usually allow less.
Why does a JPEG stop with a 65,500-pixel message?
This page saves JPEGs up to 65,500 pixels a side, and the enlarger checks the target size first. A 6,551 x 10 JPEG at 10x would be 65,510 x 100, so it gets that message and no file in Chrome 156, Chromium 153, Firefox 155 and the WebKit build; 6,550 x 10 at 10x (65,500 x 100) was enlarged in full. Choose a smaller scale.
Does Pixelated add any new colours?
No. A 16 x 16 test sprite with six colours and a transparent background kept only those values at 2x, 3x, 4x, 2.5x and 10x in Chrome 157, Firefox 155 and the WebKit build. Smooth added between 32 and 1,277 new colour values, depending on the browser and the factor.
Will a transparent background keep crisp edges?
In Pixelated mode, yes: no pixel gets a new, partly transparent value. Smooth blends the edges, so 23 to 47 percent of the enlarged test sprite's pixels were partly transparent, with Chrome 157 above Firefox 155 and the WebKit build at every factor except 2x.
Why does Smooth give a different file in each browser?
Each browser uses its own smoothing filter. At 4x, Chrome 157's result held 337 colour values that are not in the source sprite, against 90 in Firefox 155 and the WebKit build, and the PNG files were 3,147, 845 and 1,178 bytes. Pixelated results kept the same seven colour values in all three.