TXT to VTT
Create a WebVTT caption track for web video from a plain-text script.
- Runs in your browser
- No uploads
- No account
Loading your browser tool…
What TXT to VTT does
Web players, course platforms and the HTML5 <track> element want WebVTT. If you have the script but no caption file, this tool builds one: a WEBVTT header, cues split at sentence ends, lines wrapped to your limit, and times estimated from reading speed or a fixed duration.
Ampersands and angle brackets in the script are escaped so they display instead of being read as markup. The result is ready to attach to a video and fine-tune against the audio in the VTT Editor. Need SRT instead? Use TXT to SRT.
Example
Input
Q&A starts at 3 pm. Bring questions about exports.
Result
WEBVTT 00:00:00.000 --> 00:00:03.267 Q&A starts at 3 pm. Bring questions about exports.
Both sentences fit in one two-line caption. Its 49 characters at 15 per second give 3.267 seconds, and & is written as &.
How to use TXT to VTT
- Paste the script into Script text or choose Open file.
- Pick Timing and set Reading speed or Each caption. Use More options to start the first caption later, for example after a 5-second intro.
- Choose Download .vtt and attach the file as the video's caption track.
Good to know
- No cue IDs, positioning or styling are added. Add settings such as line:0 afterwards in the VTT Editor, or a STYLE block in a text editor.
- Captions follow each other with a fixed gap, 0.1 s by default, and don't allow for pauses in speech. Silent stretches still show text until you retime them.
- The header is a plain WEBVTT line with no title, Kind or Language lines. Some platforms ask for the caption language separately when you upload the file.
Questions about TXT to VTT
How do I make a VTT file for an HTML5 video?
Paste your script, download the .vtt, and reference it from a <track kind="captions" src="captions.vtt" srclang="en"> element inside the video tag. Serve the file from the same site as the page, or with CORS headers, or browsers won't load it.
Can I set when the first caption appears?
Yes. In More options, First caption starts at accepts 00:00:05,000, 0:05 or 5, so captions can begin after an intro or title card. Every later caption moves along with it.
What's a good reading speed for captions?
For general adult audiences, 15 to 17 characters per second is a safe target, and 15 is the default here. Go lower for children or dense technical content, and check the result with the Subtitle Reading Speed Checker.