Merge TS files into one video

Join many .ts pieces into one file, in the right order, without uploading them. Keep the result as one .ts file or convert it to MP4.

Drop .ts files or a folder here
Files never leave your device. Pieces named 1.ts, 2.ts and so on are joined in number order.

Why you might have many .ts pieces

HLS (HTTP Live Streaming) splits a video into short pieces, called segments, that are often a few seconds long each. An .m3u8 playlist lists them in order, and a player fetches them one after another. If a stream was saved with a tool that keeps every piece as its own file, or a recording was stored that way, you end up with a folder of hundreds of .ts files, such as segment_000.ts to segment_216.ts.

This tool joins those pieces back into one video. If you still have the stream's .m3u8 link, you can paste it on the home page instead, and m3u8.cloud downloads and joins the pieces in one go.

How to merge TS files

  1. Drop the pieces. Drag the .ts files, or the folder that holds them, onto the box above.
  2. Check the order. The pieces are sorted by the number in each file name. Move any that are out of place.
  3. Choose the output. Join into one .ts file, or convert to MP4 as you merge.
  4. Merge and save. In Chrome and Edge on a computer, the file is written straight to disk. In other browsers, a Save file button appears when it is ready.

How the order works

The tool sorts pieces by the number in the file name, not alphabetically. Alphabetical sorting would put segment_10.ts before segment_2.ts; sorting by number puts them in the order they play. Leading zeros, as in segment_002.ts, make no difference.

If your files are named differently, for example by date, check the list and move pieces into the right order before you merge. Also look for gaps in the numbering. A missing piece leaves a jump in the video at that point.

One .ts file or MP4

TS (MPEG transport stream) was designed so pieces can be placed end to end, so joining them into one .ts file keeps everything exactly as it was. The result plays in VLC and many media players.

MP4 is the better choice for phones, TVs, editors and websites, and it lets players jump to any point quickly. Converting to MP4 copies the video and audio into a new container without re-encoding, so no quality is lost. The TS to MP4 page explains the difference in more detail.

Limits

  • Same stream. Pieces should come from the same stream and quality. Mixing resolutions or codecs can cause glitches where they meet.
  • Codecs for MP4. To convert to MP4, the pieces must use codecs MP4 supports, such as H.264 or H.265 video and AAC or MP3 audio.
  • Memory. Browsers other than Chrome and Edge on a computer build the whole file in memory, so very large merges need enough free memory. Very long videos are better done on a computer than on a phone.
  • Encrypted pieces. Pieces from an encrypted stream can't be joined into a playable video. m3u8.cloud never decrypts.

Your files never leave your device. The privacy policy has the details.

Questions

In what order are the files joined?

By the number in each file name, so segment_2.ts comes before segment_10.ts. You can change the order in the list before you merge.

Should I save as .ts or MP4?

Choose MP4 if you want the video to play on phones, TVs and websites, or to edit it. Choose .ts if you want the pieces joined exactly as they are. Both keep the original quality.

Can I merge pieces from different videos?

It works best with pieces from the same stream and quality. Pieces with different resolutions or codecs can glitch or stop playing where they meet. To combine different videos cleanly, re-encode them with a desktop tool such as ffmpeg.

Are my files uploaded?

No. Your browser reads the pieces and builds the file on your device. Nothing is sent to m3u8.cloud.