EvonX

Free tool · Runs in your browser

Sprite background remover: a transparent PNG in one drop.

Drop a sprite or a whole sprite sheet with a solid background, and this transparent PNG maker reads the background colour from the border and removes it. Set how close a colour must be, clean the edge, check the result on dark, light and green, and download a PNG with real transparency. Nothing is uploaded.

  • Flood fill or colour key
  • Tolerance control
  • Fringe removal
  • Trim to the sprite

By the EvonX team · Updated · 4 min read

Remove a sprite's background

A sample robot on a teal background is loaded. Drop your own sprite or sheet; click anywhere on the picture to choose a different background colour. Try Colour key everywhere to see the ring in its hand open up.

Loading the tool…

AI mode

Background too complex for a colour?

A scene, a gradient or a photo has no single colour to remove. Drop the picture here and EvonX's AI finds the subject and cuts it out, with the same model that cuts every sprite it draws for a game. The job runs on your workspace on a plan that includes custom game art; the price in credits is shown before you click. Needs an EvonX account and uses credits.

See the AI background remover
Loading the tool…

How do I remove the background from a sprite?

Drop the sprite into the tool below. It reads the background colour from the picture's border and makes it transparent. Raise the tolerance if specks of background remain, or lower it if parts of the sprite disappear. Use flood fill to keep the same colour inside the sprite, or colour key to clear enclosed holes too, then download the transparent PNG.

How to make a sprite's background transparent

  1. Drop the sprite or the sheet

    PNG, JPG, WebP or GIF. The tool samples the border of the picture and takes the most common colour there as the background.

  2. Choose the method

    Flood fill removes the background only where it connects to the border, so a white eye survives on a white background. Colour key removes that colour everywhere, which clears the gaps between a character's arm and body.

  3. Set the tolerance

    At 0 % only the exact colour goes, which is right for clean pixel art. JPGs and anti-aliased art need 10 to 25 % to catch the shades around the edge. Stop raising it when the sprite itself starts to vanish.

  4. Clean the edge

    Remove the colour fringe to take the background's tint out of the rim. Shrink the edge by a pixel if a halo is still there. Leave Soft edge off for pixel art, which needs hard edges.

  5. Check and download

    Look at the sprite on dark, light and green: a halo that hides on one shows on another. Tick Trim to cut the empty space away, then download the transparent PNG.

Flood fill or colour key?

The two background removal methods compared
Flood fill from the edgesColour key everywhere
What it removesBackground that touches the borderEvery pixel of that colour
Same colour inside the spriteKeptRemoved
Enclosed holes (between arm and body)Kept, they do not touch the borderCleared
Sprite sheetsWorks when the frames do not touch the border all roundWorks on any layout
Best forCharacters whose colours include the background colourSheets on magenta or green key colours

A sheet drawn on pure magenta (255, 0, 255) or bright green was made for colour key: use it at 0 % tolerance.

Which tolerance to use

Tolerance settings by kind of picture
PictureToleranceWhy
Pixel art PNG on a flat colour0 to 3 %The background is one exact colour
Anti-aliased art, PNG8 to 15 %Edge pixels are blends of sprite and background
JPG or a screenshot15 to 30 %Compression scatters the background into many near shades
Background with a gradient or textureUse the AI modeNo single colour describes it

How background removal by colour works

A PNG can store a fourth value for every pixel beside red, green and blue: alpha, how opaque the pixel is. A sprite with a white box around it has alpha at full everywhere. Removing the background means setting alpha to zero wherever the pixel belongs to the background, and the only question is how to decide that.

This tool decides by colour. It measures how far each pixel is from the background colour, and the tolerance is the distance it still accepts. Flood fill starts at the border and spreads through accepted pixels only, like paint poured on from outside, so it stops at the sprite's outline. Colour key skips the spreading and removes every accepted pixel wherever it is, the same idea as a green screen.

The edge needs care because edge pixels are mixtures. Where a brown boot meets a teal background, the last pixel is partly both. Fringe removal works out how much of that pixel is background and takes that share of the tint back out, so the sprite does not carry a teal outline into your game. It is image maths, not an AI model: instant, repeatable and private. A photo or a painted scene has no single background colour, and that is what the AI mode above is for.

Sprite background mistakes to avoid

  • Save sprites as PNG or WebP. JPG cannot store transparency and puts the background back.
  • Do not remove a background from a picture that was already scaled up with smoothing; remove it at the original size, then scale.
  • On a sprite sheet, do not trim: trimming changes the frame positions your game expects.
  • If the character's outline is the same colour as the background, use flood fill at a low tolerance, not colour key.
  • Check on more than one backdrop before you download.
  • Cut a cleaned sheet into frames with the sprite sheet cutter.

Frequently asked questions

Is this transparent PNG maker free?

Yes. The tool on this page is free, needs no account and adds no watermark. The picture is processed in your browser and is never uploaded. Only the AI mode needs an account and uses credits.

Does it work on a whole sprite sheet?

Yes. Drop the sheet and the background goes from every frame at once. The picture keeps its size, so frame positions do not move. Leave Trim off for sheets.

Why is there a coloured outline around my sprite?

Edge pixels are blends of the sprite and the old background. Turn on Remove the colour fringe, and shrink the edge by one pixel if a halo remains.

Can it remove a white background from a PNG?

Yes. White is detected from the border like any other colour. If the sprite has white parts of its own, use flood fill so only the white connected to the border goes.

Can it remove a photo's background?

Not well. A photo or a painted scene has no single background colour to key on. Use the AI mode on this page, which finds the subject itself.

How large can the picture be?

Up to 4,096 pixels on its long side at full size. A larger picture is scaled down to 4,096 in your browser first.

EvonX AI game maker

Got the asset? Now make the game.

Describe your game in one sentence and EvonX builds it: code, art, sound and a link you can share. Free to start, no download, plays on any phone.

Free to start · Earn money from your games
Try one