Privacy-first • 100% local processing

ID Photo Background

Change the background color of your ID or passport photo instantly — right in your browser. Pick any color. No upload. No quality loss.

Privacy: 100% Local Lossless PNG output Custom color picker
Drag & drop your photo JPG or PNG — stays on your device. Nothing is uploaded.
Selected: No file selected
Ready. Choose a photo to start.
Current Background Color (to replace)

Click the image on the right to sample the background, or pick manually:

#FFFFFF Click to pick
New Background Color
#0047AB Custom color
Tolerance (edge sensitivity)
Color matching range 30
Precise More coverage
Hair Gap Cleanup (passes)
Fill background trapped in hair 4
Conservative Aggressive fill
Output Format
💡 PNG is recommended for ID photos — it preserves 100% quality with no compression artifacts. JPEG may cause color banding near edges.
Privacy Notice
Processed entirely in your browser. We do not upload, store, or log your files.

Preview

Click image to sample background color
Upload a photo to get started
Original photo
Original — click to sample color
Result photo
Result

FAQ

Common questions
Is my photo uploaded to a server?

No. All processing happens entirely in your browser using the HTML5 Canvas API. Your photo never leaves your device.

What background colors are supported?

Any solid color background — white, blue, red, light grey, and more. Use the preset swatches for common ID photo colors, or pick any custom color with the color picker. You can also click directly on your photo to sample the exact background color.

Will the image quality be reduced?

No. When using PNG output (recommended), the image is saved losslessly — pixel for pixel, with zero quality reduction. Only the background pixels are recolored. JPEG output may introduce minor compression artifacts.

What is the Tolerance setting?

Tolerance controls how similar a pixel's color must be to the source background color to be replaced. A low value (5–20) only replaces pixels very close to the chosen color — good for sharp, uniform backgrounds. A higher value (40–80) catches more variation, useful for slightly uneven or gradient backgrounds.

What is Hair Gap Cleanup?

Hair Gap Cleanup (fringe passes) targets background color that gets trapped inside hair strands and fine edges — areas the main flood-fill cannot reach from the outside. Each pass expands the replacement one pixel deeper into gaps. Start at 4 (default). If residual color remains in hair, increase to 8–12. Setting it too high on a photo with fine detail near a similarly-colored background may cause slight bleeding — reduce if that happens.

What if the edges look rough or have color bleeding?

The engine automatically applies edge feathering — a smooth blend zone at the boundary. If residual color still shows at hair edges, try increasing both Tolerance and Hair Gap Cleanup. If the subject bleeds into the background, lower Tolerance slightly.

Which photo formats are supported?

You can upload JPG and PNG photos. The output can be saved as PNG (lossless, recommended) or JPEG.

What background colors are standard for ID photos?

Common standards: White (#FFFFFF) for most national IDs and driver's licenses; Blue (#0047AB or #4169E1) for US visa and many passports; Red (#CC0000) for some national documents; Light grey (#D3D3D3) for certain Asian country IDs. Always check the specific requirements for your document before printing.

Related tools

More image tools

Title

Message