Free tool · Local AI

Audio Stem Separator (AI)

Split a song into vocals, drums, bass and other instruments with AI. Processed in your browser.

Drag your song here or click to select

MP3, WAV, OGG, FLAC, M4A, AAC · depending on what your browser can decode

Select audio

Built by

Miguel Ángel Colorado Marin (MACM)

Full-Stack Developer · Guadalajara, España

I develop web apps, digital tools and full projects — from design to deployment.

Contact me

The stem separator uses HTDemucs, a music source-separation model from Meta, exported to ONNX to run inside your browser. Your song is never uploaded to a server. Upload an audio file in a format your browser can read, such as MP3, WAV, OGG, FLAC, M4A or AAC, and you get four independent stems: vocals, drums, bass and other instruments. Listen to them together or one at a time with the built-in mixer, which has per-stem solo and mute and keeps all stems in sync, or download each one as WAV. It works for making a karaoke version by removing the vocals, isolating the bass or drums to study a song, or extracting an acapella. The first time you use it, about 304 MB of model weights download and stay in your browser's cache for later visits.

Features

  • ✓Meta's HTDemucs model, exported to ONNX
  • ✓4 stems: vocals, drums, bass and other
  • ✓Mixer with per-stem solo and mute
  • ✓Download each stem as 16-bit WAV at 44.1 kHz
  • ✓Processed in your browser, audio never uploaded

How to split a song into stems?

  1. 1

    Upload your song

    Drag the file or click to select it. The tool sets no maximum size, but your browser's memory does limit very long songs.

  2. 2

    Tap Separate

    The first time it downloads the AI model (about 304 MB); after that it stays in your browser's cache.

  3. 3

    Listen with the mixer

    Use per-stem solo or mute to hear vocals, drums, bass or other on their own.

  4. 4

    Download the stems

    Each stem downloads as 16-bit WAV at 44.1 kHz, ready to use.

Which model it uses and which stems come out

The model is HTDemucs, a Meta neural network for music source separation released under an open-source license, exported to ONNX to run with ONNX Runtime Web. Its input has a fixed shape of 2 channels by 343,980 samples, equal to 7.8 seconds at 44,100 Hz. The weights add up to 304,394,080 bytes (about 304 MB) in fp32 precision, split into four chunks downloaded from raw.githubusercontent.com and joined in memory before the session is created.

Before separation, the song is converted to 44,100 Hz stereo using the browser's decoder and a resample, even if the original uses another sample rate. The model returns four stereo stems: drums, bass, other instruments and vocals. Each stem is an estimate and can contain slight leftovers from the others.

How the song is processed

The song is cut into windows of 343,980 samples (7.8 seconds) that overlap by 25%. The step between windows is 257,985 samples, about 5.85 seconds, so a 4-minute song needs about 42 windows. Each result is weighted with a triangular window, and every final sample is the weighted average of the windows covering it.

The last window, shorter than 7.8 seconds, is shifted so it takes real audio from the song itself. The button shows the percentage of windows processed, so the progress is real.

The engine tries WebGPU first, which uses the graphics card. If it is not available or the session cannot be created, it uses WebAssembly on the processor. The session is created once per visit and reused for the following songs.

The whole song stays in memory during processing. One minute of audio takes about 10.6 MB per channel as 32-bit floating point, and processing holds the stereo mix and the eight output signals at the same time, so for very long songs the limit is the memory your browser has available.

Privacy, cache and limits

Your audio never leaves the browser. The only external request is the download of the model weights from raw.githubusercontent.com, which happens the first time you press Separate; the execution engine loads from this same site. The chunks are stored in the browser cache (Cache Storage), so they are not downloaded again while that cache exists.

No maximum size is imposed, though your browser's memory does limit very long songs. Changing the song clears the previous result, and nothing is kept when you reload the page. If the model download or processing fails, an error message appears and you can try again.

Frequently asked questions

Is my song uploaded to a server?

No. The HTDemucs model runs inside your browser and the audio never leaves your device. The only thing downloaded from outside is the model weights (about 304 MB) the first time, from raw.githubusercontent.com.

How long does splitting a song take?

It depends on your device. Processing runs in 7.8-second windows, about 42 for a 4-minute song, and the button shows the real percentage completed. When WebGPU is available the graphics card is used; otherwise processing runs on the processor with WebAssembly.

Why is the model about 304 MB?

HTDemucs is a large neural network with two branches, one working on the spectrogram and one on the waveform, joined by a transformer. Its weights use fp32 precision and are downloaded in four chunks. They stay in your browser's cache, so they do not need to be downloaded again on later visits.

How good is the separation quality?

It depends a lot on the mix. No separation is perfect: slight bleed from other stems can remain, especially in very dense mixes or with instruments that share frequencies with the voice. Listen to each stem in the mixer before downloading it.

Can I use it to make karaoke tracks?

Yes. Separate the song, download the _drums, _bass and _other stems, and mix them together in your favorite audio or video editor. The stems are 16-bit WAV at 44,100 Hz.

Related tools

Embed Audio Stem Separator (AI) on your site

Add Audio Stem Separator (AI) to any web page with a simple iframe. Free, with attribution to miguelacm.es.

<iframe
  src="https://miguelacm.es/embed/audio-stem-separator?locale=en"
  width="100%"
  height="700"
  frameborder="0"
  allow="clipboard-write"
  title="Audio Stem Separator (AI) — miguelacm.es"
></iframe>
View embed in new tab →