Upscale Image
Load the model once, choose a small picture and make it 2x or 4x bigger. The model invents detail, so look closely at the result. It runs on your device and nothing is uploaded.
https://flxcode.com/upscale-image/
The model downloads once, then runs on your device. Your picture is never uploaded.
On mobile data this is a big download. Use Wi-Fi if you can. The browser keeps it, so next time it is quicker.
Loading the model.
or drop one here, or paste with Ctrl+V. One picture at a time.
PNG, JPG, WebP, AVIF, GIF or BMP, up to 2 megapixels (for example 1600 x 1250). See-through parts become white.
The model invents detail. Faces, text, logos and fine patterns can come out wrong, so look closely before you use it.
Works offline: load the model, turn off Wi-Fi, choose a picture.
No ads. No account. Nothing you type or record is uploaded. We count page events with a daily code. Check it. What this tool keeps and sends.
Problem or idea? Email us
How to use it
- Press Load the model. The button shows the download size for your device. Nothing downloads before you press it.
- Choose a picture of up to 2 megapixels.
- Pick 2x or 4x and press Upscale. Cancel stops it.
- Switch between Original and Upscaled to compare. Check faces, text and edges.
- Pick PNG or JPG and press Download.
Speed, measured
- Apple M4 MacBook, Chrome, one megapixel (1000 x 1000 px) at 2x: about 5 s on the graphics chip (WebGPU), about 27 s on the processor (4 workers).
- Measured with this page, tiles of 192 px that overlap by 32 px, so about 1.8 times more pixels than the picture are run through the model. The numbers are the time the page itself showed (two runs each: 4.8 and 4.8 s, 26.7 and 27.5 s).
- We have not measured phones or older computers. After each run the page shows how long it took on your device.
Limits
- One picture at a time, up to 2 megapixels. The result is at most 8 megapixels, so 4x works up to 0.5 megapixels (for example 700 x 700 px).
- It invents detail. Small text, faces, logos and fine patterns can come out wrong or smoothed into a texture.
- The picture is cut into tiles of 192 px that overlap by 32 px, and the overlaps are blended. A faint seam can still show on very smooth areas.
- See-through parts become white. The colour profile is dropped: the result is sRGB.
- A browser without WebGPU and JSPI uses the processor, which is several times slower.
How it works and privacy
The model is Real-ESRGAN "general x4v3" (Wang et al., 2021, paper), a small network of 1.2 million numbers that makes a picture 4 times wider and taller. The project's code licence is BSD 3-Clause. The repository does not state a separate licence for the trained weights, so we treat them as covered by it, and the notice is kept with the files and in our licence list. We exported the model ourselves from the official release file to ONNX, and checked its output against the original weights (PyTorch) on one small 32 x 32 picture: every value within 1 level. It runs with ONNX Runtime Web (MIT) in your browser. All files are served from this site, with no other host involved. Nothing you choose is uploaded. We count events without cookies, like "PNG downloaded" (details).
FAQ
What does it download?
The model (4.9 MB) and the engine that runs it (about 15 MB for the processor, about 18 MB for the graphics chip). The model loads only when you press the button, and the button shows the size for your device. After that the picture is not sent anywhere.
Does it add real detail?
No. It invents detail that looks likely. Edges and textures come out sharper than a plain resize, but small text, faces, logos and fine patterns can come out wrong. Look at the result closely, and do not use it where the exact content matters, for example a document or a photo for evidence.
How long does it take?
On a MacBook with an Apple M4 chip in Chrome, about 5 s with WebGPU and about 27 s on the processor, for a one megapixel picture (measured, see the numbers below). Older computers and phones are slower, and the page shows the time it took after each run.
What is the difference between 2x and 4x?
The model makes a picture 4 times wider and 4 times taller. 2x is that result averaged down by half, so you get a less extreme enlargement from the same model. 4x of a 0.5 megapixel picture gives 8 megapixels, which is the most this page makes.
Why is there a size limit?
A picture over 2 megapixels is refused, and the result stays at 8 megapixels or less. That keeps the page from running out of memory on a phone and keeps the run time reasonable. To use a larger picture, make it smaller first with the Image Resizer.
Can I stop it?
Yes. Press Cancel. The tile it is working on finishes, then it stops, and nothing is saved.
More from FLXCode
- Image ResizerResize photos by pixels, percent or preset for Instagram and email. Batch and zip. Nothing is uploaded.
- Remove Background from ImageCut the background out of product and pet photos in your browser, fix it with a brush or clicks. Nothing is uploaded.
- Change Image DPISet the dpi of a JPG or PNG without touching the pixels, or resample to a print size. Nothing is uploaded.
- Change Image ColorSwap one colour in a picture, or shift the colours of the whole thing. Nothing is uploaded.