Skip to content

Srt To Txt API

POST https://api.findutils.com/api/tools/srt-to-txt/execute

Turn a SubRip (.srt) or WebVTT (.vtt) caption file into a plain-text transcript: cue numbers and timestamps are removed and the cue text is kept in order. join "blank_line" (default) puts each cue on its own paragraph; "paragraph" joins everything into one block of running text. HTML tags such as <i> and ASS override blocks such as {\an8} are stripped by default. The text is not summarized or rewritten.

Request body

application/json
  • input

    string required

    Caption file contents, either SubRip or WebVTT.

  • join

    string optional

    "blank_line" (default): one cue per paragraph. "paragraph": all cues in one block. One of blank_line · paragraph. Default "blank_line".

  • strip_html

    boolean optional

    Remove HTML-style tags such as <i> and <font>. Default: true. Default true.

  • strip_ass

    boolean optional

    Remove ASS/SSA override blocks such as {\an8}. Default: true. Default true.

Example arguments

Verified
{
  "input": "1\n00:00:01,000 --> 00:00:04,000\n<i>Good morning.</i>\n\n2\n00:00:05,500 --> 00:00:08,250\nTwo lines\nin one cue.\n"
}