Merge Audio Files

Published Updated

Join MP3, WAV and M4A files into one MP3 at 128 kbps in the order you drag them into, up to 3 hours in total. Files are joined back to back with no gap or fade, and a mono file is copied to both channels when the others are stereo.

What the merge does to the audio

A test with three generated WAV files, replaying the page's own steps in Google Chrome 156:

FileOriginalDecoded by the browserIn the merge
122.05 kHz, mono, 2 s48 kHz, mono48 kHz, stereo, 96,000 frames
244.1 kHz, stereo, 3 s48 kHz, stereo48 kHz, stereo
38 kHz, mono, 1 s48 kHz, mono48 kHz, stereo

The total came to 288,000 frames, which is 6 seconds, so no length is added or lost at the joins.

Why decoded files all share one rate

MDN's decodeAudioData reference says the decoded audio is resampled to the sampling rate of the audio context. That is why the list shows one rate for different sources, and why the highest-rate rule matters little in the browser tested.

Join points in the merged file

Measured with the page's own code in Google Chrome 157, Firefox 155 and Playwright's WebKit build (not the Safari app), on three generated WAVs of 1 second each: a 440 Hz tone at 44.1 kHz stereo, an 880 Hz tone at 22.05 kHz mono and a 300 Hz tone at 8 kHz mono, added in that order. The Web Audio standard says decodeAudioData resamples the decoded audio to the sample rate of the context when the two differ, and all three browsers listed every file as 48.0kHz.

BrowserResult lineMP3 and decoded lengthTone changes atSilent 10 ms windows
Chrome 1570:03, 47.3 KB, 48.0kHz StereoMPEG-1, 48 kHz, 128 kbps, stereo, 126 frames, 48,384 bytes; decodes to 3.024 s1.02 s and 2.02 s2, at the start
Firefox 1550:03, 47.3 KB, 48.0kHz StereoThe same 126 frames and 48,384 bytes; decodes to 3.024 s1.02 s and 2.02 s2, at the start
The WebKit build0:03, 47.3 KB, 48.0kHz StereoThe same 126 frames and 48,384 bytes; decodes to 3.024 s1.01 s and 2.01 s1, at the start

The tone changes were found by counting zero crossings in 10 ms windows of the decoded MP3. No window between the tones was silent: the silent windows were the first 0.02 seconds in Chrome 157 and Firefox 155 and the first 0.01 seconds in the WebKit build. The left and right channels of the result were identical in every browser, including for the two mono files. With the list reversed, the result was the same length and the same 48,384 bytes, with the tone changes at the same times.

Longer merges and the time they take

Files addedResult lineMP3 and decoded lengthTime to merge: Chrome 157, Firefox 155, WebKit build
Five 1 s mono WAVs at 8, 22.05, 44.1, 48 and 96 kHz0:05, 78.8 KB, 48.0kHz MonoMPEG-1, 48 kHz, 128 kbps, mono, 210 frames, 80,640 bytes; decodes to 5.04 s0.13 s, 0.16 s, 0.12 s
Three 30 s 44.1 kHz stereo WAVs, 5.05 MB each1:30, 1.37 MB, 48.0kHz StereoMPEG-1, 48 kHz, 128 kbps, stereo, 3,751 frames, 1,440,384 bytes; decodes to 90.024 s2.55 s, 3.25 s, 1.90 s

Both rows came out with identical frame counts and byte counts in the three browsers; only the time differed.

Joining recordings

  1. Step 1

    Add the files

    MP3, WAV or M4A, several at once or one after another. Each shows its length, size, sample rate and channels.

  2. Step 2

    Drag to set the order

    The list is the play order. Remove any file with its button. A combined length above 3 hours is refused.

  3. Step 3

    Merge and download

    Progress counts the files. The result is one MP3, and its length and size are shown beside the download button.

Size and time

  • At 128 kbps one minute is about 960 KB.
  • The output is one MP3 whatever the inputs were, so keep the originals if you may need lossless audio later.
  • A 30-second stereo MP3 took about 1.4 seconds to encode in the test.
  • To remove pauses from the finished file, run it through Remove Silence from Audio.
  • To trim before joining, Audio Cutter cuts a file to a range.

Merging questions

Is there a gap or fade between files?

No. The files are placed end to end, in list order from top to bottom. In a test with 2, 3 and 1 second clips, the merged length was exactly 6 seconds. Add silence or a crossfade in an editor if you want one.

What if the files have different sample rates?

They are all converted to the highest one. In practice the browser has already resampled each file to its own audio rate while decoding, which MDN describes. A 22.05 kHz and an 8 kHz file both showed 48 kHz in Chrome 156.

What happens to mono files next to stereo ones?

The result is stereo, and a mono file is copied to both channels, which the test confirmed as identical left and right. If every file is mono, the MP3 is mono.

Can I keep the original quality?

Not if the inputs are lossless or high bitrate. The output is always an MP3 at 128 kbps, about 16 KB per second, so a 1-hour merge is near 58 MB.

Why was a file rejected?

The browser could not decode it. Damaged or unsupported files fail with a message asking you to check that they are valid MP3, WAV or M4A audio.

Does it upload my files?

No. Each file is decoded in the page, converted and encoded there, and the MP3 is built in memory.

Do the join points leave a gap?

Not in the test. For 440, 880 and 300 Hz tones of 1 second each, no 10 ms window between the tones was silent. The tone changed at 1.02 s and 2.02 s in Chrome 157 and Firefox 155, and at 1.01 s and 2.01 s in the WebKit build.

Why is the merged MP3 longer than the files added together?

Three 1 second files came out as 126 frames of 24 ms, which decodes to 3.024 seconds, and five 1 second files as 210 frames, 5.04 seconds, in Chrome 157, Firefox 155 and the WebKit build.

How long does a merge take?

Three 30 second stereo WAVs of 5.05 MB each merged into a 1:30, 1.37 MB MP3 in 2.55 seconds in Chrome 157, 3.25 seconds in Firefox 155 and 1.90 seconds in the WebKit build.

If one file is damaged, are the others kept?

No. When one WAV and one damaged file were added together, neither was listed: the page showed the message Couldn't read one or more of these files and the list stayed empty.

Related Tools