# Image Upscaler

> Bring small or soft images to twice or four times the resolution. A neural network sharpens the edges.

- Open in browser: https://pockettoolbox.org/en/image-upscaler
- Runs entirely in your browser; files and input are never uploaded.

## How it works

Enlarges images to twice or four times the size and reconstructs detail along the way.

Drop an image and choose 2× or 4×. The tool upscales the image in tiles, finished parts appear right away. Use the slider to compare original and result, the 1:1 view shows real pixels. Transparency in PNGs is kept. Save as JPG, PNG or WebP.

Real-ESRGAN by Xintao Wang (BSD-3-Clause), model realesr-general-x4v3 with about 1.2 million parameters, as a 5 MB ONNX file. It runs with ONNX Runtime Web in a Web Worker, on WebGPU when a graphics card is available, otherwise as WebAssembly. The image is processed in 192 pixel tiles with 10 pixels of overlap, which keeps the seams invisible. The model always enlarges four times, for 2× each tile is halved afterwards. The result is limited to 16 megapixels because Safari cannot handle larger canvases.

## FAQ

### Does the tool recover real detail?

No, no software can. The model has learned what sharp edges, hair or text look like and fills in pixels so it looks natural. That works very well for logos, screenshots and photos with clear edges. Tiny faces or unreadable text do not become recognizable this way.

### 2× or 4×?

For photos usually 2×, the result looks more natural. 4× pays off for very small images such as icons, old web graphics or crops you want to print large.

### How long does it take?

An image of 1000 × 750 pixels takes a few seconds on a current laptop with a graphics card, without WebGPU more like half a minute to a minute. On a phone it takes longer, but you see the finished tiles right away.

## Popular tasks

- [Upscale an Image and Increase Its Resolution](https://pockettoolbox.org/en/upscale-image)

---
PocketToolbox (https://pockettoolbox.org/en)
