Images & GIFs

Restore Old Photo

Sharpen the faces in old, blurry or grainy photos with a face restoration model, and clean up the rest of the picture. The AI runs in your browser, on the graphics card when it can.

  • Photos are restored on your device. Nothing is uploaded.
Try:

How it works

1

Scan the photo or photograph it flat in even light, then drop the picture on the box above, choose it, or paste it with Ctrl+V or Cmd+V.

2

The tool finds the faces and marks them. Click a face to switch it on or off. Faces that are too small are shown as skipped.

3

Choose the size (1x keeps the pixel size, 2x and 4x enlarge), decide whether the background should be cleaned up, and press Restore. The first time, the AI models download once and stay in your browser.

4

Drag the divider to compare before and after, move the Strength slider to blend the restored faces with the original, then save as PNG, JPG or WebP.

What it does

Faces are the part of an old photo people look at first, and the part that suffers most from blur, grain and low resolution. The tool finds each face, straightens and crops it, and runs it through RestoreFormer++, a model trained to rebuild faces from damaged pictures. The restored face is blended back into the photo with a soft edge, so there is no visible patch.

The rest of the picture can be cleaned up with Real-ESRGAN: it removes noise and JPEG blocks and, at 2x or 4x, enlarges the photo. When you enlarge, the faces are enlarged with their own pass so they stay sharp.

Black-and-white and sepia photos stay that way. The restored faces are matched to the tone of the original instead of gaining colour.

What it does not do

It does not repair scratches, tears, creases, stains or missing corners, and it does not add colour. Those are different jobs. Faces that are smaller than about 24 pixels between the eyes are skipped because there is too little left to restore, and the tool says so. The AI also invents fine detail it cannot see, so a badly damaged face can change in small ways; use the strength slider or switch a face off if the result no longer looks like the person.

Strength

The slider sets how much of the restored face replaces the original. At 100% you see only the restored face. Around 80% keeps a little of the original skin texture and usually looks more natural. Moving the slider updates the picture at once, without running the AI again. Changing the size or the background option needs another run.

Where does the photo go?

Nowhere. The page downloads the AI engine (ONNX Runtime) and the models from tools.katlab.dev, checks them against a SHA-256 checksum and keeps them in your browser's storage. Your picture is decoded, restored and encoded inside the page, on your graphics card with WebGPU or on the processor with WebAssembly. No server ever sees it, and there is no account and no tracking. To free the space later, clear this site's data in your browser settings.

The saved file is encoded fresh from the pixels, so it carries no EXIF data: no camera model, no date, no GPS location.

How fast is it?

On a computer with WebGPU, a face takes under a second and a typical photo a few seconds. Without WebGPU, for example in Safari on an iPhone or in Firefox, the models run on the processor: each face takes several seconds and cleaning up the background of a large photo can take minutes. That is why the background clean-up starts switched off when no graphics card is available. Keep the page open while it works; the progress bar shows each face and each part of the background with the time left, and Cancel stops it.

Models and licences

ModelUsed forSizeLicence
MediaPipe BlazeFace (full range)Finding faces2 MBApache-2.0
RestoreFormer++ (int8 weights)Restoring faces74 MBApache-2.0
Real-ESRGAN general x4v3, denoise 0.5Background clean-up and enlarging4.9 MBBSD-3-Clause
ONNX Runtime Web 1.31.1AI engine, WebGPU build or processor build17.9 / 14.8 MBMIT

Each model downloads only when you first need it, about 80 MB in total with the engine. The face finder was converted from Google's TFLite file and RestoreFormer++ from the official checkpoint, both to ONNX for the browser; the weights are not retrained.

Questions

Frequently asked questions

Is my photo uploaded?

No. The AI models are downloaded to your browser and the restoration runs on your device, on the graphics card with WebGPU or on the processor. The photo never leaves your computer or phone.

What does it fix?

Faces that are blurry, soft or grainy get sharper, with clearer eyes, skin and hair. The rest of the picture can be cleaned of noise and JPEG blocks and enlarged 2x or 4x. Black-and-white and sepia photos keep their tone.

What does it not fix?

Scratches, tears, creases, stains and missing parts are not repaired, and the picture is not colourised. Faces that are very small in the picture are skipped, and the tool tells you which ones.

Will the restored face look like the person?

Mostly, but the AI invents the fine detail it cannot see, so a heavily damaged face can change in small ways. Lower the strength slider to blend back more of the original, or switch a face off.

How much does the first restore download?

About 80 MB once: the face finder (2 MB), the face restoration model (74 MB), the background model (5 MB) and the AI engine. They are kept in your browser, so later restores start right away, even offline.

How long does it take?

With WebGPU a face takes under a second and a typical photo a few seconds. Without it, each face takes several seconds on the processor and the background clean-up can take minutes for a large photo, which is why it starts switched off there.

Which file types can I restore?

JPG, PNG, WebP, AVIF, GIF, BMP and ICO open directly. iPhone HEIC photos, TIFF scans and JPEG XL files are converted in place when you choose them. The result is saved as PNG, JPG or WebP.

How large can the picture be?

Up to 16 megapixels in, and the result can be up to 64 megapixels on a computer and about 16 megapixels on an iPhone or iPad. If 4x would be too large for your browser, only 1x and 2x are offered.

Related tools