How to Upscale Images with AI (2× and 4×) in Your Browser
Enlarge small photos and graphics 2× or 4× with an AI model that runs on your device. Here is how it works, when a 4K result is possible and what it can’t fix.
DocsEngine Editorial Team
Example: 4× turns 480 × 320 px into 1920 × 1280 px.Key Takeaways & Executive Summary
AI Image Upscaler enlarges images 2× or 4× with the Real-ESRGAN realesr-general-x4v3 model, running on your device.
A 4K UHD result (3840 × 2160 px) needs a 960 × 540 image at 4× or a 1920 × 1080 image at 2×, and a device that can create that size.
It uses your graphics chip through WebGPU when available, otherwise the processor via WebAssembly; large photos can take a minute or more without a GPU.
Photos above the AI input cap (about 4 megapixels on desktop with WebGPU, much less without it or on phones) are shrunk before the AI step, so part of the enlargement is ordinary resampling.
The model invents plausible detail. It can’t recover detail that was never captured, and it does not restore faces.
Table of Contents
How to upscale an image with AI (quick answer)
Step by step: upscale a photo 2× or 4×
How the AI upscaler works
Can it upscale to 4K?
Which images upscale well
Limitations: what the AI upscaler can’t do
Privacy: the model runs on your device
Frequently Asked Questions
Sources
How to upscale an image with AI (quick answer)
Step by step: upscale a photo 2× or 4×
How the AI upscaler works
Can it upscale to 4K?
Which images upscale well
Limitations: what the AI upscaler can’t do
Privacy: the model runs on your device
Frequently Asked Questions
Sources
How to upscale an image with AI (quick answer)
Open AI Image Upscaler, add your image, choose 2× AI upscale or 4× AI upscale under Upscale Factor and click AI Image Upscaler. The Real-ESRGAN model runs in your browser, enlarges the picture and fills in sharper edges and texture than a plain resize would.
The first use downloads the AI runtime and about 5 MB of model data, which your browser caches. Your photo is processed on your device and never uploaded.
Step by step: upscale a photo 2× or 4×
Start with the defaults; they suit most photos.
- Open AI Image Upscaler and click Choose Files, or drop your image onto the page.
- Under Upscale Factor, pick 2× AI upscale (the default) or 4× AI upscale.
- Leave Noise & JPEG artifact removal on for the cleanest result, or turn it off to keep some of the photo’s natural grain.
- Leave Extra sharpening on for a light sharpening pass after the AI step, or turn it off if edges look too crisp.
- Click AI Image Upscaler. The progress shows which tile is being processed; when it finishes, click Download File. The file name gets “_upscaled_2x” or “_upscaled_4x” added.
How the AI upscaler works
The model is realesr-general-x4v3, which the Real-ESRGAN authors describe as a tiny model for general scenes. Real-ESRGAN was trained on photos that were degraded on purpose, with blur, noise and compression, so it learns to turn rough low-resolution input into a cleaner, larger image. It always enlarges 4×; for 2×, the 4× result is scaled down with Lanczos resampling.
Your image is cut into 128 px tiles that overlap by at least 16 px. Each tile goes through the model and comes out at 512 px, and the overlapping parts are blended so no seams are visible. A 960 × 540 image, for example, is processed as 45 tiles. Transparent areas are enlarged separately with Lanczos, so transparency is kept.
With WebGPU the model runs on your graphics chip, which is usually faster; without it, it runs on the processor through WebAssembly. If the AI can’t run on your device at all, the tool falls back to a non-AI upscale: Lanczos resampling plus edge-preserving denoising and sharpening.

