All guides

Guide

How AI image upscaling works (and what it cannot do)

Every upscaler has to fill in pixels that were never captured. The difference between methods is how they guess.

The problem: more pixels than you have

Enlarging a 500 x 500 image to 2000 x 2000 means producing 4,000,000 pixels from 250,000. Fifteen of every sixteen output pixels have no direct measurement behind them. Every method, from the simplest to the most advanced, is a rule for filling them in.

Classic interpolation

Browsers and image editors use interpolation: nearest neighbour (copy the closest pixel, which gives blocks), bilinear (average the four nearest) or bicubic (a smooth curve through sixteen neighbours). These methods are fast and predictable, and they never invent anything. That is also their weakness: edges come out soft, because a sharp step between two pixels is spread into a gradient.

Learned super-resolution

A super-resolution network is trained on pairs of images: a sharp original and a shrunken copy of it. It learns to map the small version back to the large one. After seeing many examples it has a statistical idea of what edges, hair, foliage, brick and text tend to look like at higher resolution, and it paints that in.

ESRGAN (Enhanced Super-Resolution Generative Adversarial Networks, Wang and others, 2018) added an adversarial loss to this training: a second network tries to tell real high-resolution images from upscaled ones, which pushes the upscaler toward textures that look real rather than safely blurry.

Source: ESRGAN paper, arXiv:1809.00219 (checked 4 December 2026)

The models this site uses

Our upscaler runs the ESRGAN Slim and ESRGAN Medium models published by the open-source UpscalerJS project. Its documentation says the models are trained with a Python implementation of the ESRGAN approach, use a residual dense network (RDN) architecture, and are trained on the DIV2K dataset. It describes the Slim models as the fastest of its ESRGAN models and intended for browsers.

Source: UpscalerJS, ESRGAN Slim model page (checked 4 December 2026)

DIV2K is a research dataset of 1,000 images at 2K resolution, split into 800 for training, 100 for validation and 100 for testing.

Source: DIV2K dataset page, ETH Zurich (checked 4 December 2026)

What it cannot do

Where it works well

Rule of thumb: upscale to the size you actually need, and no further. Each extra step of enlargement means more invented pixels per real one.

Why the browser can run it at all

Super-resolution networks used to need a desktop GPU and a Python setup. Two things changed. First, small models: the networks used here are a few megabytes of weights, not gigabytes. Second, TensorFlow.js runs neural networks on the graphics chip through WebGL, the same browser feature that draws 3D games. The result is slower than a desktop GPU running native code, but fast enough for a still image, with no install.

Large images do not fit through the network in one pass, so the image is cut into tiles (patches), each tile is upscaled with a little overlap, and the tiles are stitched back together. That is why the progress bar in our tool moves in steps.

How to judge a result

A short glossary

Try it on your own file. Free, in your browser.

Upscale an image