In one sentence
AI upscaling enlarges an image with a neural network that has learned what high-resolution detail looks like, so the result is sharp instead of blurry.
How the model learns
Researchers take a large collection of high-quality photos and create damaged, small copies of each: shrunk, blurred, noised and JPEG-compressed. The network is shown the damaged copy and asked to produce the original. Over millions of examples it learns the patterns that link the two: what a soft edge looked like before it was softened, what grain sits on top of, how 8 × 8 JPEG blocks hide a smooth gradient.
Real-ESRGAN, published by Tencent ARC Lab in 2021, became popular because of how it creates that training damage: in two rounds, in random order, mimicking the way real photos get degraded when they're taken on phones, resized and shared again and again. That's why it works on real-world photos and not only on clean lab images.
Generative vs. restorative
There are two families of tools. Restorative super-resolution models like Real-ESRGAN stay close to the input: they sharpen and clean, but they don't invent objects. Generative upscalers (built on diffusion models) can add a lot of detail and look stunning, but they can also change faces, text and small objects. For memories, documents and anything where accuracy matters, restorative is the safer choice; that's what PhotoEnhancer uses.
Why it can run in your browser now
Two things changed. Compact super-resolution models got small: the one we use is about 5 MB, smaller than many photos. And browsers gained WebGPU, which lets a web page use your graphics card for neural networks. Combined with ONNX Runtime Web, that means a web page can run the same model a desktop app would, with nothing uploaded. Devices without WebGPU fall back to multi-threaded WebAssembly on the processor, which is slower but works.
Limits worth knowing
- It can't read a license plate that is three pixels tall. Detail that was never captured can't be recovered.
- It can make text look sharper but can't guarantee it reads the same; check important text.
- Very large outputs are limited by your device's memory and your browser's canvas limits.
Want to see it on your own photo? Try the AI image upscaler, or read how PhotoEnhancer works.
Try the image upscaler
Open it, it's free