Can it upscale to 4K?
Sometimes. 4K UHD is 3840 × 2160 px, so the arithmetic decides it: 960 × 540 × 4 = 3840 × 2160, and 1920 × 1080 × 2 = 3840 × 2160. A smaller image gives a smaller result; a 640 × 360 image at 4× ends up at 2560 × 1440.
Two device limits also apply. First, the output can’t exceed what your browser can create: up to 64 megapixels and 16,384 px on a side on desktop, 16 megapixels and 4,096 px on iPhone and iPad. If 4× would be too big, the factor is lowered automatically. Second, the AI input is capped to keep processing time reasonable, as the table shows.
| Device and engine | Largest image the AI works on directly | What happens to a bigger image |
|---|---|---|
| Desktop with WebGPU | About 4 megapixels | Shrunk to about 4 MP, AI-upscaled, then resized to the requested size |
| Phone with WebGPU | About 1 megapixel | Shrunk to about 1 MP first |
| Desktop without WebGPU (WebAssembly) | About 0.4 megapixels | Shrunk to about 0.4 MP first |
| Phone without WebGPU (WebAssembly) | About 0.12 megapixels | Shrunk to about 0.12 MP first |
Which images upscale well
The model can only work with what is in the picture, so the starting image matters more than the settings. If you are enlarging for print, work out the pixels you need first; our guide to converting inches and DPI to pixels shows the math.
- Good candidates: small but reasonably sharp photos, web images and thumbnails, and older digital photos taken at low resolution.
- Photos with JPEG blockiness or mild noise, where Noise & JPEG artifact removal cleans up while enlarging.
- Graphics and illustrations with clear shapes; check thin lines and lettering closely before you use the result.
- Poor candidates: very tiny images where almost everything must be invented, and strongly blurred or out-of-focus photos, where the model can sharpen edges it finds but can’t undo the blur.
- Not suitable: documents or screenshots whose text must stay accurate. Rescan or recapture at a higher resolution instead.
Limitations: what the AI upscaler can’t do
It invents plausible detail; it does not recover real detail. Tiny text, distant faces and number plates can come out sharp but wrong, so don’t rely on an upscaled image as evidence or for identification. There is no face restoration step, and faces in very small photos may look smooth or slightly off.
The choices are 2× and 4× only. Results aren’t always fully AI: when a photo is above the AI input cap, part of the enlargement is ordinary resampling, and if the model can’t run, the non-AI fallback is used. The file limit is 40 MB on desktop and 15 MB on mobile.
The output keeps the input format, with JPG and WebP saved at 95% quality, so upscaled files are much larger. To bring the size down, use Compress Image. For a simple size change without AI, Resize Image uses Lanczos-3.
Privacy: the model runs on your device
AI Image Upscaler runs in your browser. Your browser downloads the AI runtime and the model data (about 5 MB) once and caches them; your photo is processed locally and never leaves your device. The result is re-encoded, so EXIF, GPS and XMP metadata are not carried over.
No upload unless you agree
If a file is too large for your device, the page can offer to process it on our server and uploads only if you agree. Then the file is sent over HTTPS and deleted as soon as processing finishes, and the result is deleted right after you download it, or 10 minutes after processing if you never download it.
Upscale an image 2× or 4×
Real-ESRGAN runs on your device, so your photo is never uploaded.
Frequently Asked Questions
No. Upscale Factor offers 2× and 4×, and the factor can be lowered automatically when the result would be too large for your device.
No. It is a general-purpose model with no face restoration step, so it sharpens edges and textures but can’t rebuild a face that is only a few pixels wide.
Without WebGPU the model runs on the processor through WebAssembly, and large photos can take a minute or more. A browser and device with WebGPU support are usually faster.
Yes, for PNG and WebP. The transparency layer is enlarged with Lanczos resampling while the colors go through the AI model.
Sources
- Real-ESRGAN repository (GitHub (Xintao Wang et al.))
- Real-ESRGAN paper (arXiv:2107.10833) (arXiv)
- MDN: WebGPU API (MDN Web Docs)
- MDN: WebAssembly (MDN Web Docs)
Table of Contents
How to upscale an image with AI (quick answer)
Step by step: upscale a photo 2× or 4×
How the AI upscaler works
Can it upscale to 4K?
Which images upscale well
Limitations: what the AI upscaler can’t do
Privacy: the model runs on your device
Frequently Asked Questions
Sources
How to upscale an image with AI (quick answer)
Step by step: upscale a photo 2× or 4×
How the AI upscaler works
Can it upscale to 4K?
Which images upscale well
Limitations: what the AI upscaler can’t do
Privacy: the model runs on your device
Frequently Asked Questions
Sources
AI Image Upscaler
Free, no sign-up. Runs in your browser, so your files never leave your device.
Share this guide


