How to Add Music to a Video: Every Route, and the Two Things That Go Wrong

To add music to a video, open it in an editor, import your audio file as a second track, drag it under the picture and export. On a phone that means iMovie or Clips on iOS and Google Photos or CapCut on Android; on a desktop, DaVinci Resolve and CapCut are free and iMovie is free on a Mac. Use a WAV or a high-bitrate MP3 and export to MP4 with AAC audio, which every platform accepts. The part that catches people is licensing: a commercial track will usually be detected on YouTube and Instagram, and the result is a muted, blocked or monetised video rather than a takedown.
The short answer: To add music to a video, open it in an editor, import your audio file as a second track, drag it under the picture and export. On a phone that means iMovie or Clips on iOS and Google Photos or CapCut on Android; on a desktop, DaVinci Resolve and CapCut are free and iMovie is free on a Mac. Use a WAV or a high-bitrate MP3 and export to MP4 with AAC audio, which every platform accepts. The part that catches people is licensing: a commercial track will usually be detected on YouTube and Instagram, and the result is a muted, blocked or monetised video rather than a takedown.
That is the whole job in one paragraph. The rest of this guide is the detail underneath it: the tool for each platform, the formats that survive the round trip, how to stop fighting the sync, and what happens the moment you upload. If the video itself does not exist yet, you are at the other end of the same problem — how to make an AI music video is the guide for that.
On a phone
iOS. The Photos app is not the tool for this — its soundtracks belong to memory movies, the automatic montages Photos assembles for you, not to a video you shot and want to score. For an actual edit you want iMovie, which takes music from your library via Add Media, or Clips, whose soundtracks automatically adjust to fit the length of your video. There is one significant limitation around Apple Music that catches almost everybody, and it has its own guide: adding music to a video on iPhone.
Android. Google Photos will build a highlight video from your clips and let you pick a soundtrack, swap the song, and balance it against the video's own audio using separate volume sliders. It is a montage tool, not an editor — for control over individual cuts, CapCut is the usual free answer.
On a desktop
Three tiers, and the free tier is genuinely capable.
- CapCut — the fastest route from "I have a clip and a song" to a finished export. Templates, auto-captions, a beat-detection feature that will mark the timeline for you.
- DaVinci Resolve — free, professional, with an actual audio page in it. The learning curve is real but this is the tool that stops being a limitation.
- iMovie on Mac — free with the machine, one video track and a music track, and completely sufficient for laying a song under footage.
- Premiere Pro and Final Cut Pro — paid, and worth it only when you are editing often enough that the time saved exceeds the subscription.
The mechanics are identical in all of them: drop the video on the timeline, drop the audio on a track beneath it, trim, set levels, export.
In a browser
Browser editors avoid the install and pay for it in upload time and privacy — your footage goes to somebody's server. That trade is worth understanding before you accept it.
Our own audio visualizer is a browser tool that solves the neighbouring problem: it makes a video from the music when you have no footage at all, reading the track's frequencies and drawing them to a canvas as it plays. Two honest caveats. It records at 1280×720, landscape, so it is not a vertical asset without cropping. And in most browsers it records WebM; Safari records MP4. WebM uploads to YouTube fine — it is on YouTube's list of supported upload formats — but Instagram and TikTok want MP4, and that conversion is a genuine re-encode, not a rename, because WebM carries VP8 or VP9 video with Opus audio and MP4 needs H.264 with AAC. Both streams get encoded again. It takes seconds and costs a generation of quality you will not see, but it is not a free operation.
Formats: the short version
Going in, prefer WAV. It is uncompressed, so your editor encodes once on export instead of decoding a lossy file and re-encoding it. A 256 or 320kbps MP3 is fine if that is what you have.
Coming out, export MP4 with H.264 video and AAC audio. Every platform accepts it, and it is what the phone editors produce by default anyway.
One MP3 quirk worth knowing, because it produces a bug that looks like your editor is broken: MPEG audio encoders add a short block of padding silence at the start of the file. It is a handful of milliseconds, inaudible on its own, and enough that a downbeat you timed in one program sits fractionally later once the file is imported into another. If you are cutting tightly to a beat, trim to the waveform in the editor you are actually finishing in.
The sync problem, and how to stop having it
Most people lay the music under a finished edit and then push it around trying to make it fit. That is the hard version of the job.
The easier version is to cut to the music. Import the audio first, find the first strong downbeat by looking at the waveform, and place your first visual change exactly there. Then work outward: every cut lands on a beat or deliberately off one. Editors will show you the audio waveform on the timeline for precisely this reason — use it visually instead of trying to do it by ear at full speed.
If the video already exists and cannot be recut, pick the section of the song that matches its energy instead of starting at 0:00. In a real editor you do that by dragging the audio clip until the part you want sits under the picture. Montage tools generally will not let you: they hand you a track, not a position in it, which is one of the clearer reasons to move up to an actual timeline.
The structural version of this problem is why we build videos the other way round — timing the picture to the track from the start, so there is nothing to reconcile afterwards. Our guide to preparing a song before you generate a video covers what a track needs for that to work.
The licensing reality
This is the section that decides whether your video survives contact with a platform, and it is not a legal grey area. It is automated.
YouTube. Uploads are matched against reference files supplied by rights holders. When a match is found, what happens next is set by the copyright owner's policy: block the video from being viewed, monetise it by running ads and keeping the revenue, or track its viewership. Monetise is the most common outcome for music. Shorts are a special case worth knowing: a Short longer than one minute with an active claim is blocked regardless of which policy the owner picked. If you do get claimed, YouTube lets you remove the claimed content without reuploading — including muting just the song and leaving the rest of your audio alone, which clears the claim.
Instagram. Meta runs its own audio matching, and an unlicensed track is typically muted or the post restricted; the terms are in Instagram's copyright help centre, and they change more often than YouTube's, so read it yourself and do not trust a summary of it. What is dependable is the way around it: Instagram's in-app music library is a pre-licensed catalogue you pick from at post time, and a track chosen there is covered. The same song baked into the video file you upload is a different thing and gets none of that cover.
What you can safely use. YouTube's Audio Library, in YouTube Studio, is royalty-free and copyright-safe on the platform, with Creative Commons tracks requiring artist credit in your description. Paid libraries sell you a licence with terms attached. And your own music carries no conditions at all — which, if you are a musician reading this, is the entire point. Our guide to whether AI music videos are allowed on YouTube and TikTok covers the adjacent question of what the platforms make of generated visuals.
Frequently asked questions
What is the easiest way to add music to a video?
On a phone, the editor that came with it — iMovie or Clips on iOS, Google Photos on Android — because the audio is already on the device and nothing has to be transferred. On a desktop, CapCut and DaVinci Resolve are both free and both let you drag an audio file straight onto a timeline. There is no meaningful quality difference between them for a single music bed.
What audio format should I use?
WAV if you have it, because it is uncompressed, so your editor encodes once on export and not twice. A 256kbps or 320kbps MP3 is fine in practice. Whatever you start from, export the finished video as MP4 with AAC audio — that is the pairing every platform accepts without conversion.
How do I get the music in sync with the video?
Cut the picture to the music; do not slide the music under the picture. Find the first strong downbeat in the waveform, place your first visual change there, and edit outward from it. If your audio is an MP3, be aware the encoder adds a short pad of silence at the start of the file, so a beat you measured in another program may sit a few milliseconds later once imported.
Can I use any song I want in my video?
Not if you plan to post it. YouTube's Content ID system matches uploads against reference files supplied by rights holders, and the owner's chosen policy decides whether your video is blocked, monetised for them, or just tracked. Instagram runs comparable matching of its own, where an unlicensed track typically ends up muted or the post restricted. Neither is a lawsuit — it is an automatic outcome applied to your upload.
Where can I get music I am allowed to use?
YouTube's own Audio Library, inside YouTube Studio, offers royalty-free production music and sound effects that are copyright-safe on the platform, with Creative Commons tracks requiring credit in your description. Beyond that, paid libraries sell a licence, and music you made yourself is the only source with no conditions attached at all.
Does adding music re-encode my video?
Yes. Once you mix a new audio track in, the editor writes a new file, so the picture is encoded again along with it. Export at a generous bitrate and export once — the quality cost of a single well-configured export is invisible, the cost of exporting, re-importing and exporting again three times is not.
Or start from the music instead.
Melodious goes the other way round: give it your track and it storyboards a video to fit, shot by shot, already timed to the song instead of laid over it afterwards.
Storyboard your song