OfflaneAI

Passport photo maker —
from a selfie to a compliant photo in a minute

Pick the country format, drop a photo, and the AI removes the background and sets the exact size — 2×2 inches for the US, 35×45 mm for the EU and UK, and more. Download the single photo at 300 DPI or a 4×6 in sheet to print at any photo kiosk for a few cents.

  • 🪪 US, EU, UK, Canada, India, China & more
  • ✂️ Automatic background removal
  • 🖨️ 300 DPI + 4×6 in print sheet
  • 🔒 Your photo never leaves your device

Loading the tool… (JavaScript required)

What are the photo requirements?

Face the camera straight, neutral expression, mouth closed, eyes open, no glasses glare, no hat, even lighting without shadows, plain clothes. The guides on the canvas show the required head size and eye line for the chosen country — but always check the official specification of the authority you are submitting to.

How do I print it?

Download the 4×6 in (10×15 cm) sheet and print it at any photo kiosk, drugstore or online print service as a standard 4×6 photo — then cut along the thin lines. Ask for “no cropping / fit to size”.

Is the background removal good enough for officials?

The portrait model handles hair edges well on photos taken against a reasonably plain wall. Avoid busy backgrounds, side light and hair blending into the background. If a few pixels remain, retake the photo rather than submitting a doubtful one.

How to make a passport photo

  1. Take a suitable picture. The next section explains what matters. A photo from your phone’s main camera is enough.
  2. Drop it on the upload area. The first time, a portrait model is downloaded and cached in your browser. Then the background is removed automatically.
  3. Choose the “Document format”. The menu appears beside the picture once the background is gone. It starts on “USA · 2×2 in (51×51 mm) — passport, visa, green card”. The line under it shows the size in millimetres, the pixels at 300 DPI and the allowed head height.
  4. Pick the “Background” colour your authority asks for.
  5. Align the head. Drag the picture and zoom until the head fills the dashed oval and the eyes sit on the orange line.
  6. Download. “Download photo (JPG, 300 DPI)” gives one photo; “Download 4×6 in print sheet” gives a sheet with several copies to print and cut.

Taking a picture that can pass

Distance and height

Ask someone to take the photo from 1.5–2 m away, with the camera at the height of your eyes. A selfie at arm’s length makes the nose larger and the ears smaller, and a camera held above or below tilts the face. A tripod or a shelf with the self-timer works as well.

Light

Stand facing a window in daylight. Light from one side leaves half of the face in shadow, a ceiling lamp darkens the eye sockets, and a direct flash causes shine and red eyes. The tool replaces the background but leaves the light on your face as it is.

Wall

Use a plain, light wall and stand about half a metre in front of it, so that you cast no shadow on it. Hair and clothes should differ in tone from the wall; that helps the cut-out.

Framing

Keep the whole head, the hair and the shoulders in the frame, with clear space above the head. You can zoom in later, but nothing can restore a cut-off crown or shoulder.

The built-in document formats

Menu entryPixels at 300 DPIHead height guideStarting backgroundCopies on the sheet
USA · 2×2 in (51×51 mm)602×60250–69%White2
EU / Schengen · 35×45 mm413×53170–80%Light grey8
UK · 35×45 mm413×53164–76%Light grey8
Ukraine · 35×45 mm413×53170–80%White8
Canada · 50×70 mm591×82744–51%White2
India · 2×2 in (51×51 mm)602×60250–69%White2
China · 33×48 mm390×56758–69%White8
Australia · 35×45 mm413×53170–80%White8
Japan · 35×45 mm413×53170–80%White8
Documents · 3×4 cm354×47260–75%White8
Documents · 4×6 cm472×70960–75%White3

Head height is measured from the chin to the top of the head and given as a share of the photo’s height. For the US format, 50–69% of 2 inches is the official range of 1 to 1⅜ inches.

These numbers are guides built into the tool. Authorities revise their rules, and a visa photo can differ from a passport photo of the same country. Read the current specification of the office you are applying to before you print.

Aligning the head with the guides

The dashed oval

