Tool

MKV Subtitle Extractor: Pull SRT and ASS Out Without Uploading, Detect PGS

Use this when you want the subtitles inside an MKV as separate files but don't want to upload a multi-gigabyte video to a website. Pick a file and this browser finds the subtitle tracks. Text subtitles (SRT, ASS, WebVTT) can be saved right away. Picture-based subtitles (PGS, VobSub) are flagged as such, and the tool shows you the commands to extract them. The file never leaves this browser.

Drag an MKV file here or choose one

The file is only read inside this browser and is never sent to a server. Even a large file is not uploaded, so there is no upload to wait for.

How does it read the file?

MKV (Matroska) is built on EBML, a structure of “chunks with the size written up front.” The tool first reads the track list (Tracks) to see which tracks are subtitles and what codec they use. Subtitle data is interleaved in time order with video and audio inside the same Cluster elements, so unless there is a separate index telling you where it is, the file has to be scanned from start to end once. During that scan, video and audio blocks are skipped after reading only their headers, and only text subtitle blocks are collected in memory. For image subtitles, it only counts the blocks and their sizes. A file with no subtitle track at all is reported right away without being scanned.

MKV codec nameSubtitle typeWhat this tool does
S_TEXT/UTF8SRT (text)Saves as .srt
S_TEXT/ASS, S_TEXT/SSAASS·SSA (text + styling)Saves as .ass, or converts to .srt (styling removed)
S_TEXT/WEBVTTWebVTT (text)Saves as .vtt, or converts to .srt
S_HDMV/PGSBlu-ray picture subtitlesIdentification only, with a command to extract as .sup
S_VOBSUBDVD picture subtitlesIdentification only, with a command to extract as .idx/.sub

Picture subtitles hold bitmaps to overlay on the screen and carry no text information. That is why turning them into SRT is not a “conversion” but a separate job called optical character recognition (OCR). This tool does not do OCR. It is the same reason the container picker tells you PGS cannot be put into MP4.

How to use it

  1. When your player can't read the subtitles inside the MKV: A common approach is to save the text subtitles as .srt and put the file in the same folder as the video with the same base name. Naming rules differ between players, so check the documentation of the app you use.
  2. When non-English characters in a downloaded SRT show up garbled: The files this tool saves are UTF-8. If an older player doesn't recognize the encoding, try turning on the “UTF-8 BOM” checkbox, and if that still doesn't work, continue with the subtitle encoding fix tool.
  3. When subtitle timing is off from the video: The times of the extracted subtitles are exactly the values written in the MKV. If the drift comes from a frame-rate problem in the video, use the subtitle sync fixer, and if you need to shift many files at once, use the batch subtitle shift tool.
  4. When you want to move an MKV to MP4 and are worried about the subtitles: First check here whether the subtitles are text or pictures, then continue with the MKV to MP4 remux checker for the actual move. The structure of subtitle tracks inside a container is covered in the container lesson.
  5. When PGS or VobSub shows up: Use the commands the tool shows to extract a .sup or an .idx/.sub. PGS is a Blu-ray format, so saving it as .sup is the usual approach, and whether a player reads an external .sup depends on the app. OCR programs that convert it to text (for example, Subtitle Edit) are known, but this site has not measured their recognition accuracy.

Limitations

  • This parser was implemented by this site and has not been verified against MKV files made by many different authoring tools. If a result looks strange, extract the same track with mkvextract or ffmpeg and compare.
  • There is no index telling where the subtitles are, so a file that has subtitles must be read to the end. How long that takes depends on the file size and disk speed, and this site did not measure the time. There is a progress display and a cancel button.
  • Text subtitles are collected in memory, so a very large subtitle track uses more browser memory. Video and audio blocks are skipped without being read.
  • If a block has no display duration written in it and the track has no default duration either, that line is filled in with 2 seconds. The number of lines filled in this way is shown in the result, and their end times may not be accurate.
  • Blocks that pack several lines into one (lacing) are not read; only their count is reported. Encrypted tracks and tracks with compression other than zlib or header stripping cannot be unpacked either.
  • ASS to SRT conversion is a simple rule: it removes the styling tags inside curly braces and only changes line breaks. Screen position, fonts, color and italics are lost, and lines that draw shapes are left out. WebVTT positioning settings and CSS styles are not saved either.
  • Attached fonts, chapters, and audio and video tracks are not extracted. Streaming-style files that mix in clusters of unknown size, and damaged files, may be only partly read. WebM files open, but they usually have no subtitles.
  • The ffmpeg and mkvextract commands shown are examples, and this site did not run them and check the results. The track numbers are in the order this tool counted them, so they may differ from mkvmerge's identification numbers; check before you run.