OfflaneAI

Restore old & blurry photos —
sharp, natural faces from any scan

Faded family prints, pixelated phone photos, zoomed-in group shots: the model finds every face, rebuilds eyes, skin and hair and pastes them back seamlessly. Turn on “Enhance whole photo 2×” to remove noise and JPEG artifacts from the rest of the picture and enlarge it too. Everything runs on your device.

  • 🧑‍🦳 Every face in the photo, automatically
  • 🔍 Optional whole-photo clean-up: denoise + 2× upscale
  • 🔒 Family photos never leave your computer
  • 💸 Free, no watermark

Loading the tool… (JavaScript required)

Which AI does it use and is it private?

GFPGAN v1.4 by Tencent ARC (Apache 2.0, 340 MB, downloaded once and cached) restores faces; a YuNet detector finds them. For the optional whole-photo mode, SCUNet (Apache 2.0, 46 MB) removes noise and JPEG artifacts and Real-ESRGAN enlarges the picture — RealESRGAN x4plus on a graphics card, the lighter x4v3 on the CPU. Everything runs in your browser via WebGPU or WebAssembly — the photo is never uploaded, so old family pictures and ID scans stay private.

Does it change how people look?

It keeps the face shape, expression, pose and lighting and fills in the lost detail — sharp eyes, lips, skin texture, hair strands. Because detail is reconstructed, very low-resolution faces can come out slightly “idealised”; lower the Strength slider to blend more of the original back in. Faces smaller than about 30 px between the eyes are skipped.

How long does it take?

The first run downloads the 340 MB face model (a minute on a normal connection). Then each face takes 1–3 seconds on a graphics card or 10–30 seconds on the CPU. The whole-photo mode adds roughly 10–30 s for noise removal and 20–60 s for enlargement on a laptop graphics card; on the CPU the noise step is skipped by default because it would take 10–20 minutes. Photos are processed at up to 2,400 px on the long side.

Does it restore the whole photo or only the faces?

Both, if you choose “Enhance whole photo 2×”. Faces are rebuilt by GFPGAN; the rest of the picture first goes through SCUNet, which removes sensor noise, colour speckle and JPEG blocks, and then through Real-ESRGAN, which sharpens and doubles the size. A built-in noise meter decides how strongly to denoise, so clean scans keep their grain and fine texture — you can also force noise removal on or off. Scratches, folds and tears are not repaired yet; brush them out with the Remove Object tool first.

How to restore a photo

  1. Add the photo. Drop a JPG, PNG, WebP or HEIC file on the upload area, click it to choose a file, or paste with Ctrl+V.
  2. Choose what happens to the rest of the picture. “Background” has two entries: “Keep as is — restore faces only (fast)” and “Enhance whole photo 2× — remove noise, sharpen, restore faces (slower)”.
  3. Set “Noise removal”. The list appears only with the whole-photo option. Leave it on “Auto — by measured noise (recommended)” unless you have a reason to change it.
  4. Set “Strength”. 100 % is preselected. Lower it if the faces come out too polished.
  5. Press “Restore faces”. Progress is shown stage by stage: finding faces, removing noise, enhancing the background, restoring faces. “Stop” cancels the run.
  6. Compare and download. “Show original” and “Show restored” switch the preview. The download button shows the pixel size of the result.

What happens to the picture, step by step

1. Every face is located

A small detector called YuNet scans the photo twice, once as an overview for small faces and once reduced for faces that fill the frame. For each face it returns five points: both eyes, the nose tip and the corners of the mouth. If nothing is found, it tries again with a lower threshold, which helps with faded prints.

2. Sideways photos are turned

If there is still no face, the tool tests the photo rotated by 90°, 180° and 270° and keeps the rotation with the most confident faces. This catches prints that were photographed lying on their side. The result is then saved upright, and a note says so.

3. Each face is rebuilt at 512×512

Using the five points, the face is rotated and scaled into a standard 512×512 crop. Before any restoration the crop is checked once more by the detector; a false alarm such as a pattern in a curtain or a tangle of branches fails this check and is left alone. GFPGAN v1.4 then redraws the face: eyes, lips, teeth, skin texture and the hair around the face.

4. The face is blended back

The restored crop is mixed with the original according to “Strength” and pasted into the photo with a feathered edge, so no seam shows where new skin meets the old neck and hair.

5. Optional: the whole photo is cleaned and doubled

With “Enhance whole photo 2×” the rest of the picture is processed before the faces go back in: SCUNet removes noise and JPG blocks, Real-ESRGAN enlarges four times, and the result is averaged down to exactly 2×. The faces are then pasted in at the new size.

“Keep as is” or “Enhance whole photo 2×”

Keep as isEnhance whole photo 2×
What changesFaces onlyFaces, clothing, scenery, everything
Result sizeSame as the source, up to 2400 px on the long sideTwice the source, up to 2400 px on the long side
Source usedUp to 2400 pxUp to 1200 px; a larger source is reduced first
Extra downloadsNoneSCUNet 46 MB and Real-ESRGAN (64 MB on a graphics card, 5 MB on the CPU)
Best forLarge, clean scans with soft facesSmall, noisy or heavily compressed pictures

Note the third row. A 3000 px scan run through the whole-photo option is reduced to 1200 px and returned at 2400 px, smaller than it came in. For big scans “Keep as is” preserves more of the original.

Noise removal: Auto, On or Off

Enlarging a noisy photo without cleaning it first turns the noise into coloured speckle. That is why noise removal sits in front of the enlargement.

Auto

