Your phone split a long recording into several parts. A webinar was recorded in three sessions. A client wants an intro clip, the main video and a closing card as one file they can upload. Joining clips end to end sounds like the simplest edit imaginable, and sometimes it is: identical clips can be glued together in seconds without any quality loss.
Other times, the joined file has a frozen picture halfway, audio drifting out of sync, or an error message. The difference lies in whether the clips truly match. This guide explains what "matching" means, how lossless joining works, what happens when clips differ, and how to merge videos in the browser, in desktop apps and with ffmpeg.
When clips can be joined losslessly
A lossless join (often called concatenation with stream copy) writes the compressed frames of each clip one after another into a new container. Nothing is decoded. For that to work, every clip must share:
- the same video codec (for example all H.264) and profile;
- the same resolution, such as 1920×1080;
- the same audio codec, sample rate and channel layout;
- ideally the same frame rate and encoder settings.
Clips recorded back to back on the same phone with the same settings usually meet all of these. Clips from different devices almost never do: a phone clip at 1080p60 HEVC, a webcam clip at 720p30 H.264 and a screen recording at 2560×1440 have nothing in common.
What re-encoding does to mismatched clips
When clips differ, each one has to be decoded and brought to common parameters before encoding a single output:
- Resolution: each clip is scaled to fit a chosen frame. If the shape differs (a vertical phone clip in a landscape video), black bars fill the gap. This is called letterboxing or pillarboxing.
- Frame rate: frames are duplicated or dropped so every clip plays at the same rate, for example 30 fps.
- Audio: everything is resampled to one sample rate and channel layout. Clips without sound get silence so that later clips do not slide out of sync.
This takes time and costs a little quality, but it produces a file that plays smoothly from start to finish.
Merge clips with our tool
The Merge Videos tool makes this decision for you and runs in your browser.
- Open Merge Videos and drop two or more clips onto the box. MP4, MOV and WebM are all fine. You can add more clips later with Add more clips.
- Put the clips in order with the up and down arrows; remove any mistakes with the X button. They are joined in the order shown.
- Leave Always re-encode off. The tool reads every clip, and if they share the same codec (H.264 or HEVC with AAC or MP3 audio) and size, it joins them losslessly.
- Set the options used when re-encoding is needed: Output size (when re-encoding) can match the first clip, or be 1080p, 720p or 480p; Frame rate (when re-encoding) can be 24, 25, 30 or 60 fps.
- Click Merge videos. The note on the result tells you whether the clips were joined with a stream copy or re-encoded to a common size and frame rate.
- Preview and download
merged.mp4.
Turn Always re-encode on if a lossless join produces a file that stutters or glitches at the joins, which can happen when clips look identical but were encoded with different settings.
Keep expectations realistic for the re-encode path: the engine is single-threaded WebAssembly, and every clip has to be held in browser memory at the same time. The tool shows a warning once the combined size passes about 500 MB. For long, multi-gigabyte projects, a desktop editor or ffmpeg is the better choice.
Other ways to merge videos
Windows
Clipchamp (and the Photos app's video editor on some Windows versions) lets you drag clips onto a timeline and export one MP4. It always re-encodes, which is fine for mixed sources.
macOS and iPhone
In QuickTime Player, open the first clip and choose Edit → Add Clip to End, then export. iMovie on Mac and iPhone offers full timeline editing and transitions.
ffmpeg: lossless concat
Create a text file called list.txt:
file 'part1.mp4'
file 'part2.mp4'
file 'part3.mp4'
Then run:
ffmpeg -f concat -safe 0 -i list.txt -c copy -movflags +faststart merged.mp4
This only works reliably when the clips match, as described above.
ffmpeg: re-encode mismatched clips
For two clips with different sizes, scale and pad each to 1280×720 at 30 fps, then concatenate:
ffmpeg -i a.mp4 -i b.mp4 -filter_complex "[0:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fps=30[v0];[1:v]scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2,setsar=1,fps=30[v1];[0:a]aresample=48000[a0];[1:a]aresample=48000[a1];[v0][a0][v1][a1]concat=n=2:v=1:a=1[v][a]" -map "[v]" -map "[a]" -c:v libx264 -crf 21 -c:a aac -b:a 160k merged.mp4
It is long, but it is exactly what the browser tool does on your behalf.
Tips and troubleshooting
Prepare clips first
Cut unwanted beginnings and endings with Trim Video before merging; the fast mode keeps clips lossless and compatible with each other. If one clip is sideways, fix it with Rotate Video first. The guide on cutting video without re-encoding explains the trade-offs.
Mixed orientations
Joining vertical and horizontal clips into one frame always leaves bars somewhere. Decide on the output shape first; if everything should be vertical, crop the landscape clips with Crop Video beforehand.
Audio drift after a lossless join
If sound slowly drifts out of sync, the clips had slightly different audio settings or timestamps. Merge again with Always re-encode on.
The merged file is too big
Merging adds sizes together. Run the result through Compress Video if it must fit an upload limit.
Frequently asked questions
Can I merge videos without losing quality?
Yes, when all clips share the same codec, resolution and audio format; the frames are then copied unchanged. Mixed clips have to be re-encoded, which costs a little quality.
Why do my merged clips have black bars?
The clips had different shapes, so each was scaled to fit a common frame and padded. Crop or choose the output size to match the majority of your clips.
Which frame rate should I choose?
Use the rate most of your clips were recorded at. Phones commonly record at 30 fps, while cameras set up for PAL-based regions often use 25 fps. Choose 60 fps only if your sources are 60 fps.
What happens to clips without sound?
The tool inserts silence for their duration, so the audio of later clips stays aligned with their pictures.
How many clips can I merge?
There is no fixed number, but all clips must fit in browser memory together. For many large files, use a desktop editor or the ffmpeg concat method.