Its height is the middle of the allowed head range for the chosen format. Bring the chin to the bottom of the oval and the top of the head to its top. Measure to the skull, not to the top of a voluminous hairstyle.

The orange line

This is the eye level for the format. Both eyes should lie on it; if one is higher, your head was tilted and a new photo is the better fix.

Moving and zooming

Drag the picture with the mouse or a finger. “Zoom” runs from 0.5× to 4×; on a computer the mouse wheel over the picture does the same in small steps.

Show guides

The oval and the line are drawn only on screen and are never part of the downloaded file. Untick “Show guides (not included in the download)” to see the photo exactly as it will be saved.

Background colours

Five swatches cover the usual cases: white, light grey, two light blues and cream. The colour picker next to them sets any other tone. Each format starts with its own default, and choosing a different format resets the colour to that default, so set the format first and the colour second.

How the background is removed

The cut-out is made by MODNet, a portrait matting model published under the Apache 2.0 licence. It is about 25 MB, is downloaded once and then kept in your browser’s cache. It runs on the processor through WebAssembly, so no graphics card is needed.

Photos larger than 2048 px on the longer side are reduced to that size before the model sees them. The model returns a soft mask, not a hard outline: single hairs stay partly transparent and blend into the new colour without a cut-out edge.

Your picture is processed on your device from start to finish. The only thing that travels over the network is the model file coming in.

The two downloads

Single photo

A JPG at 95% quality with exactly the pixels listed for the format. A resolution of 300 DPI is written into the file, so print software and upload checks read the correct physical size, for example 35×45 mm.

Print sheet

A white 4×6 in page, 1795×1205 px at 300 DPI. It holds as many copies as fit with 2 mm between them, each framed by a thin grey cutting line. The button states the number: 2 for the 2×2 in formats, 8 for 35×45 mm.

Printing at true size

  • At home: load 10×15 cm (4×6 in) photo paper, choose 100% or “actual size”, and switch off “fit to page” and borderless printing. Both enlarge the picture by a few percent.
  • Check with a ruler. The printed photo must be exactly as wide as the format says, 35 mm or 2 inches. Then measure chin to top of head against the allowed range.
  • Paper. Use photo paper. Prints on office paper are refused.
  • Cutting. Cut along the grey lines with a paper trimmer or sharp scissors, so no line remains on the photo.

Using the file in an online application

Portals set their own rules for pixels and file size, and they do not always match the printed format. The single photo has the pixel size from the table above and cannot be exported larger. If a portal demands more pixels than that, upload a photo taken to the portal’s own instructions instead.

If the limit is on file size, bring the download under it with the image compressor, which can target an exact number of KB.

What the tool does not check

  • Head size and position. No face is measured automatically. The guides show the target; placing the head is your job.
  • Expression, glasses, shadows, sharpness. Nothing is judged or corrected. Red eyes, glare and uneven light stay in the photo.
  • Rules about edited photos. Some authorities refuse photos changed by software. The US State Department, for example, tells applicants not to alter their photo with software, apps, filters or AI. Replacing a background is an edit. If your authority is strict about this, photograph yourself against a plain white wall and cut the unedited picture to shape with the image cropper.
  • Who may take the photo. Some countries accept only photos from a professional photographer, a booth or a certified digital service.

For a CV or profile portrait, where no document rules apply, the background changer offers more freedom with colours and images.

If the result looks wrong

The head does not fit the oval, even at 0.5×

The source photo is cropped too tightly. Retake it from further away with space around the head and shoulders.

Part of the hair or a shoulder is missing

The model took it for background because the tone was too close to the wall. Wear clothes that contrast with the wall and retake the photo in even light.

The print is a few millimetres too big or small

The printer or kiosk scaled the page. Print again at 100% without borderless mode and measure the result.

The photo looks soft

The head was a small part of the original and had to be enlarged. Use a picture in which the head and shoulders fill most of the frame, taken with the rear camera.

The model download stops halfway

Keep the tab open and reload the page; the download starts again. After one complete download the model is read from the cache.