# GitHub - Suvink/cut-it-out: A browser based background removal tool for images.

## CutItOut - Free AI Background Remover

[](#cutitout---free-ai-background-remover)

**CutItOut** is a free, open-source, and privacy-focused tool that removes image backgrounds instantly directly in your browser. Powered by WebAssembly and the U2-Net deep learning model, it ensures your images never leave your device.

[![CutItOut Demo](https://github.com/Suvink/cut-it-out/raw/main/og-image.png)](https://github.com/Suvink/cut-it-out/blob/main/og-image.png)

## 🚀 Features

[](#-features)

- **100% Client-Side**: No server uploads. Your photos stay private.
- **AI-Powered**: Uses the state-of-the-art U2-Net model via `@imgly/background-removal`.
  
  - This library loads the ONNX runtime via WebAssembly (WASM) to execute the U2-Net model directly in the browser.
  - There is no need for a backend server, reducing costs to zero and guaranteeing user privacy.
- **Smart Editing**:
  
  - **Magic Brush**: Select areas to restore or erase based on color similarity.
  - **Restore Mode**: "Ghost" overlay helps you see what you're restoring.
  - **Zoom & Pan**: Precise control for detailed editing.
- **High Quality**: Exports full-resolution transparent PNGs. No restrictions! No watermarks!

## 💻 Local Development

[](#-local-development)

Follow these steps to run CutItOut locally on your machine.

### Prerequisites

[](#prerequisites)

- Node.js (v18 or higher)
- npm (v9 or higher)

### Installation

[](#installation)

1. **Clone the repository**
   
   ```
   git clone https://github.com/Suvink/cut-it-out.git
   cd cut-it-out
   ```
2. **Install dependencies**
3. **Start the development server**
   
   Open `http://localhost:5173` in your browser.

### Building for Production

[](#building-for-production)

To create a production build:

The output will be in the `dist` folder, ready to be deployed to any static host (Vercel, Netlify, GitHub Pages, etc.).

## 🤝 Contributing

[](#-contributing)

We welcome contributions! Please see [CONTRIBUTING.md](https://github.com/Suvink/cut-it-out/blob/main/CONTRIBUTING.md) for guidelines on how to get started.

## 📄 License

[](#-license)

This project is licensed under the Apache License 2.0 - see the [LICENSE](https://github.com/Suvink/cut-it-out/blob/main/LICENSE) file for details.