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
- Recover information. If a licence plate is four blurry pixels wide, the model will draw something plate-like, not the real characters. Never treat upscaled detail as evidence.
- Know your subject. A face upscaled by a general model gets generic skin and eye texture, not the person's actual features.
- Undo heavy compression cleanly. Strong JPEG blocking can be sharpened along with the image. Start from the least compressed copy you have.
- Fix motion blur or focus blur. Super-resolution is trained on downscaling, not on blur. A soft frame becomes a larger soft frame.
Where it works well
- Small web images and thumbnails that need to fill a larger slot.
- Stills taken from video, where the frame is sharp but the resolution is low.
- Renders, screenshots and illustrations with clean edges.
- Old digital photos from early, low-megapixel cameras.
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
- Compare at the size you will use it. A result that looks over-sharpened at 400% zoom can look clean in a 1200 pixel banner.
- Look at edges first. Text, hair and outlines show the biggest gain over plain resizing.
- Then look at flat areas. Skies and walls should stay smooth. Speckled or wormy texture there means the model is inventing detail where none belongs; try 2x instead of 4x.
- Check faces and lettering closely. These are where a wrong guess is easiest to notice.
A short glossary
- Super-resolution: producing a higher-resolution image from a lower-resolution one.
- Scale factor: how many times wider and taller the result is (2x, 4x).
- Interpolation: filling new pixels from a fixed formula over neighbouring pixels.
- Hallucinated detail: texture a model adds because it is typical, not because it was in the original.