imagetojpg.app
Tools

Magic Wand Tool

Click a colour, get a selection. Tune the tolerance, add or subtract areas, then delete the background or keep only what you picked — and download a transparent PNG.

Loading sample image…

Shift-click adds to the selection, Alt/Option-click subtracts. Moving a slider re-runs your last click.

or drop / paste · JPG, PNG, WebP, HEIC

● Runs in your browser — the image is never uploaded.

In short

To use the magic wand online, open an image above and click the area you want to select — a plain background, the sky, a coloured shape. Raise Tolerance to take in more similar colours, turn Contiguous off to select that colour everywhere, and Shift-click to add more areas. Then press Delete selection to make it transparent, or Keep only selection to cut the object out, and download a PNG. Feather softens the edge. Nothing is uploaded.

Three backgrounds removed with the wand

Real outputs of this tool on our own pictures. Grey-and-white checks show where the image is now transparent.

Product on white: originalBefore
Product on white: background deleted with the magic wandAfter

Product on white

4 clicks (one per corner)

Tolerance 4 · Feather 1

58% of pixels selected → deleted

A clean cut-out for a shop listing; the shoe's white sole stays because it isn't connected to the background.

Sky behind a lighthouse: originalBefore
Sky behind a lighthouse: background deleted with the magic wandAfter

Sky behind a lighthouse

8 Shift-clicks across the sky

Tolerance 16 · Feather 1

58% selected → deleted

Gradient skies need a few clicks on lighter and darker patches; the sea stops the selection at the horizon.

Pot on a pastel backdrop: originalBefore
Pot on a pastel backdrop: background deleted with the magic wandAfter

Pot on a pastel backdrop

1 click in the corner

Tolerance 30 · Feather 1

62% selected → deleted

An even backdrop goes in a single click, shadow included at this tolerance.

How to use the magic wand tool

  1. Open an image: tap Upload image, drop a file, or paste a screenshot with Ctrl/Cmd+V.
  2. Click the colour you want to select. The marching-ants outline and blue tint show what's selected.
  3. Adjust: move Tolerance until the selection stops at the right edge (the last click re-runs live). Shift-click adds an area, Alt/Option-click removes one; Invert swaps inside and outside.
  4. Press Delete selection (background removal) or Keep only selection (cut-out), set Feather to soften the edge, then Download transparent PNG — cropped to what's left if you like.

How a magic wand decides what to select

When you click, the tool reads the colour of that pixel and compares every neighbouring pixel's red, green and blue values with it. If all three are within the tolerance — 0 means only the exact colour, 100 means almost anything — the pixel joins the selection and its neighbours are tested in turn. This is a flood fill, so with Contiguous on the selection spreads only through connected pixels and stops at the first edge that differs enough, exactly like Photoshop's magic wand. With Contiguous off, every pixel of a matching colour in the whole image is selected, which is handy for removing a colour that appears in many separate places, such as the gaps inside lettering. Because it works on colour, it is fast and predictable on solid or gently shaded areas — studio backgrounds, skies, logos, screenshots — and needs a few extra clicks where the object and background share colours. Feather then blurs the selection's edge by a few pixels so a cut-out doesn't look jagged.

What it's good at — and when to use something else

ImageMagic wand resultTip
Product on a plain white or coloured backgroundClean in 1–4 clicksTolerance 3–8, click each corner
Sky behind a building, tree or lighthouseClean with a few clicksGradient skies: Shift-click the darker and lighter parts
Logo or signature on paperVery cleanContiguous off to clear the inside of letters
Screenshot or flat graphicPixel-exactTolerance 0–5
Portrait with hair against a busy backgroundRoughColour alone can't separate hair from a similar background

Tolerance here runs 0–100 and maps onto Photoshop's 0–255 scale (100 = 255), so a Photoshop tolerance of 32 is about 12 here.

