Loona Automation โ€บ Image Compressor โ€บ Photo Background Changer

Free Photo Background Changer

Turn a plain photo background white, blue, light grey or red in your browser โ€” flood fill from the edges plus erase and restore brushes for the tricky edges. This is not an AI remover: it works best on plain, even backgrounds, and your photo is never uploaded.

๐ŸŽจ
Drop your photo here, or click to browse
JPG, PNG or WebP. Works best on a plain, even background with no shadows.

Selected: White #ffffff

Higher tolerance replaces more shades. Lower keeps edges cleaner.

Load a photo to begin.

How to use the brushes: pick Erase or Restore above, then drag on the photo. Erase paints the chosen colour over missed spots; Restore paints the original pixels back if you went too far. Undo reverses your last fill or brush stroke.

How to change a photo background in 3 steps

  1. Load your photo โ€” drop it above or click to browse. Nothing is uploaded; the photo stays on your device.
  2. Pick a colour and replace โ€” choose white, blue, light grey or red, set the tolerance, and press the replace button. The tool flood-fills inwards from all four edges, replacing only pixels similar to the corner colour.
  3. Clean the edges and download โ€” fix hair edges and missed spots with the Erase and Restore brushes, undo if needed, then download as PNG or JPG.

About changing photo backgrounds honestly

Many ID, passport, visa and exam forms ask for a photo on a specific plain background โ€” most often white, sometimes blue, light grey or red. If your photo was taken against a plain, even wall of a different colour, this tool can swap that background for the colour you need: it samples the colour at the corners, then flood-fills from all four edges, replacing only connected pixels that are similar within the tolerance you set. The person in the middle is never touched by the fill, because the fill stops where the colour changes.

Please use it with honest expectations: this is not an AI background remover. It works best on plain, even backgrounds with even lighting. Busy rooms, strong shadows and colours very close to skin or clothing tones will leak or leave halos, and hair edges may need the brush to finish cleanly. For a busy background, re-taking the photo against a plain wall will almost always give a better result than any quick edit.

How it works

The tool loads your photo onto a canvas at its natural size (the display is scaled to fit your screen). The replace button runs an iterative, stack-based flood fill seeded from every edge pixel: each popped pixel is compared with the corner colour using a Euclidean colour-distance function, and only pixels whose distance is within the tolerance threshold are recoloured and expanded to their neighbours. The brush tools paint directly โ€” Erase paints the chosen colour, Restore copies pixels back from a stored copy of your original photo โ€” and Undo keeps the last canvas snapshot so one mistake never ruins the edit.

Worked example

A portrait taken against a light blue wall (corner colour about RGB 170, 195, 220) with tolerance 32 gives a distance threshold of 32 รท 100 ร— 441.67 โ‰ˆ 141. Wall pixels within that distance of the corner colour are replaced with white #ffffff, while the face and shirt โ€” much further away in colour โ€” stop the fill. Two missed patches near the hair are then painted with the Erase brush, and the result downloads as a clean white-background photo.

Frequently asked questions

Is this photo background changer free?

Yes โ€” completely free, with no signup, no watermark and no limit on how many photos you edit.

Is this an AI background remover?

No. It is a colour-based flood fill plus manual brushes. It works best on plain, even backgrounds; it cannot intelligently separate a person from a busy scene the way AI tools claim to.

Why did the fill change part of my face or clothes?

The tolerance is too high, or that area has a colour very close to the background. Lower the tolerance, press Undo, and try again โ€” then use the Restore brush to paint back any area that was changed by mistake.

Why are there rough edges around the hair?

Hair edges mix hair and background colours into in-between pixels, so any colour fill leaves a fringe. Zoom in with a small Erase brush to paint the fringe to the new colour, or Restore it if you removed too much.

Which background colour do I need?

White is the most common requirement (passports, NADRA, most visas). Some systems ask for blue, light grey or red โ€” always check the instructions of the form you are submitting to, and pick that exact colour here.

Is my photo uploaded anywhere?

No. All editing happens 100% in your browser using the Canvas API. Your photo never leaves your device.

More free photo tools

Image Compressor

Compress photos to an exact KB size โ€” 50KB, 100KB, 200KB.

NADRA / CNIC Photo Maker

Exact 350 ร— 467 px photo for Pak-ID online applications.

Visa Photo Maker

US, UK, Schengen and China visa photo sizes in one place.

Photo Background Changer

Turn a photo background white, blue or light grey.

Exam Photo with Name & Date

Add a name and date strip under your photo for board exams.

Passport Photo Print Sheet

Put 4, 6 or 8 passport photos on one A4 sheet.

Resize Image

Resize by pixels, cm or inches, with a print DPI setting.

Crop Image

Free crop plus ready ratios โ€” 1:1, 4:3, passport and more.

Photo to PDF

Turn one or more photos into a single PDF file.

Image Format Converter

Convert JPG, PNG and WebP both ways, with quality control.

Photo Filters & Fix

Fix brightness, contrast and sharpness in seconds.

Embed this tool on your website โ€” free

Add this tool to your own website or blog โ€” it is completely free, needs no sign-up, and always shows the latest version. Copy the code below and paste it into your page where you want the tool to appear. Keeping the small “Powered by Loona Automation” credit line under the embed helps keep this tool free — but you are free to style or remove it; the tool works either way.