Image

Upscale Image 2× with a Local AI Model

Double the width and height of a PNG, JPEG or WebP image with the Swin2SR model, run on your device. For images up to 1024 px on the longest side.

Runs locally in your browser

What it does

Upscale Image doubles the width and height of a small picture with Swin2SR, a super-resolution model that runs inside your browser with WebAssembly. The model is downloaded from this site the first time and then cached by the browser, so the first run is slower. Images up to 1024 px on their longest side are accepted, and several are processed one after another without being uploaded.

How to use it

  1. Choose one or more PNG, JPEG or WebP images up to 1024 px on the longest side, or drop them on the page.
  2. Press "Upscale 2×"; each image becomes its own job with a progress bar, and the jobs run one at a time.
  3. Press "Download" next to each result; with several results you can also use "Download all (ZIP)" or, in Chromium-based browsers, "Save all to a folder".

Example

Input
icon.png (640x480)
Output
icon-2x.png, 1280x960

What happens to your file

  • Your file or text is processed by code running in this browser tab. It is not uploaded to any server.
  • The first time you run it, the model is downloaded from this site and cached by your browser.
  • The result is created on your device and saved only when you choose to download it.

Limits

  • Only images up to 1024 px on their longest side are accepted; larger ones are refused with a message.
  • The scale factor is fixed at 2× and the output is always PNG, without transparency.
  • The model runs with WebAssembly only, and images are processed one at a time.

Questions

How much larger is the result?

Width and height are both doubled, so an image of 640x480 becomes 1280x960. The factor is fixed at 2×; there is no setting for other sizes.

Why is my image refused?

Images larger than 1024 px on their longest side are refused before processing, with the message "… is larger than 1024 px on its longest side. Resize it first, then upscale." The model's memory use grows quickly with image size. Make the image smaller with Resize Image, then try again.

Are my images uploaded?

No. The model runs on your device, in a background worker of this browser. Only the model files are downloaded, from this site, the first time you use the tool; your images are never sent anywhere.

Why is the first image slower?

The first time, the browser downloads the Swin2SR model from this site and prepares it before processing starts. The model files are then kept in the browser's cache, so later visits skip the download. The model runs with WebAssembly on your device's processor.

What file do I get, and is transparency kept?

Always a PNG named after the original with -2x added, such as icon-2x.png. The model works on the colour channels only, so transparent areas of the original are not kept. Your original file is not changed.

Next steps