Quick fix, tested

Turn a subtitle file into a clean transcript

Updated Tested November 20, 20264 real files, 14 edge cases4 methods, one scorer

A cluttered subtitle file with cue numbers and timestamps turning through a glowing arrow into a clean sheet of plain text.

Short answer

Open your SRT or VTT in the free Koldflux subtitle to transcript tool and copy the text: it removes the cue numbers, timestamps and formatting tags and gives you one line per cue (a 76-cue SRT has 152 such lines that are not words). On four real subtitle files from two films, one of them a VTT made from one of the SRTs, its text matched our reference word for word. Before you paste it anywhere, check three leftovers: phrases repeated by auto captions, codes like & in VTT files, and any cue the tool says it skipped.

Subtitle to transcript (SRT or VTT to plain text)

Key takeaways

  • The Koldflux tool was word-exact on all 4 real files (110, 121 and 334 words) and on 10 of 14 deliberately awkward test files.
  • ffmpeg text export joins cue lines with no space ("Thom.Look"), so only 58% to 64% of words came through intact on real files.
  • A common sed one-liner was exact on the real files but deleted cues that are only a number (1984, 42) and kept every <i> and {\an8} tag.
  • Three things to check by eye: auto-caption repeats, VTT codes such as &amp; and &nbsp;, and any warning about a skipped or broken cue.
  • For offline batches, the 38-line Python cleaner from the test handles all 14 edge cases, including repeats and VTT codes.

Clean the file in four steps

You need the subtitle file itself: an .srt or a .vtt. The tool page says the file stays on your device and nothing is uploaded; it accepts files up to 5 MB, which is far more than a feature film needs.

  1. Open the subtitle to transcript tool and choose your .srt or .vtt file, or paste the subtitle text into the first box.
  2. Read the line under the box. It says how many cues it read, for example "76 cues read" for the Tears of Steel file. A number far below what you expect means the file has a problem.
  3. Look for a warning. The tool flags cues it skipped and blocks with unexpected lines; each one is a spot to check in the output.
  4. Press the Download button for the .txt, or copy the text from the output box. You get one line per cue, with numbers, timestamps and tags gone.

For a tidy file, that is the whole job. The rest of this page covers the cases where you should read the result once before you use it.

The Koldflux subtitle to transcript tool with the Tears of Steel SRT file loaded: the input box shows cue numbers and timestamps, the line below says 76 cues read, and the output box shows clean dialogue lines such as You are a jerk, Thom
The Tears of Steel SRT in the tool: 76 cues in, 76 clean lines out, 334 words, all matching the reference.

What 18 test files showed

You probably have one file and little time, so here is the short version of the test. Four real subtitle files from two Blender open movies, Sintel and Tears of Steel, went through four methods. So did 14 small files written by hand, each built around one thing that breaks transcripts, with the right answer written down first.

Every output was compared word by word with the expected text. A file counts as exact only when every word is there, in order, with nothing extra and no timestamp, tag or code left over.

Exact files and leftovers by method
MethodReal files exactEdge cases exactTimestamps leftTags leftCodes left
Koldflux subtitle to transcript4 of 410 of 14204
sed one-liner4 of 45 of 143204
ffmpeg -c:s text0 of 45 of 14010
clean_subs.py (our reference)reference14 of 14000

The tool handled the cases that trip up quick scripts: a byte order mark and Windows line endings, two-line cues, <i> and <font> tags, {\an8} position codes, WebVTT NOTE and STYLE blocks, voice tags, word-level timings and cues that hold only a number. The four edge cases it missed are the three checks in the next section.

Bar chart of word-exact transcripts by method. On 4 real subtitle files: Koldflux tool 4 of 4, sed one-liner 4 of 4, ffmpeg text export 0 of 4. On 14 known-answer edge cases: Koldflux tool 10 of 14, sed one-liner 5 of 14, ffmpeg 5 of 14
Same files, same scorer. The tool leads on the hard cases; no ffmpeg export of a real file was exact.

What should you check before you paste?

