The basic steps work the same way in most video editors
To add music to a video, you import an audio file into your editor, place it on the timeline below your video track, and adjust the volume so it sits behind dialogue or sound effects. Most editors let you drag the audio file directly onto the timeline, trim it to match your video length, and fade it in or out at the edges. The exact steps depend on which editor you use, but the principle is identical across all of them.
Before you start, make sure you have the music file saved on your computer in a common format like MP3, WAV, or M4A. If the music is on YouTube or another streaming site, you will need to download it first — many editors cannot pull audio directly from the web. Check the copyright status of any music you plan to use; royalty-free libraries like Pixabay Music, Freepik, and YouTube Audio Library let you use tracks without paying or asking permission, while other sources require a license.
Key Takeaways
- Import your audio file by dragging it onto the timeline or using the File menu, then position it below your video track.
- Trim the audio to match your video length by dragging the edges of the audio clip on the timeline.
- Use the volume slider or keyframes to fade music in at the start and out at the end, or to lower it when dialogue plays.
- Royalty-free music from YouTube Audio Library, Pixabay Music, or Freepik is safe to use without paying or seeking permission.
- Export your finished video in the format your platform needs — MP4 for most social media, MOV for some professional workflows.
How to import audio into your timeline
The import process differs slightly between editors. In DaVinci Resolve (free version available), go to File > Import > Audio and select your music file, or drag the file directly into the Media Pool on the left side. In Adobe Premiere Pro, use File > Import or drag the file into the Project panel. In CapCut (free, available on desktop and mobile), tap the plus icon, select Audio, and choose your file.
Once the audio appears in your project, drag it onto the timeline below your video track. Most editors stack audio underneath video so you can see both at once and adjust them independently. If your editor does not show separate tracks, look for a menu option to add an audio track or enable the timeline view. Position the audio so it starts where you want the music to begin — usually at the start of the video, but sometimes after an intro shot or title card.
Trimming audio to fit your video length
Your music file is probably longer or shorter than your video. To trim it, hover over the right edge of the audio clip on the timeline until a resize cursor appears, then drag left to shorten it or right to extend it. If the music is much longer than your video, you can also cut it in the middle: click where you want to split it, then delete the section you do not need.
If your music is shorter than your video, you have three choices. You can loop it by copying the clip and pasting it again right after the first one ends. You can fade it out before the video ends and add a different track. Or you can leave silence at the end, which is often the cleanest option for short videos. Test by playing the video and listening to where the music stops — if it feels abrupt, add a fade-out (see the next section).
Fading audio in and out
A fade makes music start quietly and build up, or fade away at the end instead of stopping suddenly. In most editors, right-click the audio clip and look for Fade In or Fade Out options. In DaVinci Resolve, click the clip and use the Inspector panel on the right to set fade times. In Premiere Pro, drag the small triangle at the top corner of the audio clip inward to create a fade. In CapCut, select the audio clip and tap the Fade option.
A typical fade-in lasts one to two seconds, and a fade-out lasts two to three seconds. Longer fades feel more professional but can eat into your music if your video is short. If you want the music to dip when someone is talking, use keyframes instead: click at the point where dialogue starts, lower the volume slider, then click again where dialogue ends and raise the volume back up. This takes practice but gives you precise control over when music plays loudly and when it steps back.
Adjusting volume so music does not overpower dialogue
If your video has dialogue or important sound effects, the music should sit underneath them, not compete with them. Find the volume slider for your audio track — usually a vertical line or percentage number you can click and drag. Lower the music to around 40 to 60 percent of full volume so viewers can still hear what people are saying. Test by playing the video with headphones or speakers and listening to whether you can understand the dialogue clearly.
If different parts of your video need different volumes, use keyframes to change the level at specific moments. For example, you might keep music at full volume during an intro, drop it to 50 percent when someone starts talking, then bring it back up after they finish. This is more work than a single volume level, but it sounds more polished. Most editors let you add keyframes by clicking a plus icon or pressing a keyboard shortcut while the timeline is playing.
Finding and using royalty-free music
YouTube Audio Library is the easiest source if you have a Google account — go to YouTube Studio, click Create, then select Audio Library. You can search by mood, instrument, or genre, download any track for free, and use it in videos you upload to YouTube or anywhere else. Pixabay Music and Freepik also offer free downloads with no restrictions. These libraries let you use music without paying or crediting the artist, though some artists appreciate a credit in your video description.
If you want more options, Epidemic Sound and Artlist charge a monthly subscription (around $10 to $15 per month) and give you access to thousands of tracks. Paid music sites often have higher-quality recordings and more variety, but free libraries have enough for most projects. Always check the license before downloading — some sites require you to credit the artist even if the music is free, and some restrict commercial use. Read the terms once and you will know what you can do with each site.
Exporting your video with the music included
When you export, your editor combines the video and audio into a single file. Go to File > Export or File > Render, choose your format (MP4 is standard for most uses), and select a location to save. Make sure the audio is not muted in your export settings — some editors have a checkbox that can accidentally silence your music. In DaVinci Resolve, check that the audio track is enabled in the timeline before exporting. In Premiere Pro, go to File > Export > Media and confirm the audio output is set to your speakers or a stereo mix.
The export process takes time depending on your video length and computer speed. A five-minute video might take 10 to 30 minutes to export. Once it finishes, play the file on your computer to confirm the music is there and at the right volume. If something sounds wrong, go back to your editor, make the change, and export again — do not try to edit the exported file directly, as that usually degrades quality.
Frequently Asked Questions
Can I use music from Spotify or Apple Music in my video?
No. Streaming services own the rights to their music and do not allow downloads for video use. If you download music from these services, you are breaking their terms of service. Use royalty-free libraries instead, which are designed for video creators and are completely legal.
What if the music I want is on YouTube?
You can download it using a third-party tool, but check whether the video allows downloads. If the creator has disabled downloads, using the music anyway may violate copyright. Stick to YouTube Audio Library or other sources that explicitly permit reuse.
How do I know if music is royalty-free?
Royalty-free means you can use it without paying per use or asking permission each time. Read the license on the download page — it will say whether you can use it commercially, whether you must credit the artist, and whether you can modify it. Most royalty-free sites make this clear before you download.
Why does my music sound out of sync with the video?
This usually happens if your video and audio have different frame rates or if you trimmed the audio incorrectly. Try deleting the audio, re-importing it, and placing it at the exact start of your video. If it still feels off, your editor may have a sync tool — check the Tools menu or right-click the audio clip.
Can I add multiple music tracks to one video?
Yes. Most editors let you add as many audio tracks as you need. Drag a second music file onto a new track below the first one, trim and fade it as needed, and adjust the volume so both tracks blend together. This is useful for transitions — fade out the first song while fading in the second one.