Back to ZeroBG Editor

How to Change a Photo Background to White Online

Putting a subject on a clean white background is one of the most common reasons people reach for a background remover: product photos for an online listing, a headshot for an ID or visa application, a graphic for a print catalogue. There are two genuinely different ways to get there, and picking the wrong one is the usual reason a "white background" image comes back looking grey, blotchy, or with a faint fringe around the edges.

Two routes to a white background

The first route is to export a transparent PNG and place it onto white afterwards, in a document, a website template, or another editor. This is the right choice when the white is only a temporary stand-in, or when the final destination already controls its own background (a product page with a white content area, for instance) and you just need the cut-out subject with no colour baked in.

The second route is to export directly as a JPG and choose white as the fill colour in the editor's background panel, using the solid colour option and either the colour picker or typing the hex value #FFFFFF. This bakes the white in permanently, as part of the pixels, rather than leaving it transparent. This is the right choice whenever the destination expects a flat file with no transparency at all, such as marketplace upload forms and ID photo submissions.

Whichever route you take, the editor's before/after comparison slider is the fastest way to check the result before exporting: drag it over the subject's edge and any leftover fringe or uneven white shows up immediately, without needing to export a file first.

Why JPG needs a fill colour at all

JPG has no alpha channel, so it cannot store transparency the way PNG and WEBP can; a JPG pixel has to be some actual colour, never "see-through". That is the full explanation of why the editor asks you to pick a fill colour before exporting to JPG, and it is covered in more depth, including what goes wrong when a file with no fill colour set gets treated as opaque, on the transparent background page. For this white-background job the short version is enough: pick white, either from the picker or by typing #FFFFFF, before you export as JPG, and the alpha-channel question never comes up.

Marketplace listings and pure white backgrounds

Several marketplaces, Amazon being the best-known example, specify that the main product image should sit on a pure white background. "Pure white" commonly means RGB 255, 255, 255 specifically, not just "looks white on screen". A backdrop that is technically light but slightly warm, slightly grey, or carries a soft vignette from the original photo will not match that value. Setting the fill colour explicitly to #FFFFFF, rather than trusting a colour picked by eye, removes that ambiguity outright. It is still worth checking your specific marketplace's current image requirements before a bulk upload, since minimum resolution, margin around the subject, and acceptable file formats vary between platforms and do change over time.

Passport, visa and other ID photos

ID-style photos are a genuinely high-stakes case, and this is an area where being specific about numbers would be irresponsible: passport, visa and driving licence photo requirements (background colour, head size within the frame, allowed head tilt, lighting, whether glasses are permitted) vary by country and by document type, and they change without much notice. Before submitting anything official, check the current specification from the passport office, embassy, or licensing authority you are applying to, and treat this tool as a way to produce a clean, accurately-coloured background, not as confirmation that a given photo will be accepted. Where the authority does specify pure white, the same #FFFFFF fill colour approach used for marketplace photos applies directly.

White is one option among several

Solid colour, with white as the obvious choice for this job, is only one of five background options in the editor. The others cover the cases where flat white is not quite what you want. Gradient gives a smooth transition between two colours instead of one flat tone, useful when pure white looks a bit clinical for the shot. Seventeen preset backdrop photos are built in, and you can upload your own backdrop image too; either way, the backdrop fit control (cover, contain, or stretch) decides how that image fills the canvas, and a blur slider can soften it into an out-of-focus studio look rather than a sharp photo competing with the subject. None of this replaces a genuine pure-white export for a marketplace or ID requirement, but for a catalogue or portfolio piece where "clean and neutral" is the actual goal rather than a strict RGB value, a subtle gradient or a softened preset backdrop often looks better than flat white.

Framing the subject before you export

Once the background is set, the subject controls handle where the item sits inside the frame: a scale slider, separate horizontal and vertical position sliders, and a reset button to return to the automatic placement. Aspect-ratio presets set the shape of the output canvas itself, which matters when a marketplace or ID form specifies a particular width-to-height ratio rather than whatever the original photo happened to be. For ID photos, head size and centring are usually part of the specification, so scale and position are doing real work, not just cosmetic adjustment. For product photos, nudging the scale slightly on each item is the fastest way to get several images looking like a matched set across a catalogue. The subject's brightness, contrast and saturation sliders are worth a glance too: a shot straight off a phone camera is often slightly underexposed, and correcting that before export reads as more deliberate than leaving it as shot, especially against a background as unforgiving as flat white.

Adding depth so the subject doesn't look stuck on

A cut-out subject dropped straight onto flat white with no shadow at all can look pasted in, because real photography almost always has some contact shadow where the subject meets a surface. The editor's shadow controls add one back: distance (how far the shadow falls from the subject), blur (how soft its edge is), opacity, and colour. For a product shot, a short, soft, low-opacity dark grey shadow directly under the item usually reads as natural without drawing attention to itself. Glow and outline controls (thickness, blur, opacity, colour) are a separate option worth trying instead of a shadow, particularly for a flat lay or a subject shot square-on with no obvious surface to cast a shadow onto; a faint coloured outline can separate the subject from the white behind it without implying a light source or a floor. For a portrait or an ID-style photo, check the relevant authority's specification before adding either effect rather than assuming it is permitted.

If the white isn't quite clean

The usual cause of a "not actually white" result is a thin line of the previous background clinging to detailed edges, hair, fur, or a curved silhouette, where the model's cutout was not pixel-perfect. It is more obvious here than on a patterned or transparent canvas, since there is nothing else in frame to hide it: a one-pixel discrepancy against pure white catches the eye immediately. The fix is the touch-up erase brush: shrink the brush size down until it is smaller than the stray line, then work along the edge rather than re-running the whole cut-out. Go too far and the restore brush puts the original AI result back; a full reset undoes everything if you would rather start over.