Video & Audio
Add Music to Video
Put a soundtrack on your video — replace the original sound or mix music underneath it, with volume controls and an automatic fade-out.
How to use
- 1Add your video, then the music file.
- 2Choose Replace or Mix, adjust volumes, and press Add music.
Frequently asked questions
What if the song is longer than the video?
It's cut to the video's length with a smooth 2-second fade-out.
Can I use any song?
Only use music you have rights to — platforms like YouTube and Instagram mute or block copyrighted songs.
What if the song is shorter?
Tick 'Loop music' to repeat it for the whole video.
Replace vs. mix is the real decision here
This isn't just a volume question — the two modes build entirely different ffmpeg filter graphs. 'Replace' drops the video's original audio track completely and maps the music straight onto the picture, which is right for silent clips or b-roll. 'Mix' keeps the original audio alive and layers music underneath it at a separately adjustable volume, using an amix filter — the correct choice for vlogs or talking-head footage where you want ambient dialogue to survive under a soundtrack rather than vanish.
The processing happens in your browser tab
Both the video and the music file are decoded, mixed and re-encoded entirely client-side using ffmpeg compiled to WebAssembly — nothing is uploaded to a server. That's good for privacy with unreleased footage, but it also means the tab needs to stay open and active for the whole encode, and a long 4K source will be noticeably slower than the same job on a desktop NLE with hardware-accelerated encoding.
Worked example: mixing music under a 90-second vlog clip
A 90-second talking-head clip with a 3-minute royalty-free track: pick 'Mix', set music volume to around 25–35% so dialogue stays intelligible, leave original volume near 100%, and skip 'Loop' since the music is already longer than the clip — ffmpeg trims it to the clip's 90 seconds with an automatic 2-second fade-out starting at the 88-second mark, so the track doesn't cut off abruptly at the edit point. If the same clip only had a 40-second music file, ticking 'Loop' repeats it seamlessly until the video ends.
A silent source video is handled automatically
If 'Mix' is selected but the uploaded video actually has no audio track at all, there's nothing to mix with — ffmpeg's amix step would otherwise produce an awkward silent channel. The tool detects this and falls back to a plain replace (music only), with a note explaining why, so you don't end up troubleshooting an export that looks like mixing failed when there was simply no original sound to blend in.
Why some videos re-encode and others don't
When the source video is already an MP4, MOV or M4V container, the tool copies the picture stream untouched (-c:v copy) and only touches audio — that's why adding music to an existing MP4 finishes in a couple of seconds even for a multi-minute clip, with zero generational quality loss on the video. A WebM or AVI source doesn't fit an MP4 container as-is, so those get re-encoded to H.264 first, which takes longer and is a lossy re-compression of the picture — a reason to export straight to MP4 from your camera or screen-recorder app if you plan to run it through tools like this one afterward.
Replace and Mix end up different lengths for a reason
In Replace mode the ffmpeg command includes -shortest, so the export stops as soon as either the video or the (possibly looped) music track runs out — if you forget to tick Loop and the song is shorter than the clip, the final seconds of picture are simply cut off along with the audio. Mix mode behaves differently: its amix filter uses duration=first, which locks the output length to the original video no matter how long the music file is, so a short song just leaves the tail of the clip with no music rather than trimming the video early.
Related tools
- Video & Audio File Size / Bitrate Calculator
Estimate a video or audio file's size from bitrate and duration — or find the bitrate you need to hit a target size (e.g. under 25 MB for Discord or email).
- Audio Converter & Video to MP3
Convert audio to MP3 or WAV — M4A, OGG, FLAC, WAV, AAC — and extract MP3 audio from MP4, MOV and WebM videos. Batch convert in your browser.
- Add Subtitles to Video (Burn In SRT)
Burn SRT or VTT subtitles permanently into a video — adjustable size, color and outline — so captions show on every platform.
- Change Video Speed (Slow Motion / Fast Forward)
Speed up or slow down a video from 0.25× to 4× — with audio kept in sync and pitch preserved — for time-lapses and slow motion.
- Motion Photo Video Extractor (Google Pixel, Samsung)
Get the short video out of Android motion photos (Google Pixel Top Shot and Motion, Samsung Motion Photos and others) as an MP4, or save the photo without its video to make it smaller. Batch many at once; nothing is uploaded.
- Make Background Transparent / Replace a Color
Click a color to make it transparent — perfect for logos and product shots on plain backgrounds — or replace it with another color. Adjustable tolerance.