All the controls

  • New / Add / Subtract — what a click does; Shift and Alt/Option switch modes for a single click.
  • Tolerance — how different a colour can be and still be selected.
  • Contiguous — on: only connected pixels; off: every matching pixel in the image.
  • Feather (0–8 px) and Grow (−4 to +4 px) — soften the edge, or push it in or out to get rid of a halo.
  • Invert, Deselect and Undo (20 steps).
  • Delete selection / Keep only selection — apply it to the pixels; you can keep selecting and deleting after that.
  • Download transparent PNG (optionally cropped to what's left) or Download selection as mask — a black-and-white PNG for use in other editors.

This tool vs other online magic wands

FeatureThis pageTypical online magic wands
Live tolerance (re-runs your last click)YesUsually re-click every time
Add / subtract, invert, undoYesOften missing on simple pages
Feather and grow/shrink edgeYesRare outside full editors
Export mask as well as cut-outYesRare
Uploads your imageNo — runs in your browserOften yes
Ads, sign-up, cookie wallsNoneCommon

Frequently asked questions

How do I use the magic wand tool online?

Open an image on this page and click the area you want. Adjust Tolerance until the selection fits, Shift-click to add more, then press Delete selection or Keep only selection and download a transparent PNG.

What does tolerance mean in the magic wand tool?

How far a colour can be from the one you clicked and still be selected. Low values pick only near-identical colours; high values spread into similar shades. Start low (the default is 5) and raise it a little at a time until the selection reaches the edge you want.

What is the contiguous option?

With Contiguous on, only pixels connected to the one you clicked are selected. Turn it off to select every pixel of that colour anywhere in the image.

Can I remove a background with the magic wand?

Yes, when the background is a fairly even colour. Click it, press Delete selection and download the PNG. For busy backgrounds or hair, a colour-based wand needs many clicks.

How do I make the edges smoother?

Set Feather to 1–3 px before deleting. If a thin coloured halo remains around the object, set Grow to +1 or +2 so the selection reaches a little further into it.

Is there a magic wand like Photoshop's for free?

This page works the same way as Photoshop's — tolerance, contiguous, add and subtract, feather — and is free with no sign-up. Your image stays on your device.

Are my images uploaded?

No. Selection and export run in your browser; nothing is sent to a server.

Updated · By the imagetojpg.app team

More free tools

Image to JPGAny format — HEIC, AVIF, PNG, WebP, GIF, BMP — to JPG.HEIC to JPGiPhone photos to JPG that opens everywhere.HEIC to PNGLossless PNG from iPhone HEIC photos.AVIF to JPGSaved an .avif from the web? Make it a JPG.AVIF to PNGAVIF to PNG with transparency kept.HEIF to JPGSamsung Galaxy and camera .heif files to JPG.HEIC ConverterHEIC to JPG, PNG, WebP or PDF in one box — keep EXIF, drop GPS, no upload.PNG ConverterAny image to PNG, or PNG to JPG, WebP, PDF and multi-size ICO — no upload.WebP to PDFCombine WebP images into one PDF — reorder, A4/Letter, margins, no upload.PNG to PDFMerge many PNGs into one PDF with lossless, pixel-sharp pages — no upload.PNG to EPUBComics, picture books and scans to an EPUB e-book — cover, contents, no upload.Image to TextCopy the text out of any photo or screenshot — OCR on your device, 19 languages.Picture to WordExtract text from a photo or screenshot into an editable Word .docx — on your device.JPEG to JPG.jpeg, .jpe, .jfif → .jpg, lossless, in bulk. Optional EXIF removal.JFIF to JPGFix .jfif downloads — lossless, no re-compression.Compress JPGShrink JPGs to 100 KB, 200 KB or any size, with a before/after slider.Compress Image to KBMB to KB: any photo to 20, 50, 100 or 200 KB — exam forms, signatures.Resolution ChangerChange pixel size or DPI (72/150/300). Passport and Instagram presets.MP4 to JPGExtract JPG frames from MP4, MOV or WebM — video never uploaded.Image EnhancerAI sharpens detail and cleans JPEG blocks, 2× / 4× — free, no upload.Unblur ImageFix blurry photos, faces and text with AI — Light, Medium or Strong.Upscale ImageMake images bigger without blur: 2×, 4× or 4K, free, nothing uploaded.Free Image UpscalerAI upscale 2× or 4× with no credits, no sign-up, no watermark.4K Image UpscalerUpscale photos to 3840 px for 4K wallpapers, TVs and prints.Image to SVGPNG/JPG to SVG cut files for Cricut and Silhouette — colour layers, DXF, no upload.QR Code with LogoYour logo in the middle, scan-checked, PNG or SVG — static, never expires.WhatsApp Sticker MakerPhoto to 512×512 WebP sticker: background removed, white outline, text — no app.Sticker MakerPhoto to sticker: background removed, white outline, transparent PNG or A4 print sheet.Handwriting to FontFill in a template, snap a photo, download your handwriting as a TTF font.Image to Pixel ArtPhoto to pixel art: pixel size, retro palettes, dithering — PNG or SVG, no upload.GIF CompressorShrink animated GIFs by up to 90% or fit them under a target MB/KB — no upload.GIF ResizerResize animated GIFs by percent or pixels; 128 emoji and 512 sticker crops.GIF to WebPAnimated GIF to animated WebP — usually far smaller, batch, no upload.GIF to APNGAnimated GIF to animated PNG with exact pixels and loop control.GIF Speed ChangerSpeed up, slow down, reverse or boomerang a GIF — lossless timing edits.Compress SVGSVGO optimizer that also repairs SVG code pasted from ChatGPT — presets, batch ZIP.SVG to DXFSVG to DXF in mm or inches for LightBurn, Silhouette and CAD — layers by colour.Gemini Watermark RemoverRemove the Nano Banana sparkle — exact pixels restored, no upload.PFP Collage Maker“Who is in the pfp of your apps” template — one labelled picture per app, 1:1 or 9:16.Movie Scene Collage3 photos as stacked widescreen movie stills — subtitles, grain, Pinterest & Story sizes.Image Text RemoverErase captions, date stamps and words — auto-detect, batch, no upload.Remove AI LabelsStrip C2PA, IPTC AI tags and prompts — pixels unchanged, no upload.AI Image DetectorIs this image AI? Reads Content Credentials, AI tags and prompts — no upload.PNG Text GeneratorText to transparent PNG with gradient, outline, glow and 3D styles.Wallpaper GeneratorGradients, waves or your photo at your phone's or monitor's exact size.Color Picker from ImageClick any pixel for HEX, RGB and HSL, plus a palette.Passport Photo MakerUS, UK, EU, Canada, Australia sizes — checked JPG + 4×6 print sheet.Passport Size Photo3.5 × 4.5 cm photos: 32 on an A4 sheet or 8 on 4×6, free.US Visa & Passport Photo2x2 in / 600×600 JPG under 240 kB, checked — DS-160 and DV lottery.