About VTT to TXT
A WebVTT file can hold much more than captions: header metadata, comments, whole blocks of CSS, positioning for each cue, voice tags naming the speaker, styling classes, even a timestamp for every word. Courses, video platforms and download tools all produce these files, and very few of them make easy reading.
This page keeps the words and discards the rest. It also knows about rolling captions, which are what you get from a YouTube auto-caption file downloaded through a command-line tool: each cue repeats the previous line and adds a new one, so a naive extraction gives you every sentence twice.
The result is plain text you can read, search or quote, with speaker names kept if the file has them.
How it works
Parsing follows the WebVTT rules. Everything up to the first blank line is the header, so a Kind: captions line is not mistaken for speech. NOTE, STYLE and REGION blocks are skipped whole, even a NOTE that contains an old timing line someone commented out. A cue ends at its first empty line, as the format requires.
Inside a cue, <v Name> becomes Name: if you keep voices. Tags for classes, languages, ruby annotations and per-word timestamps are removed, and escaped characters such as & become & again. If at least four in ten cues repeat a line from the cue before, the text is treated as rolling captions and each line is output only once.
How to use VTT to TXT
- Press Select VTT file, or paste the contents into the box.
- Read the text on the right. The note below tells you which blocks were left out and whether rolling captions were collapsed.
- Under Options, change Layout, or turn off Keep speaker names if you only want the words.
- Finish with Download TXT or Copy.
A file with a header, a note, a style block and voice tags
WEBVTT
Kind: captions
Language: en
NOTE Edited by the captions team
STYLE
::cue { color: yellow }
00:00:01.000 --> 00:00:03.500 align:start position:10%
<v Noor>The library opens at nine.</v>
00:00:03.800 --> 00:00:06.000
<v Sam>Is the <i>reading room</i> open too?</v>
00:00:06.200 --> 00:00:08.000
<v Noor>Yes, Q&A starts at ten.</v>Noor: The library opens at nine.
Sam: Is the reading room open too?
Noor: Yes, Q&A starts at ten.& has become &, the italics are gone, and the voice tags are now visible names. Nothing from the header, the note or the style block reaches the text.
When it helps
- Getting a readable lecture transcript from a course that offers captions as a VTT download.
- Turning downloaded YouTube auto-captions into text without the doubled lines.
- Extracting a Microsoft Teams transcript that uses voice tags, keeping names in the result.
- Searching a long recording's captions for a topic before scrubbing through the video.
Tips for a better result
- With start times makes a useful index of a long recording, with each line opening on a time such as
[00:14:02]. - Rolling captions have no punctuation in most cases, so pass the result to Transcript Paragraph Formatter to split it into readable blocks.
- For a Zoom VTT, Zoom Transcript Cleaner is the better choice, since names there are typed into the text rather than stored as tags, and that page merges them into turns.
Good to know
- Comments in NOTE blocks are removed. If they hold information you need, read the original file.
- It does not separate sound descriptions such as
[applause]from speech. - Rolling caption detection can collapse lines that really were repeated when most of a file repeats, though ordinary captions are left alone.
- If a cue has a blank line in the middle of its text, only the part before that line is kept, as the WebVTT rules say.
Questions people ask
Why do some VTT files give me each sentence twice in other tools?
Auto-generated captions scroll: each cue shows the last line again along with a new one, to mimic live captions. A simple extraction keeps both. This page spots the pattern and outputs each line once, then mentions it under the result.
Can I get rid of the speaker names?
Yes, if they are voice tags: turn off Keep speaker names under Options. If names are typed into the text, as in Zoom files, use Remove Speaker Labels on the result.
My file has no WEBVTT line at the top. Will it work?
Yes. Players would reject a file without the header, but this page only needs timing lines to find the cues.
How is this different from SRT to TXT?
The two formats hide different things. A VTT has header blocks, voice tags and per-word timing to deal with, and this page has a switch for voices. An SRT has cue numbers, font tags and position codes, which SRT to TXT handles.
What to use next
- VTT to SRT: if you need to keep the timing and the player only takes SRT
- YouTube Transcript Cleaner: for paragraphs and tidied capitals from a YouTube caption file
- Transcript to Article: to shape the extracted text into a draft with headings
Learn more
Last reviewed . Read our editorial policy.