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.
Click the image on the right to sample the background, or pick manually:
Preview
FAQ
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.