Add background music

Replace a clip’s soundtrack with a music track that runs the full length of the picture.

or drop them here · files stay on your device · pick at least 2
We count formats and sizes. Filenames stay private unless you opt in.

Processed on this device
  • Runs on your device
  • No sign-up or watermark
  • No fixed file size cap

The short answer

To add music to a video, select one video and one audio file together, such as an MP4 and an MP3, and press Add the music. ffmpeg in your browser replaces the original sound with the track, looping it if it is shorter or cutting it at the end if longer. Nothing is uploaded.

How to add background music to a video

  1. STEP 1

    Select both files together

    Pick one video (MP4, MOV, MKV, AVI or WebM) and one track (MP3, M4A, WAV, FLAC, OGG, AAC or Opus) in a single selection.

  2. STEP 2

    Add the music

    Press Add the music. There are no settings: the track loops or is trimmed to match the picture.

  3. STEP 3

    Download the MP4

    Save the file marked -music. Both originals are left exactly as they were.

Replacing a soundtrack versus mixing one in

Background music can be added two ways. Mixing keeps the original audio, such as speech, and lays the music quietly underneath. Replacing swaps the original sound out for the music completely.

This tool replaces. That suits silent clips, screen recordings, timelapses and footage where the recorded sound is wind or traffic you would rather not hear. If you need the voices kept, a timeline editor that can mix and duck is the right tool.

What survives, and what does not

ffmpeg reads the video and the music, repeats the music endlessly and stops at the end of the picture, so a short track loops and a long one is cut off. The picture is re-encoded with libx264 at quality 23 and the music is encoded to stereo AAC at 192 kbps in an MP4 with the index at the front.

What you keep

The whole picture at near-original quality

The video’s full length, with music from start to finish

The music in stereo at 192 kbps AAC

What you lose

The video’s original sound, which is replaced rather than mixed

Volume, fade and start-offset control: the music plays at its own level from its first second

A clean ending: a long track is cut abruptly when the picture stops

Honest limits are published on every tool page. If a tool cannot do something well, it says so here rather than letting you find out after the download.

Add background music at a glance

Input1 video + 1 audio file
Audio formatsMP3, M4A, WAV, FLAC, OGG, AAC, Opus
OutputMP4, H.264 + AAC 192 kbps stereo
Original audioReplaced, not mixed
Short musicLoops to fill the clip
First-use downloadAbout 32 MB
Works offlineAfter the first use

If something goes wrong

It asks for exactly two files

Select the video and the music in the same pick, holding Ctrl or Cmd. Choosing again replaces the selection rather than adding to it.

The music ends abruptly

A track longer than the video is cut where the picture stops. Trim the music to a natural ending with the audio trimmer first, or pick a shorter track.

Add background music questions

How do I add music to a video for free?

Choose your video and a music file together on this page and press Add the music. The result is an MP4 with the track as its soundtrack, made in your browser with no watermark.

Does adding music keep the original sound?

No. The original audio is replaced by the music. Mixing the two, so speech stays audible over the music, is not offered in this tool.

What happens if the song is shorter than the video?

It loops from the start until the picture ends, so there is no silent gap. A song longer than the video is cut at the final frame.

Can I add an MP3 to an MP4 on iPhone?

The page works in Safari on iPhone if the song is in the Files app. Keep the video short, because iOS limits how much memory a browser tab can use.

Are my video and music uploaded?

No. Both files are combined in your browser by ffmpeg compiled to WebAssembly. Neither is sent to any server.

One of 153 file tools and planned additions. Built and tested by Arin Prajapati, last checked against the code on . canonical: https://damnfiles.com/add-background-music
Analytics preferences

Help us understand which tools and file types people use. File contents always stay on your device.

Filename sharing is optional and off by default. Names can contain personal information. Changes apply to future events; disabling sharing does not delete earlier records.

Read our privacy policy