A noise meter measures the picture at full size and at two reduced sizes, because noise in a re-saved JPG forms coarse blotches that are invisible pixel by pixel. A clean scan is left untouched so that paper grain and fabric texture survive. Clearly noisy pictures get full strength, and cases in between get 40–100 %. The line under the result reports what was done: “noise removal 70%” or “no noise removal needed”.

On

Always applies SCUNet at full strength. Use it when Auto left visible speckle.

Off

Skips the step. Use it for prints where film grain is part of the character, or when the cleaned version looks waxy.

On a device without a graphics card

SCUNet takes 10–20 minutes on the CPU, so Auto skips it there and tells you. “On” forces it if you are prepared to wait.

The Strength slider

The slider runs from 30 % to 100 % in steps of 5. It mixes the rebuilt face with the original crop: at 100 % you see only the model’s output, at 50 % an even blend.

  • 100 % for faces that were badly blurred or pixelated; there is nothing in the original worth keeping.
  • 60–80 % for photos that were only slightly soft. Freckles, wrinkles and the original skin texture show through, and the person stays more recognisably themselves.
  • 30–50 % as a gentle sharpening of an already decent portrait.

The slider affects faces only. It does not change the whole-photo clean-up.

Settings by type of photo

PhotoBackgroundNoise removalStrength
Scan of an old print, 1500 px or moreKeep as is—80–100 %
Small old scan or photo of a printEnhance whole photo 2×Auto100 %
Group photo with tiny facesEnhance whole photo 2×Auto100 %
Blurry face in a recent phone photoKeep as is—70–100 %
Picture saved many times from messengersEnhance whole photo 2×Auto or On80–100 %
Night shot with heavy noiseEnhance whole photo 2×On80–100 %
Film photo where the grain should stayEnhance whole photo 2×Off60–80 %

Preparing the picture

Trim away the album page

Borders, the scanner lid and the table around a photographed print waste the limited working size. Cut the picture down to the print with the image cropper so the faces get more pixels.

Remove scratches and stains first

Face restoration paints over small damage on a face, but creases and spots elsewhere stay, and the enlargement sharpens them. Brush them out with the object remover before you restore.

Do not sharpen beforehand

Sharpening filters in a scanner program or a phone gallery create halos that the models treat as real detail. Feed in the untouched scan.

What is restored and what is left alone

DefectHandledHow
Blurred, small or pixelated facesYesGFPGAN
JPG blocks and colour speckleYes, with the whole-photo optionSCUNet
Low resolutionYes, 2× with the whole-photo optionReal-ESRGAN
Faces lying sidewaysYesAutomatic rotation
Scratches, folds, tears, stainsNoUse the object remover first
Fading, yellow cast, low contrastNoTones are kept as they are
Black-and-white to colourNoA monochrome photo stays monochrome
Motion blur across the sceneryNoOnly faces are redrawn

Sizes, formats and output

  • Input: JPG, PNG, WebP and HEIC.
  • Smallest face: a face with fewer than about 8 px between the eyes at the working size is skipped. Results become convincing from roughly 30 px upwards.
  • Output format: a PNG source is saved as PNG; everything else as JPG at 95 % quality. The file name gets the ending -restored.
  • Result line: time, number of faces restored, GPU or CPU, and the models that actually ran.

If a photo has no faces at all, the tool says so. With “Keep as is” the picture then comes back without changes; for landscapes, buildings and documents use the AI image upscaler instead.

Models, downloads and speed

ModelJobSizeRuns on
YuNetFinds facesSmall, served by this siteAlways the CPU
GFPGAN v1.4Rebuilds faces340 MBGraphics card or CPU
SCUNetRemoves noise46 MBGraphics card; CPU only when forced
RealESRGAN x4plusEnlarges on a graphics card64 MBGraphics card
Real-ESRGAN x4v3Enlarges on the CPU5 MBCPU

Each file is downloaded once, when it is first needed, and kept in the browser’s cache; a run with “Keep as is” never fetches the noise and enlargement models. The photo itself is processed in a background thread on your device and is not uploaded, which matters for family albums and scanned documents alike. GFPGAN and SCUNet are published under the Apache 2.0 licence, Real-ESRGAN under BSD 3-Clause.

On a computer with WebGPU the graphics card is preselected. A face then takes one to three seconds; on the CPU count on 5–30 seconds per face. “Advanced” lets you change “Compute” by hand. If the graphics card cannot run the face model, the tool continues on the CPU and shows a note. Phones start on the CPU; with a 340 MB model and several faces that takes patience, so keep the tab open.

Limits to keep in mind

  • A rebuilt face is an estimate. With severe blur the model fills in what a typical face would show. The result is clean and plausible but can differ in small features from the real person. Do not use it to identify anyone.
  • Glasses, hands and hats near the face can be redrawn imperfectly, because the model concentrates on facial features.
  • Profiles and covered faces may not be detected at all.
  • Only faces get this level of reconstruction. Text, jewellery, uniforms and buildings are sharpened by the whole-photo option but not redrawn.

Troubleshooting

“No faces found in this photo”

The faces are too small, turned away or hidden. Crop closer to the people and run again. For photos without people, use the upscaler.

The face looks like a different person

The source held too little information. Lower “Strength” to 50–70 % to bring back original features, and start from the largest scan you have.

The restored face is sharper than everything around it

Switch “Background” to “Enhance whole photo 2×” so the rest of the picture is raised to a similar level, or lower “Strength”.

“Noise removal was skipped”

The run used the CPU. Choose the GPU under “Advanced” if it is available, or set “Noise removal” to “On” and allow 10–20 minutes.

The result is smaller than my scan

The whole-photo option works from at most 1200 px and returns at most 2400 px. Use “Keep as is” for large scans.

The first run seems stuck at the download

The face model is 340 MB. On a normal connection that takes about a minute, once.