Red Background Passport Photo

Turn a photo taken against a plain wall, white, cream, grey or blue, into a red background ID photo, cropped to 3:4 or 4:6, right in your browser.

Red Background Passport Photo

Processed in your browser
Choose one portrait photo Choose file or drop it here. Works best with a plain background and a front-facing pose

A person detector runs in your browser and separates you from the background, so clothing and headscarves stay as they are. The first use downloads the engine once (about 13 MB). Check the preview, especially hair and shoulder edges. This is an editing aid, not a guarantee of official compliance.

Files stay in this browser tab. Nothing is uploaded to a server.

Need help?Result not quite right, or unsure about a form rule? Ask Dokurapi support on WhatsApp. Please do not send personal documents in chat.

Chat on WhatsApp

Some application forms ask for a formal photo with a red background, sometimes called a passport-style photo. If you have a picture taken against a plain wall, whether white, cream, grey or even blue, this tool separates you from the background, replaces the background with red and crops the photo to a standard ratio, without a studio visit and without uploading your face to a server.

Where red backgrounds are requested

Red is commonly requested on Indonesian forms. For example, the 2023 CPNS FAQ from BKN asked for a passport photo with a red background at 200 KB, and also noted that requirements vary by institution. Other forms may ask for blue, white or another colour, so read the current instructions for your application before you start.

How the background replacement works

The tool runs a person-segmentation model, MediaPipe Selfie Segmenter by Google (Apache-2.0 licence), inside your browser tab. The model estimates which parts of the picture belong to you and which belong to the background. Everything it marks as background is replaced with red (RGB 202, 42, 48), and the edges are cleaned so the old background colour does not leave a coloured outline around your hair. Your face, hair, clothing, a white shirt, a light hijab and glasses are kept as they are.

The first time you use it, your browser downloads the recognition engine once, about 13 MB, straight from this site, and then keeps it in its cache. Later photos usually take well under a second. Very old browsers may not support the engine; if the photo cannot be processed, try an up-to-date Chrome or Firefox.

A few practical rules still help:

  • Use a reasonably plain background. White, cream, grey, red or blue walls all work. A busy background such as a bookshelf, curtains with a pattern or a window is harder to separate cleanly.
  • Be the only person in the frame. Other people or objects behind you may be kept or partly cut.
  • Keep your hands down and keep bags, phones or other items away from the edge of the frame, as they can be cut or leave small artifacts.
  • Use soft, even light so your outline is clear against the wall.

Very fine hair strands are simplified into a smoother outline. Always look at the preview carefully, especially along the hair, a hijab and the shoulders. If something looks wrong, retake the photo against a plainer wall.

Crop, size and output

The photo is centre-cropped to either 3:4 (output 600 x 800 px) or 4:6 (output 600 x 900 px), and saved as JPEG at 92% quality. Position yourself in the centre of the original frame, with some space above your head, so the crop keeps your head and shoulders.

Pixel dimensions do not set a print size in centimetres. If you need a physical print at a certain size, set that in your print software or at the print shop. If your form limits the file size, for example to 200 KB, pass the downloaded photo through the 200 KB JPG compressor.

What this tool is not

It is an editing aid. It does not check biometric rules such as head size, eye position, expression or glasses, and it does not guarantee that a passport office or recruitment portal will accept the photo. Those decisions belong to the receiving authority and its current instructions on size, ratio, colour code and attire. If you need a blue background instead, switch colours in the same tool or open the blue background version; a photo that already has a blue background can be switched to red the same way. Your photo is processed in the browser and is never uploaded.

How to use

  1. Choose a photo

    Select one front-facing photo of yourself taken against a reasonably plain wall, with no one else in the frame.

  2. Pick the crop ratio

    Choose 3:4 for a 600 x 800 px result or 4:6 for 600 x 900 px. The crop is taken from the centre.

  3. Select red background

    Keep the background set to red. You can switch to blue in the same tool if your form asks for it.

  4. Check the preview

    The first run downloads the recognition engine once (about 13 MB). Then look closely at hair edges, a hijab, shoulders and the frame edges to make sure only the background changed.

  5. Download

    Download the JPEG once the preview appears, then compress it if your form has a KB limit.

Other sizes and tools

Frequently asked questions

Will my white shirt or light hijab turn red?
No. The tool separates the person from the background with a segmentation model, so clothing, a white shirt, a light hijab and glasses are kept. Only the area marked as background is replaced.
Does the tool detect my face or body?
It detects the person as a whole, not individual facial features. A segmentation model (MediaPipe Selfie Segmenter) runs in your browser and separates you from the background.
Does my wall have to be white?
No. Any reasonably plain colour works, including white, cream, grey, red and blue. Busy backgrounds, other people or objects behind you are harder and may leave artifacts.
Why does the first run take longer?
Your browser downloads the recognition engine once, about 13 MB, and caches it. Later photos are usually done in well under a second.
Will the photo meet official passport rules?
Not necessarily. The tool changes the background and crop only; head size, pose, colour code, attire and other requirements are decided by the receiving authority.
What size in centimetres is the output?
The output is set in pixels (600 x 800 or 600 x 900), not centimetres. Print size is set by your printer or print shop.
Is my photo uploaded?
No. All editing, including the background detection, happens in your browser tab and the image is never sent to a server.
Can I keep the photo without cropping it to 3:4 or 4:6?
Yes. Choose No crop (original size) under Crop. The whole photo is kept and only the background is replaced. Very large photos are scaled down to 1,600 pixels on the longest side.

More tools

Try Dokurapi for Free

No account needed. Pick a tool, drop in a file, and download the result, free.