Putting a photo on a white background
Filling an empty background versus erasing a real one
"Make the background white" can mean two entirely different jobs, and until you know which one you need, you cannot pick the right tool. The first is putting a cut-out logo or product on a clean white sheet. The second is taking a real photograph and turning the wall, table or curtain behind the subject white.
The two differ in difficulty and in how reliable the result is. The first finishes in one step and loses nothing. The second works by comparing colours, so it is flawless on some pictures and useless on others. Below, marketplace listings and ID photos show where each one belongs.
Work out which job you are doing
One question settles it: is there anything behind the subject or not? A cut-out file has no background at all — where the wall would be there is emptiness, and emptiness can be filled with any colour you like. A photograph has real pixels behind the subject, and those have to be told apart from the subject itself.
There is an easy way to see which file you have: drop it onto something dark. Paste it into a document with a dark page colour, or send it to yourself in a chat app running in dark mode. If the surround goes dark, the file is transparent; if it stays a white rectangle, the white is already painted in.
So the first job is filling a hole, and the second is deleting something and painting over the gap. Described in the same sentence, these two operations look nothing alike to the software doing them.
- A PNG that shows a chequerboard behind the subject → a fill job; the result is always clean
- A photo taken against a plain, single-colour wall or sheet → an erase job; usually good
- A photo taken in a busy room or outdoors → colour matching will not separate the subject
- A signature, scan or stamp on white paper → where erasing works best of all
Filling a background is a one-way step
Once white is painted into the empty area, it becomes the genuine colour of those pixels. Getting the emptiness back is not a matter of undoing the step; you have to erase the white again, and because erasing works by comparing colours, the result is never bit-for-bit the file you started with.
The edges are where this hurts. The soft transition pixels around lettering and around a logo blend with whatever they were placed on. Put a logo that was flattened onto white on a dark poster later, and you will see a pale halo tracing every letter — that halo is the residue of pixels mixed with white.
The practical habit is a single sentence: do not delete the cut-out original. Produce the white version for listings, documents and print, and keep the original for whatever background comes next. Storing both in one folder with "-white" appended to the name saves the confusion later.
White backgrounds for product listings
Most marketplaces want the main listing image on a plain background so that the outline of the product is unmistakable — Amazon is explicit about a pure white one. If what you have is already a cut-out PNG, the job is short: fill the background with white and save as JPG. That single step satisfies both the background rule and the file size limit, since JPG keeps the same picture far smaller than PNG does.
There is a known trap in putting a white product on a white background: the edge merges into the sheet and the photo looks empty. The fix is not to abandon the background but to drop the tone a couple of steps. A very light grey stays neutral, does not offend the listing rules, and gives the outline back.
If you shot the product yourself on a table, consider reshooting before you try to clean the background up. A large white sheet under the item, curved upwards behind it, deals with the background and the shadow in one move. Every later clean-up is an attempt to approximate what that sheet would have given you for free.
- Cut-out PNG + white fill + JPG output → the listing image
- A white product → very light grey, so the outline survives
- A dark-themed slide or cover → a dark fill instead of white, saved as PNG
- A logo going into a document or PDF → white fill, saved as PNG, matching the page
ID photos: the short route runs through the camera
Almost every official photo rule asks for a plain, light background. If your picture was taken in front of a patterned wall or a bookcase, cleaning that up afterwards is not a realistic plan: a tool that matches colours will not remove the wall, it will remove everything that resembles the wall, and the edges of the hair dissolve with it.
When the shot was already taken against something plain, the work is much easier. A cream wall, a light grey curtain or a white sheet pinned up behind you all qualify. The order then runs like this: erase the background to get a transparent file, then fill that file with clean white. It looks like two steps instead of one, but it comes out cleaner, because the transparent stage lets you see with your own eyes how much was removed.
Leave the measurements until last. Once the background is settled, run the picture through the Passport Photo Size tool and put it in the frame the country asks for. In the other order you would be repairing a background inside a small cropped square, where every mistake is magnified.
Tolerance: why the inside of the logo disappears too
Erasing a background has one setting, and it decides everything: tolerance. Tolerance answers the question "how close to the background colour does a pixel have to be before I treat it as background?" A value near zero removes only exact matches; a large value removes near matches as well.
The setting costs you something in both directions. Set it too low and a picture saved as JPG keeps speckles along the edges, because compression leaves the background slightly different from one pixel to the next rather than perfectly uniform. Set it too high and pale areas inside the subject go with it: white lettering inside a white-backed logo vanishes, and faint pencil strokes in a scanned signature are punched through.
How the source was made decides the starting value. A graphic drawn on a computer has a background of exactly one colour, so a low value is enough. A sheet of paper photographed with a phone carries its own shading, so it needs more room. Always look at the result before you download it: if something that should have stayed is missing, drop the tolerance one step and run it again.
Save as JPG or as PNG?
Two things decide the format: file size and edge sharpness. JPG is extremely efficient on photographs and keeps files small, but it leaves visible smudges around crisp lettering and flat areas of colour. PNG is lossless and holds edges exactly as they are, at the cost of a bigger file.
A simple pairing covers it. Anything containing text and hard edges — logos, signatures, diagrams — is saved as PNG. Anything made of faces, texture and soft gradients — product shots, portraits — is saved as JPG. Once the background has been filled you no longer need transparency, so both formats are open to you and the choice comes down to content alone.
Then check what the upload page says. Some systems accept only JPG, others take PNG as well but impose a file size ceiling. The list of formats printed on the page outranks every preference above.
Frequently asked questions
How do I make the background of a photo white?
It depends on the file. If the subject is already cut out, filling the empty area with white is a single step and the result is clean. If there is a real wall behind the subject, that background has to be erased first, and because the process compares colours it is only dependable on a plain, single-colour surface.
Can I get the original background back afterwards?
No. The white becomes the actual colour of those pixels and the emptiness underneath is not stored anywhere in the file. To get a transparent version you would have to erase the white again, and the result will not match the file you started with. Keeping the original is the only real protection.
Is a white background enough for a passport photo?
Not on its own. Official guidance also asks for even, shadow-free lighting, a gaze straight into the lens and a head that fills a set share of the frame. A white background satisfies one condition out of several, and the office receiving the application makes the decision.
White parts inside my logo are being erased — what can I do?
The process recognises a colour, not an object, so wherever the background colour also appears inside the logo it is removed as well. Lowering the tolerance step by step reduces the damage. If that is not enough, asking whoever designed the logo for the original cut-out version is the quickest way out.
Are my images uploaded to a server?
No. Everything happens locally, in the page you are looking at: nothing is transmitted, nothing is kept on our side, and the picture stays on your own disk. That is the difference that matters when you are handling identity photos, signatures and unreleased product shots.
Last updated: August 27, 2026