Local AI image processing

Remove backgrounds without uploading the photo to an application server.

A browser-ready BiRefNet model creates an alpha matte locally. First use downloads the model files; output can be transparent or placed on a solid colour.

Remove an image background

Choose a product photo or portraitProcessing stays in this browser; model files are downloaded on first use.

Output settings

Background
First use downloads an approximately 94 MB fp16 model on WebGPU-capable browsers; WASM fallback can use more memory and be slower. The 512×512 inference model can lose very fine edge detail on large originals.

Model and limits

This implementation uses the MIT-licensed studioludens/birefnet-lite-512 browser ONNX export with Transformers.js. Its 512×512 inference resolution is practical for browsers but may soften very fine edges on large source images.

Device behavior

WebGPU is preferred when available; WASM is the fallback. Actual processing time is measured and shown after each run instead of claiming a universal speed. The model is loaded only on this tool page when processing starts.

Remove a background step by step

  1. Select a clear JPG, PNG or WebP with one main subject.
  2. Start processing and allow the on-device model to finish downloading if this is your first visit.
  3. Inspect the edges of hair, clothing and transparent objects before exporting a PNG.
  4. Choose a transparent background if you plan to place the cutout on another design, or select a solid colour for a finished visual.

When does background removal work best?

A clear foreground subject, even lighting and a visibly different background usually make the result easier to review. Fine hair, translucent fabrics, motion blur and similar foreground/background colours are harder. This is an automated first pass, not a guarantee of perfect masking. Inspect product details carefully before publishing an ecommerce image.

Transparent PNG or a new background?

Transparent PNG is useful for product catalogues, presentations and composite designs. A solid colour gives you a ready-to-share image, though it cannot restore details removed by the model. To change the final canvas size, open the image resizer; to reduce its file size afterward, try the image compressor.