Convert TS to MP4 in your browser

Join and convert .ts video files without uploading them. m3u8.cloud repackages the video as MP4 on your own device, so it's quick and private.

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.

How to convert TS to MP4

  1. Drop your .ts files. Drag the files, or the folder that holds them, onto the box above. You can also use the buttons to choose files or a folder.
  2. Check the order. Numbered pieces, such as 1.ts, 2.ts and so on, are sorted by number. Make sure the list starts and ends where you expect.
  3. Convert. Press Convert to MP4. Your browser copies the video and audio into a new MP4 file.
  4. Save. In Chrome and Edge on a computer, the file is written straight to disk as it converts. In other browsers, a Save file button appears when the file is ready.

TS vs MP4

TS (MPEG transport stream) is built for broadcasting and live streaming, which is why HLS streams often arrive as hundreds of small .ts pieces. MP4 is built for saving and sharing. Both are containers: wrappers that hold the video and audio, which are compressed separately with a codec such as H.264.

TSMP4
ContainerMPEG transport stream: a long run of small, self-contained packets with no indexMPEG-4 Part 14: one file with an index that says where everything is
Where it is usedBroadcast TV and live streaming, including the pieces of many HLS streamsSaving, sharing, editing and uploading video
SeekingSlow or imprecise, because players have to search the fileFast, because the index tells the player where each moment is
File sizeA little larger, because the packets repeat small headers throughoutA little smaller for the same video and audio
CompatibilityPlays in VLC and many media players, but some phones, editors and websites won't accept itPlays almost everywhere: phones, computers, TVs, editors and websites

Why no quality is lost

The tool remuxes the video. Remuxing means taking the compressed video and audio out of one container and putting them, unchanged, into another. Nothing is re-encoded, so the picture and sound are identical to the original, and it is much faster than re-encoding.

If you use the command line, this is the same thing ffmpeg does with stream copy:

ffmpeg -i input.ts -c copy output.mp4

The guide to saving streams with ffmpeg explains more of its options.

Limits

  • Codecs. Because the video and audio are copied as they are, they must use codecs MP4 supports, such as H.264 or H.265 video and AAC or MP3 audio. Most streaming .ts files use H.264 and AAC. Files with other codecs need re-encoding with a desktop tool such as ffmpeg.
  • Playback of H.265. An MP4 with H.265 (HEVC) video is a valid file, but whether it plays depends on your browser and device.
  • Very large files. In Chrome and Edge on a computer, the file is written straight to disk. Other browsers build the whole file in memory first, so very large files need enough free memory. On a phone, very long videos are better converted on a computer.
  • Encrypted pieces. Pieces saved from an encrypted stream can't be converted. m3u8.cloud never decrypts.

Your files stay on your device

Your browser reads the .ts files and builds the MP4 on your device. The files are never uploaded, and m3u8.cloud never sees them. The privacy policy has the details.

Have a stream link rather than files? Paste it on the home page to save it as MP4 directly. To join pieces without converting them, use Merge TS files.

Questions

Does converting TS to MP4 lower the quality?

No. The picture and sound are copied exactly; only the container around them changes. That's also why it's fast.

Are my files uploaded?

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

Is there a size limit?

In Chrome and Edge on a computer, the MP4 is written straight to disk, so the main limit is your free disk space. Other browsers build the file in memory, so a very large conversion can fail if your device runs out of memory.

Does it work on a phone?

Yes, in a mobile browser. Phones have less memory than computers, so very long videos are better converted on a computer.

Why won't my converted MP4 play?

Check the codecs. MP4 files with H.265 (HEVC) video don't play in every browser or on every device. If the file plays in VLC, the conversion worked and the player is the problem.