Each of these showed up in the test. None of them appeared in the four real files, but you will meet them in auto captions and in files that were edited by hand.

  • Repeated phrases from auto captions. Some automatic and live captions roll up: each cue repeats the last line of the one before and adds a new line. Our test file came out as "so the first thing / so the first thing you want to check / you want to check is the audio level", 8 extra words in a 12-word sentence. Delete the repeated half lines, or run the Python cleaner below, which drops them.
  • Codes such as &amp; in VTT files. WebVTT stores a few characters as HTML character references, so "Tom & Jerry" can sit in the file as "Tom &amp; Jerry". The tool leaves those codes as they are. Search and replace &amp; with &, &lt; with <, &gt; with > and &nbsp; with a space.
  • Warnings about skipped or broken cues. A cue whose end time is not after its start time is skipped, with a warning naming its time; copy its text across from the file by hand. A missing blank line between two cues leaves the next cue number and timestamp in the text ("2 00:00:03,000 --> 00:00:04,000"), and the tool warns about that too. Delete the stray line, or add the blank line in the file and run it again.

Speaker names are worth a thought as well. In a VTT file they often sit in voice tags such as <v Anna>, and the tool removes them with the other tags, so "Did you hear that?" loses the name Anna. If you need names, add them back while you read through, or keep the VTT open next to the text.

Sound descriptions such as [door slams] and (SIGHS) stay in, because they are cue text. If you want dialogue only, delete anything in square brackets, plus words in round brackets that are written in capitals.

Why not use a one-line command?

Two shortcuts are tempting when you already have a terminal open. Both failed in ways that are easy to miss when you only skim the output.

ffmpeg can export subtitle text with the command below. It keeps the words but writes each cue straight after the previous one with no space or line break between them, so "Thom." and "Look" become "Thom.Look". Word by word, only 58.1% of the Tears of Steel text and 59.1% to 63.6% of the Sintel text came out intact.

# ffmpeg text export: words survive, gaps between cues do not
ffmpeg -i film.srt -map 0:s:0 -c:s text -f data film.txt

# a common sed one-liner: drops number lines, timestamps and the WEBVTT header
sed -e 's/\r$//' -e '/^[0-9]*$/d' -e '/-->/d' -e '/^WEBVTT/d' film.srt > film.txt
The two shortcuts as tested, with GNU sed 4.9 and ffmpeg 6.1.1.

The sed line was exact on the real files, which makes it look safe. It deletes every line that is only digits, though, because that is how it finds cue numbers. A cue that says "1984" or "42" vanished with them, and 40% of that test sentence went missing without a warning.

It also keeps formatting. SubRip files can carry HTML-style tags for bold, italic, underline and color, and position codes such as {\an8}. The sed line left 20 tag fragments across the edge cases, and on a file with word-level timings it returned nothing usable at all.

Do a whole folder offline with Python

If you have many files, or you cannot use a browser tool, the cleaner written for this test is free to use. It is 38 lines of plain Python 3 with no extra packages. It removes numbers, timestamps, tags, position codes and WebVTT blocks, decodes VTT codes such as &amp; and drops roll-up repeats.

One limit to know: to catch roll-up captions it drops the first line of a two-line cue when that line repeats the last line of the cue before. A film where a character really says the same line twice across two cues, in that exact layout, would lose one copy. Ordinary repeats in separate one-line cues, such as the "Whoaaa!" in Tears of Steel, are kept.

python3 clean_subs.py film.srt > film.txt

# every .srt and .vtt in the current folder
for f in *.srt *.vtt; do [ -e "$f" ] && python3 clean_subs.py "$f" > "$f.txt"; done   # film.srt.txt and film.vtt.txt, so a same-named pair never overwrites itself
Writes one line per cue. Download clean_subs.py from the sources list.

How we checked, and the limits

The real files were the English and German SRT files of Sintel and the English SRT of Tears of Steel, all CC BY 3.0 from the Blender Foundation, plus a VTT made from the Tears of Steel SRT with ffmpeg. Their SHA-256 hashes are in the log. The 14 edge cases were written by hand with the expected text decided before any method ran.

