TXT to VTT Converter
Turn a script into WebVTT captions for your website or course player. Each line or paragraph becomes a timed caption, worked out from its length or a fixed duration you set.
How to Convert TXT to VTT
Quick answer: paste your TXT or open the .txt file; the VTT version appears below. Copy it or download the .vtt file.
-
1
Add your TXT
Paste it or open a .txt file.
-
2
Check the settings
Set the start time and reading speed.
-
3
See the VTT
It updates as you type.
-
4
Download
Save it as .vtt, or copy it.
What You Get
What Is TXT?
TXT is plain text with no times at all. It opens anywhere and is easy to read, edit, translate, count or print, but players cannot use it as subtitles until each line has been given a start and end time.
What Is VTT?
VTT (WebVTT) is the subtitle format of the web. It starts with the word WEBVTT, uses full stops in its times, such as 00:01:02.500, and can carry positioning and styling notes. Video players on websites, online course platforms and most modern browsers use VTT for captions and subtitles.
Why Convert TXT to VTT?
Adding captions makes videos accessible and easier to follow without sound. If you already have the script, generating a VTT file from it is the quickest way to captions on the web.
What Changes in the Conversion
The WEBVTT header is added and each line or paragraph becomes a cue with a start and end time based on reading speed or your fixed length, with a short gap between cues. Long lines can be split in two.
Example
A four-line product video script becomes a captions.vtt file you can attach to a web video player straight away.
Who Uses It?
Course creators, web designers, marketers publishing product videos and anyone adding accessible captions to web video. The converter handles files of any length, from a short clip to a full film or album, in a fraction of a second.
Tips
If subtitles appear too early or too late in your player, use the shift setting to move them all at once instead of editing each one. Check that the file uses UTF-8 text so accented letters display correctly; text opened here is read as UTF-8 and the download is saved the same way. To check the wording, paste a transcript into the Word Counter or Remove Extra Spaces.
Using Your VTT File
On a website, add the VTT file to your video with a track element, for example a track with kind set to captions, a language and the file address, and the player shows a captions button. Online course platforms and video hosts usually have a captions upload field that accepts VTT directly. VTT files must start with the word WEBVTT on the first line, which this converter always adds, and must be served as text, so upload them as they are without renaming.
About Your TXT File
Write one subtitle per line, or separate subtitles with blank lines and choose One per paragraph. Keep subtitles short, ideally under about 84 characters, so they fit on two lines on screen. Remove speaker notes, headings and anything that should not appear on screen before converting.
Private, Free and Instant
The converter is free, with no sign-up, no limit on how many files you convert and no watermark. Everything runs in your browser, so scripts, unreleased videos, lyrics and client work are never uploaded or stored. Paste the text, drop a file onto the input box or press Open File, then copy the result or download it with the right file extension. It works on Windows, Mac, Linux, Chromebooks, iPhone and Android, and the result updates instantly as you change any setting.
Making Web Captions From a Plain Script
If you already have a script, you can have captions without retyping a word. The converter spreads your text across time to make a first draft of a WebVTT file for web video.
How timing is worked out
Each line or paragraph becomes a cue. Its length on screen depends on how many characters it has and the reading speed you choose; most viewers are comfortable at 15 to 17 characters per second. A short gap separates cues. You can start at a specific time, or use a fixed duration for each line.
Make the draft accurate
A generated file is evenly paced, whereas speech is not, so it needs adjusting against the audio. Open it in a subtitle editor or shift the times in a text editor. Better results come from breaking the script at natural pauses and keeping each cue short: no more than two lines of about 40 characters.
Next steps
Add the file to your page with a <track> element. If you need a file for desktop players, convert it afterwards with VTT to SRT.
Frequently Asked Questions
Questions about TXT to VTT