A VTT file is a text file that contains information for displaying timed text tracks (such as subtitles or captions) using the Web Video Text Tracks (WebVTT) format. The timed text tracks includes information such as subtitles or captions. The purpose of VTT file is to add text overlays to a . The format is somewhat similar to the SRT files. WebVTT based text files are encoded using UTF-8. A VTT file contains information such as subtitles, descriptions, captions, descriptions, chapters, and metadata. Being plain text files, VTT files can be opened using text editors such as Microsoft Notepad, Apple TextEdit, and Notepad++.
VTT File Format - More information
VTT files use the WebVTT file format for saving sequential text tracks information. Each timed text track consists of a single line or multiple lines, also known as a cue as shown in the following example.
VTT File Example
00:01.000 --> 00:04.500
- Winters come after Autumn.
00:05.000 --> 00:10.000
- Often the weather goes too cold in winter.
- You should cover yourself with warm clothes.
VTT File Structure
Following is the structure requirements of a VTT file.
An optional byte order mark (BOM).
The string “WEBVTT”.
An optional text header to the right of WEBVTT.
A blank line, which is equivalent to two consecutive newlines.