M3U8 Lab

TS to MP4

Join a folder of .ts segments into one MP4 without re-encoding. Queued by filename, remuxed in your browser, nothing uploaded.

Files
-
Input
-
Packets
-

Show the queue

    Nothing is uploaded. Files are read in your browser and never sent anywhere — there is no upload step and no copy on our server.

    Instant playback

    Live and VOD HLS streams open right in the tab.

    Browser-local privacy

    No upload, no proxy server, no account needed.

    Live telemetry

    Inspect resolution, buffer health, bitrate and segments.

    Diagram of HLS playlist segments streaming from a server into a browser video player

    Built for real HLS & m3u8 streams

    • Adaptive bitrate & live windows

      Switches cleanly across master playlist renditions via hls.js or native Safari HLS.

    • Clear diagnostics when links fail

      Separates CORS blocks, expired segments, encryption tags and unsupported codecs.

    • End-to-end playlist toolkit

      Move seamlessly from playback to playlist inspection, editing or lossless MP4 remuxing.

    Private by architecture, local by default

    • Zero server uploads

      Playlist URLs, local .ts chunks and MP4 files stay inside your browser memory.

    • Fast lossless remuxing

      Re-wraps H.264 and AAC tracks directly without slow server queues or re-encoding.

    • No install, no sign-up

      Works across desktop and mobile browsers whenever you need to test or verify a stream.

    Illustration of browser-local video playback protected by a privacy shield with zero uploads

    Three-step workflow

    1. 1

      Paste a link or drop files

      Use an .m3u8 URL, a direct .mp4 address, or local .ts segments from your device.

    2. 2

      Play or inspect telemetry

      Check resolution, buffer seconds, bitrate switching, or list every segment and tag.

    3. 3

      Remux or export cleanly

      Join segments into a playable MP4 or clean and export your .m3u8 playlist locally.

    Three-step visual workflow from playlist link to browser player to finished MP4 video

    What you are holding

    A .ts file is an MPEG transport stream. It is the format HLS uses on the wire, and it is what a browser writes to disk — or what a capture tool leaves behind — when a stream is saved segment by segment.

    It plays in VLC and in almost nothing else. That is not a defect. A transport stream is built for delivery: fixed 188-byte packets, a program association table, timestamps that survive a lost packet. Desktop players understand that container; phones, browsers and editors generally do not. The file is fine, and it is also the wrong container for keeping anything.

    This tool re-wraps the segments into one MP4 so the file opens where you actually want to open it.

    Why a folder, and not a link

    Because this page only takes files you already have. There is no address field on purpose: the m3u8 to MP4 converter is the one that accepts a playlist address, and keeping the two separate stops either from being a worse version of the other.

    There is a practical argument too. When segments are saved locally, the most common failures of the link route disappear: no cross-origin refusal, no expiring token, no half-downloaded list. The bytes are on your disk, and the tool reads them directly.

    Filename order is the whole job

    The player does not know the correct order. It sorts what you select by name, and the queue panel shows the exact order it will use. Open it before building and check the first few names and the last few.

    Three naming patterns turn up again and again, and each sorts differently:

    • No padding — seg-1.ts, seg-2.ts, seg-10.ts. Plain alphabetical sorting puts ten before two, and the result plays as a shuffle. The tool sorts numerically, so seg-2 lands before seg-10.
    • Leading zeros — seg-00001.ts, seg-00002.ts. Alphabetical and numeric order agree, so nothing can go wrong here. This is the easy case.
    • Date or time prefix — 20261126-001.ts, 20261127-001.ts. The prefix comes first, so files from two days land in two blocks, each with its own counter. If the two blocks are one recording, that is the right order; if they are two recordings, build them separately. Look at the queue where the date changes.

    If a series is mixed — two recordings in one folder, say — select them as two separate runs and join the outputs afterwards; a single build with mixed material produces a file that plays, but not in any order that makes sense.

    Remux, not re-encode

    The segments carry H.264 video and AAC audio; an MP4 holds the same two tracks in a different shell, so the tool copies the packets across instead of decoding them. That is why it takes seconds and why the output has exactly the source quality. The full explanation, including why HEVC and AC-3 / E-AC-3 cannot be carried and what the memory ceiling means, is on the m3u8 to MP4 page. Here, two readouts matter: Packets should be dense with 188-byte sync bytes (a count near zero means the files are not really TS and are copied through unchanged), and Files and Input tell you how close you are to the roughly 400 MB desktop limit.

    What a missing segment looks like

    A hole in the numbering shows up as a jump, not as an error. At that moment the picture and sound skip ahead by about one segment length — usually a few seconds — sometimes with a brief freeze or a click in the audio. If the jump comes at the same place every time you play the result, go back to the queue and look for the missing number: seg-0041.ts followed by seg-0043.ts means seg-0042.ts never made it to the folder.

    A corrupt segment behaves differently: it tends to stop the build or leave a stretch of garbled picture, and removing that one file and rebuilding is the fix.

    Check the length after joining

    A file that plays is not necessarily a complete file. Multiply the number of segments by the segment length: 360 segments of 10 seconds should come to about an hour. Then open the finished MP4 in the MP4 player and compare its Length with that figure. A result that is a few segments short points at missing files; one that is far shorter points at a broken download or a build that stopped early. Duration metadata can also read as unknown until the file has been played through once, so play to the end before deciding.

    What to expect when it stops

    • Memory ceiling. Input passed 400 MB on desktop, or far less on a phone. Split the set and join the pieces.
    • Unsupported codec. HEVC or AC-3/E-AC-3: no output, or output with silent audio.
    • Not really transport stream. The first byte is not 0x47, so the file was copied, not remuxed.
    • A single unreadable file. One corrupt segment can sink a batch; remove it and rebuild.

    When another tool is the right one

    If the segments are still on a server and you have a playlist address, use the m3u8 to MP4 converter — it fetches and remuxes in one step, and tells you when cross-origin policy blocks it. If you only want to watch the stream, the m3u8 player needs nothing saved at all. If you want to know what is inside the playlist before deciding, read it first with the playlist reader.

    What this tool will not do

    It does not download, does not decrypt, does not repair a broken stream, does not re-encode, and does not touch anything you did not select. Every byte it processes is already on your machine, and it leaves no copy anywhere: the result goes straight to your download folder from browser memory, and closing the tab clears the rest.

    Rights holders can reach us through the notice procedure.

    Questions

    Is the output played back at the same quality?

    Yes. The video and audio packets are copied, not decoded and re-compressed, so the output matches the source exactly. What cannot change is the container: HEVC video and AC-3 or E-AC-3 audio cannot be carried into a standard MP4 without a real re-encode, which this tool does not do.

    The segments are numbered without leading zeros and the order looks wrong. What now?

    The tool sorts numerically, so seg-2 comes before seg-10 rather than after it. If a folder holds two separate recordings, build them in two runs and join the results afterwards, because a single run has no way to know where one recording ends and the next begins.

    How many files can it take at once?

    As many as fit under roughly 400 MB of input on a desktop browser. The limit is memory, not file count: a hundred small segments are fine, while twenty large ones may not be. Phones handle about a quarter of that budget.

    The result opens but has no sound.

    Almost always AC-3 or E-AC-3 audio, which cannot be carried into MP4 by remuxing. A desktop tool with FFmpeg can convert the audio track and then the two can be joined. There is no browser-side fix for this today.

    The result will not open in my editor.

    The output is fragmented MP4. VLC, Chrome, Firefox and QuickTime open it, but some editors only accept classic MP4. Playing the file through once, or remuxing it again in a desktop tool, usually fixes that.

    Do the files get uploaded?

    No. They are read with the browser's file API, remuxed in memory and downloaded straight back to you. There is no upload step, no queue on a server and no copy of your material anywhere but your own device.

    Can it join segments from different streams?

    It will produce a file, but the joins will be visible: timestamps come from the source and two streams rarely agree on them. Material from one continuous recording joins cleanly; material from different sources needs a real editor.

    Ready to test your stream?

    Paste an .m3u8 link or drop local segments directly in your browser.