🔒
100% private — runs in your browser. Your image is never uploaded to any server. All processing happens locally on your device using the HTML5 Canvas API. No account required.
📁
Upload Image
✂️
Drop image here or click to upload
JPG, PNG, WebP · Max 5MB
🖼️
Before / After
✂️
Upload an image to remove its background
⚙️
Removal Settings
ⓘ Adjust tolerance to control how aggressively background pixels are matched.
Color Tolerance35
Recommended for most images
New Background
💡
Tips for best results
  • Solid or uniform backgrounds give the best results
  • Good contrast between subject and background
  • Works best on product photos, logos and portraits
  • Removes enclosed regions like O, D, B letter holes in logos automatically
  • Adjust tolerance if edges look rough, then re-process
  • Not satisfied? Use our Transparent PNG Maker to manually remove the background

What is a Background Remover?

A background remover is a tool that automatically detects and erases the background from an image, isolating the foreground subject — a person, product, animal, or object. The output is a transparent PNG, commonly called a "cutout", that can be placed over any new background in design software, dropped into websites, or used on marketing materials without a rectangular white box around the subject.

ToollyX's Background Remover runs entirely in your browser using the HTML5 Canvas API. Your image is never uploaded to any server — all processing happens locally on your device. The tool uses a three-pass algorithm that removes the outer background, detects and removes enclosed interior regions (like the holes inside letters O, D, B in logos), and applies smooth edge feathering for clean cutouts. Output is a full-resolution transparent PNG with no watermarks, no file size limits beyond browser memory, and no account required.

How to Remove an Image Background Online

  1. Upload your image: Drop a JPG, PNG, or WebP file onto the upload area or click to open the file picker. The original appears in the Before panel immediately. Your image stays on your device — nothing is transmitted to any server.
  2. Click Remove Background: The tool processes your image locally using the three-pass algorithm. The result appears in the After panel for direct before/after comparison.
  3. Choose a replacement background: Select Transparent for a PNG with no background (checkerboard preview indicates transparency), White or Black for solid fills, or Custom to pick any colour using the colour picker.
  4. Adjust tolerance if needed: The Color Tolerance slider controls how aggressively background pixels are matched. Start at the default (35). Lower values (15–25) preserve fine edges; higher values (50–80) work better on clean studio backgrounds.
  5. Re-process without re-uploading: Adjust tolerance or background colour and click Re-process with New Settings to try again instantly.
  6. Download: Click Download Transparent PNG to save. The file is named with "-bg-removed" appended automatically.

How the Background Removal Algorithm Works

The tool uses a three-pass browser-based algorithm running via the HTML5 Canvas API entirely on your device. No image data is transmitted anywhere.

  1. Pass 1 — Edge BFS flood-fill: The algorithm samples the background colour by averaging pixel RGB values distributed along all four edges of the image. It seeds a BFS (Breadth-First Search) queue with border pixels that match the sampled background colour within the tolerance threshold — using Manhattan colour distance: |r−bgR| + |g−bgG| + |b−bgB| < tolerance × 3. The BFS propagates inward, setting matched pixels to fully transparent (alpha = 0).
  2. Pass 2 — Enclosed region detection: After the outer background is removed, the algorithm finds enclosed interior regions that match the background colour but were unreachable from the edges — the holes inside letters like O, D, B, and P in logos, or circular cutouts inside product images. Each region is tested: if it cannot reach any outer transparent pixel, it is classified as enclosed and removed. This eliminates the white "filled holes" that standard single-pass tools leave behind in logos and typography.
  3. Pass 3 — Edge feathering: Any opaque pixel bordering a transparent pixel (checked in all 8 directions including diagonals) receives alpha = 160, creating a smooth antialiased transition at subject edges rather than a hard pixel-level cut.

Processing runs on a canvas scaled to a maximum of 1200px on the longest edge for performance, then the result is scaled back to the original full resolution using high-quality image smoothing before export.

Color Tolerance Guide

Low (5–20): Only pixels very close to the sampled background colour are removed. Best for subjects with fine edges like hair or fur, though a slight colour fringe may remain at boundaries. Medium (20–50): The recommended range for most product photos and portraits against clean uniform backgrounds. High (50–80): Removes a wider colour range — useful for gradient or uneven backgrounds, but may begin removing subject pixels near edges. Very High (80–120): Maximum aggression — use only on images with strong contrast between subject and background.

7 Common Background Removal Use Cases

  • eCommerce product listings: Amazon, Shopify, Etsy and most marketplaces require product images on a plain white background. Remove the original background, select White as the replacement colour, and the product image is marketplace-ready. Use our Image Compressor to reduce the PNG file size before uploading.
  • Logo and brand asset preparation: Logos with enclosed letter holes (O, D, B, P) become fully versatile as transparent PNGs — both the outer background and interior enclosed regions are removed correctly, producing a clean cutout that overlays on any brand colour or photographic background without white remnants.
  • Social media graphics: Place product shots or portrait cutouts on branded colour backgrounds, gradients, or Canva and Figma templates for consistent social media visuals across platforms.
  • Presentation slides: Cutout images integrate cleanly into PowerPoint or Google Slides without the rectangular white box that appears when inserting JPEG photos directly. The transparent PNG sits natively on any slide background colour.
  • Photo compositing: Replace backgrounds in portrait photos — place a person against a studio backdrop, branded office environment, or a travel scene. Pair with our Image Resizer to match the cutout to the new background dimensions.
  • App and web UI design: Extract product or icon images from photos as transparent UI elements — hero sections, feature illustrations, and cards — that adapt to any page background colour or dark/light mode without white borders.
  • Print design: Transparent PNG cutouts placed in InDesign, Affinity Publisher, or Canva sit cleanly over any print background on flyers, packaging, and brochures without white boxes bleeding into surrounding design areas.

Tips for Better Results

The three-pass algorithm performs best when the background is a uniform colour that contrasts clearly with the subject. Start at tolerance 35 and increase only if background fringe remains around edges after processing. If subject pixels near the boundary are being incorrectly removed, lower the tolerance. For logos and text with enclosed letter holes, the algorithm automatically removes interior regions — no manual cleanup needed.

For subjects that share colours with the background — for example, a white product on a white background — the flood-fill algorithm will struggle regardless of tolerance. In these cases, use our Transparent PNG Maker to manually click and remove specific background areas using the magic wand tool.

Privacy — Your Image Never Leaves Your Device

Unlike most online background removers that upload your image to a cloud server for processing, ToollyX's Background Remover works entirely in your browser. The HTML5 Canvas API processes your image in your device's local memory — no network request is made, no file is transmitted, and no data is stored anywhere. This makes it safe to use for confidential product images, client assets under NDA, personal photos, and any situation where you prefer not to upload images to an external service. When you close or refresh the tab, the image is discarded entirely from browser memory.

Verified by ToollyX Team · Last updated June 2026

Frequently Asked Questions

Disclaimer: All background removal processing runs locally in your browser using the HTML5 Canvas API. No image data is transmitted to any server. ToollyX does not store, log, or retain any uploaded image or result.