Saved

Press the star next to a tool's name to save it.

All my tools

Add Music to Video

Use this tool to add music to video: choose a clip and a song, replace the original sound or mix them, and save an MP4 in your browser without uploading.

Choose the music file, then decide whether the original sound is replaced or mixed with the music.

Your file is processed in your browser. Nothing is uploaded.

FFmpeg runs in your browser as ffmpeg.wasm (GPL-2.0-or-later). The first use downloads about 10 MB.

Your file

Choose a video and a music file, then press Add music.

This tool lets you add music to video: choose a clip and a song, and it writes one MP4 with the song as the soundtrack or mixed with the original sound, in your browser.

How to add music to video here

Two choices cover most needs. With Replace it, the original sound is removed and the song becomes the soundtrack. With Mix with the music, the original sound and the song are blended with FFmpeg and the result is a little louder than either alone so voices stay clear. The video picture is copied as it is, which makes this quick, and the new audio is encoded as AAC at 192 kbit/s inside an MP4. [2]

The song is looped with the -stream_loop option when it is shorter than the video, and the output stops when the video ends, because the shortest stream decides the length. [1] A song that is longer than the video is simply cut off at the video end.

Worked example

You have a 45 second clip without useful sound and a 3 minute song. Choose the clip, pick the song and select Replace it. The result is a 45 second MP4 that plays the first 45 seconds of the song. If your clip has someone talking and you want quiet background music, choose Mix with the music instead.

Replace or mix

OptionResultUse for
Replace itOnly the music playsTimelapses, slideshows, silent clips
Mix with the musicVoice and music togetherSpeech with a music bed

A clip with no sound at all is handled too. The tool retries and uses the song alone.

Add music to video tips

  • Use music you have the right to use. Platforms can mute or block videos with copyrighted songs.
  • Trim the song first so that its best section plays at the start.
  • Mix mode is not a volume mixer. If music is too loud under speech, lower the volume of the song file first.
  • For a clean fade at the end, finish the job in an editor.

Privacy, limits and the FFmpeg core

This page runs FFmpeg as ffmpeg.wasm, a WebAssembly build that works inside your browser tab. [3] The first time you press the button the page downloads the converter, about 10 MB, and keeps it for the rest of the visit. Your video and music is read from your own disk into the browser, processed there and handed back as a download. It is never uploaded, so it works for private recordings and you can use it offline once the converter has loaded.

Files up to 500 MB are accepted. Long or high resolution files take noticeably longer than they would in a desktop program, because a browser build of FFmpeg runs on a single thread and has less memory to work with. Keep the tab open until the progress figure reaches 100%, and press Stop if you change your mind. The FFmpeg core in this build is licensed under GPL-2.0-or-later, which is why the licence note sits under the button.

Step by step with the add music to video

  1. Press the upload box and choose your video.
  2. Choose the music file in the Extra file box.
  3. Pick Replace it or Mix with the music.
  4. Press Add music and wait for the progress to reach 100%.
  5. Download the MP4 and listen to the balance.

Who uses the add music to video

People put a song on a slideshow or time lapse, add a background track to a product video, or replace a noisy recording with clean music for a short clip.

Common mistakes to avoid

  • Using a copyrighted song on a platform that blocks it.
  • Choosing Mix when the video has loud noise you want to remove.
  • Using a song that starts with a long silence.
  • Forgetting that the video length decides the final length.

Quality, formats and browser notes

Every video this site writes is encoded with the x264 or equivalent encoder at a constant quality, so the picture looks close to the source while the size stays sensible. Most outputs use an MP4 container with H.264 video and AAC audio because that pairing plays on nearly every phone, TV, browser and editor. Chrome, Edge, Firefox and Safari on a computer all run the converter; phones can run it too, but a long clip may be slow or stop if the browser runs short of memory. If that happens, close other tabs, use a shorter clip or work from a computer.

Music licence reminder

A song you bought or streamed is not automatically free to use in your video. Video platforms scan uploads and can mute or remove videos that use protected music, or put adverts on them. Use music you made yourself, music offered under a licence that allows reuse, or tracks from a library you have a licence for, and keep a note of the source in case a platform asks.

If something goes wrong

If the page says the converter could not be loaded, check your internet connection, because the 10 MB core is fetched the first time you use it, and reload the page. If the job fails on a particular file, it may be damaged or use a codec that this browser build of FFmpeg does not include; try opening it in a media player first. If the page stops with a memory error, the file is too large for the browser, so trim it, resize it or use a computer with more memory. Pressing Stop ends the job at once and frees the memory, and you can start again with other settings.

What next

Use this often? Add Add Music to to your Home screen.

Frequently asked questions

How do I add music to video?

Choose the video, choose a music file, pick Replace it or Mix with the music and press Add music.

What if the song is shorter than the video?

The song loops until the video ends.

What if the song is longer?

It is cut off when the video finishes.

Which music files can I use?

MP3, M4A, WAV, AAC, OGG and FLAC files work.

Is the video uploaded?

No. Both files stay on your device and are processed in the browser.

What went wrong?

We only receive the reason you pick, never what you typed into the tool.

Thanks for your feedback.

More Video & Audio Tools