The Koldflux tool ran on koldflux.com in headless Chromium: each file was chosen through the file input and the downloaded text was read back, together with any warning. The expected text for the real files came from our Python cleaner. Two controls show the scoring is fair: the cleaner got all 14 hand-written answers right, and removing a single word from the Tears of Steel text dropped its score to 99.7%.

What this does not show: the files are short films with tidy subtitles, so speed on a three-hour file and behavior on badly broken files were not measured. Translation, speaker labels and punctuation repair are separate jobs.

Do it in your browser

Free Koldflux tools, no account needed.

Subtitle to transcript (SRT or VTT to plain text)Subtitle stats (cue count, timing range)Convert SRT to VTT

Questions people ask

How do I convert SRT to TXT?

Open the file in the Koldflux subtitle to transcript tool and download the .txt. It removes cue numbers, timestamps and tags and keeps one line per cue. It was word-exact on all four real files in our test.

Does it work with VTT files from YouTube or a captioning tool?

Yes, it reads .vtt as well as .srt. Check two things in VTT output: codes such as &amp; that need replacing, and lines that repeat because the captions were written in roll-up style.

Can I keep the timestamps?

Not in this tool; its job is to remove them. If you need times next to the text, keep the SRT, or use the subtitle stats tool to see the cue count and timing range first.

Why does my transcript have words stuck together?

That is what ffmpeg text export does: it writes cues with no space between them, so "Thom." and "Look" become "Thom.Look". Use the browser tool or the Python cleaner instead.

Why is a number missing from my transcript?

A sed or grep command that deletes number-only lines also deletes cues that are only a number, such as "1984". The Koldflux tool keeps them, because it reads the file cue by cue.

Related

More guides on this topic

Sources and how we checked

  1. Koldflux subtitle to transcript (our own tool, run November 20, 2026) (checked 2026-11-20)
  2. Koldflux test log: 4 real files, 14 edge cases, 4 methods, controls (our measurement, November 20, 2026) (checked 2026-11-20)
  3. How to rerun every test (Koldflux, shell script with the edge cases and the Playwright run) (checked 2026-11-20)
  4. clean_subs.py, the offline cleaner and test reference (Koldflux, Python 3) (checked 2026-11-20)
  5. W3C: WebVTT, the Web Video Text Tracks Format (checked 2026-11-20)
  6. Library of Congress: SubRip Subtitle format description (checked 2026-11-20)
  7. FFmpeg codecs documentation: subtitle encoders (checked 2026-11-20)
  8. Sintel subtitles, Blender Foundation, CC BY 3.0 (test files) (checked 2026-11-20)
  9. Tears of Steel subtitles, Blender Foundation, CC BY 3.0 (test file) (checked 2026-11-20)

We used four real subtitle files: the English and German SRT of Sintel and the English SRT of Tears of Steel (CC BY 3.0, Blender Foundation), plus a VTT made from the Tears of Steel SRT with ffmpeg. We also wrote 14 edge-case files by hand, each with its expected text set down first: byte order mark with CRLF, two-line cues, HTML tags, ASS position codes, WebVTT NOTE and STYLE blocks with cue ids and settings, voice tags, character references, roll-up captions, word-level timings, a zero-duration cue, a missing blank line, dialogue dashes, number-only cues and sound descriptions. Four methods ran on every file: the Koldflux subtitle to transcript tool on koldflux.com in headless Chromium (file input, downloaded text and warnings read back), ffmpeg 6.1.1 with -c:s text, a GNU sed 4.9 one-liner and our Python 3.12 cleaner, which also served as the reference for the real files. Outputs were scored word by word (sequence match recall and extra words) and searched for leftover timestamps, tags and character references. Controls: the cleaner matched 14 of 14 known answers; deleting one word scored 99.7%; identical text scored 100%. The WebVTT specification and the Library of Congress SubRip description were read on November 20, 2026. YouTube is a name of its owner; Koldflux is not affiliated with or endorsed by it.