Upscale an image
Enlarge a small image 2x or 4x, or clean up a grainy or soft one at the same size, with an AI model that runs in your browser. Edges come out sharper than ordinary enlarging, but the added detail is the model's guess, not something recovered from the original.
Drop a small image here
JPEG, PNG, WebP, GIF, BMP or HEIC. Up to 1024 × 1024 pixels to enlarge, 12 megapixels to clean up
Choose an imageUpscaling images with AI: what it can and cannot do
Enlarging a small image the ordinary way makes it bigger and blurrier. An AI upscaler makes it bigger and sharper, which looks like magic until you understand what is going on. This guide explains what the tool does, what the result really is, and when a different tool is the better choice.
What the upscaler does
The upscaler enlarges one image at a time by 2x or 4x, or cleans it up without making it bigger. A 500 × 400 image becomes 1000 × 800 at 2x, 2000 × 1600 at 4x, or stays 500 × 400 with Same size. It runs in your browser, so the image stays on your device.
A few details worth knowing:
- Input. JPEG, PNG, WebP, GIF, BMP or HEIC. Animated GIFs become a single still frame.
- Size limit. To enlarge, about 1 megapixel in total, for example 1024 × 1024 or 1280 × 800. To clean up at the same size, about 12 megapixels, which covers most phone photos. In a browser without WebGPU the limits are about 512 × 512 and 1 megapixel.
- Output. JPEG, PNG and WebP files come back in the same format with the same file name. GIF, BMP and HEIC files are saved as PNG, and so is WebP if your browser cannot write WebP. Transparency is kept.
- Natural or Sharp. Natural mixes the model's result half and half with ordinary enlarging, so it stays closer to the original. Sharp uses the model's result as it is: crisper, with more invented detail.
- First use. The model and the software that runs it are about 12 MB. They download the first time you press the upscale button, not when the page opens, and your browser normally keeps them for next time.
- Comparison. When it finishes, a slider shows a close-up with ordinary enlarging on the left and the upscaled result on the right. You can switch to the whole image.
Steps
- Drop a small image into the upload area.
- Choose Same size, 2x or 4x. The output size in pixels is shown before you start.
- Choose Natural for photos and faces, or Sharp for graphics and illustrations.
- Press the upscale button. A bar shows progress, and you can cancel.
- Drag the slider to compare, and look closely at faces and text.
- Download the result.
It invents detail. It does not recover it
This is the part most upscalers do not say plainly. A small image simply does not contain the fine detail of a large one. Nothing can get it back, because it was never stored.
What the model does instead is draw. It was trained on many pairs of sharp and degraded images, and it learned what sharp edges, hair, foliage, brickwork and skin usually look like. Given a blurry patch, it paints detail that would plausibly produce that blur. Most of the time the result looks convincing. It is still a guess.
That has practical consequences:
- Faces can change. Eyes, teeth and small facial features may be redrawn slightly differently from the real person. Small faces in a group photo are the most likely to go wrong.
- Small text can become nonsense. Letters that were too small to read may turn into crisp shapes that look like letters and are not.
- Fine texture can turn smooth or painterly. Skin, grass and fabric sometimes come out looking airbrushed.
- Compression damage may be sharpened. Heavy JPEG blocks can be cleaned up, or they can be turned into a firm pattern that was never in the scene.
So an upscaled image is fine for making something look better on a screen or in a print. It is not evidence. Do not use it to read a number plate, identify a person or prove what a document said.
Plain enlarging compared with AI upscaling
| Plain enlarging (resize) | AI upscaling | |
|---|---|---|
| How it works | Blends neighbouring pixels | A trained model draws new pixels |
| Edges | Soft | Sharp |
| Invents detail | No | Yes |
| Faithful to the original | Yes, only blurrier | Mostly, with occasional errors |
| Speed | Instant | Seconds on a graphics chip, much longer without one |
| Size limit here | 60 megapixels | About 1 megapixel |
If you need the image to stay strictly true to the original, enlarge it with the resizer instead and accept the softness.
Natural or Sharp
The model does not only sharpen. It redraws. On a photo of a building, for example, Sharp can replace fine stonework with a cleaner pattern that was never there. In our own tests on photos, the Sharp result was crisper than ordinary enlarging but further from the true image.
Natural is the answer to that. It blends the model's result with ordinary enlarging, which keeps the firmer edges and drops about half of the invented texture. In the same tests it came out closer to the true image than ordinary enlarging did, and still sharper. It is the default for 2x and 4x.
Use Sharp for logos, icons, screenshots and illustrations, where clean edges matter more than texture and there is little texture to get wrong. Use Natural for photos, and always for faces.
2x or 4x
Choose the smallest enlargement that does the job. The model always works at 4x, and the 2x option reduces that result by half, which hides many of the small errors. 2x output is usually the cleaner of the two. Use 4x when you really need the pixels, for example a small logo going onto a large banner or a thumbnail that has to fill a screen.
Upscaling twice in a row is rarely worth it. Each pass invents detail on top of invented detail, and the picture drifts further from the original.
Same size: cleaning up without enlarging
Same size runs the same model at 4x and then averages the result back to the original dimensions. The image does not get bigger, but the model's clean-up stays: grain is removed and soft edges are redrawn firmer.
We tested it on deliberately damaged images and compared each result with the undamaged original. It did well on:
- Grainy photos, such as pictures taken in low light.
- Soft screenshots and text, for example a screenshot that was shrunk and then enlarged again.
- Graphics and logos with blurry edges.
It did little, or made things worse, on:
- Out-of-focus photos. Edges get slightly firmer, but the missing detail does not come back.
- Compressed photos with fine texture. The JPEG blocks disappear, but grass, leaves and fabric can turn into smooth, painted-looking strokes.
Natural and Sharp matter here too. At the same size, Natural mixes the cleaned result half and half with your original, so it leaves about half of the grain but does almost no harm to compressed photos. Sharp removes the most grain, and it is also the setting that turns fine texture painterly. That is why Same size starts on Sharp. For compressed photos, switch to Natural.
Use the slider to check before you download. If an image looks pixelated because it is small, Same size cannot help: there are not enough pixels to sharpen. Enlarge it with 2x or 4x instead.
What works well and what does not
Good candidates:
- Small product photos, old web images and thumbnails that need to be shown larger.
- Screenshots and simple graphics with clean edges.
- Illustrations, icons and logos when no vector version exists.
- Photos that are small but reasonably clean.
Poor candidates:
- Very blurry or out-of-focus photos. The model sharpens edges; it cannot fix focus.
- Heavily compressed images with visible blocks.
- Images where small text must stay readable and correct.
- Photos where a face must stay accurate.
- Large photos. A 12 megapixel phone photo already has more pixels than most uses need, and it is over the size limit for enlarging. To clean one up instead, use Same size.
Speed and the size limit
The model does a great deal of arithmetic for every pixel. Browsers that support WebGPU can run it on the graphics chip, and that is what makes it practical. In our test on a 2022 Apple laptop in Chrome, a 400 × 400 image took about 1.5 seconds and a 1024 × 1024 image about 5 seconds. Phones and older computers will be slower, and we have not measured them all.
Without WebGPU the tool falls back to the processor and tells you so. On the same laptop a 512 × 512 image then took about 30 seconds. That is why the limit is lower in those browsers.
The 1 megapixel limit exists because a 4x result has 16 times as many pixels. A 1024 × 1024 image becomes 4096 × 4096, around 16 megapixels, and the browser has to hold all of it in memory. The image is processed in small tiles to keep memory use steady, but the finished picture still has to fit.
Same size does not have that problem. Each tile is shrunk back as soon as the model returns it, so the 16x image never exists. Its limit of about 12 megapixels is about time instead, because the model still does 16 times the work for every pixel. On the Mac we tested, a 12 megapixel photo took just under a minute on the graphics chip.
About the model
The tool uses realesr-general-x4v3, the compact general-purpose model from the open-source Real-ESRGAN project, published under the BSD 3-Clause licence. It runs on ONNX Runtime Web, which is MIT licensed. It is a small model, about 5 MB, picked so that it can run on a phone. Desktop upscaling apps use models ten times that size or more and can produce finer results, at the cost of a large download and a capable computer.
After upscaling
An upscaled file is larger in bytes as well as pixels. If it needs to fit an upload limit, run it through the optimizer. If you only need part of it, use the cropper, and to change the file type use the converter. Keep the original image. If the upscaled version turns out to have a flaw, you will want to start again from the real thing.
Troubleshooting
- The image is too large. The limit is about 1 megapixel to enlarge and about 12 megapixels to clean up at the same size. An image over 1 megapixel usually does not need enlarging; to try anyway, make it smaller with the resizer first.
- It is very slow. Your browser is probably running the model on the processor. A current version of Chrome or Edge on a device with WebGPU is much faster. Same size and 2x are not quicker than 4x, because the model does the same work.
- It stopped with an error. The device most likely ran out of memory. Close other tabs, or try a smaller image.
- A face or some text looks wrong. That is the model guessing. Switch to Natural, try 2x, or use plain enlarging in the resizer.
- The result looks smooth or painted. This model favours clean edges over fine grain. That is what removes noise, but it can smooth away real texture too, especially in compressed photos. Natural reduces the effect. Sharp suits graphics better than photos.
- The download is a PNG and I added a GIF, BMP or HEIC. Those formats are saved as PNG so no quality is lost. Convert it afterwards if you need another format.
Related guides
For the wider picture, see the image resizing and quality guide. To understand the limits, read what image resolution means and why images become blurry after resizing.
Questions about upscaling
Does this bring back lost detail?
No. Detail that was never captured, or that was thrown away by compression, is gone. The model has learned what sharp photos usually look like and draws detail that fits. The result often looks better, but it is an educated guess, so do not rely on it to read a number plate or identify a face.
Is my image uploaded?
No. The model is downloaded to your browser (about 12 MB, the first time you upscale) and runs on your own device. The image never leaves it.
Why is there a size limit?
A 4x enlargement has 16 times as many pixels. A 1024 × 1024 image becomes 4096 × 4096, about 16 megapixels, which is close to what a phone browser can hold in memory. Browsers without WebGPU get a lower limit of 512 × 512 because they are much slower. Cleaning up at the same size never builds the bigger image, so its limit is higher, about 12 megapixels; there the limit is how long the work takes.
Which model does it use?
realesr-general-x4v3, the small general-purpose model from the open-source Real-ESRGAN project (BSD 3-Clause licence), run with ONNX Runtime Web (MIT licence). It is the compact model, chosen so it can run on a phone. The large models in desktop apps produce finer results.