A simple Green Screen (Chroma Key) removal tool for MP4 videos.
Runs 100% offline in the browser — no backend, no server needed.
- Upload any MP4 video with a green screen
- Remove green background in real-time
- Replace with a custom background image or transparent background
- Adjust green tolerance, edge softness, and spill suppression
- Live preview while the video plays
- Export the processed video as WebM with audio included
👉 https://html-ramu.github.io/chroma-key-tool
| File | Purpose |
|---|---|
index.html |
Main HTML structure |
style.css |
Dark theme UI styling |
script.js |
Chroma key logic + export |
- Open
index.htmlin Chrome or Firefox - Upload your
.mp4green screen video - Optionally upload a background image
- Adjust the Green Tolerance slider (start at 40–60)
- Use Edge Softness to smooth cutout edges
- Use Spill Suppression to remove green glow
- Click Export as WebM to download
- Each video frame is drawn onto an HTML Canvas
- Every pixel is checked: if green dominates → alpha set to 0 (transparent)
- Background image or color is composited underneath
- Web Audio API captures audio from the video for export
- MediaRecorder API records the canvas stream to
.webm
- HTML5 Canvas API
- Web Audio API
- MediaRecorder API
- Vanilla JavaScript (no libraries)
Made by html-ramu