Skip to the main text

Updated

Subtitles

What a .vtt file is, and how to open one

A .vtt file is subtitles, written as plain text. The format is WebVTT, the one web pages use for captions: a list of lines, each with the moment it appears and the moment it goes. Any text editor opens it; a video player shows it over the picture; and Foretaste opens one straight from a link and lists every line with its time.

01

What is inside one

Open a .vtt file in a text editor and it looks like this. The first line is always WEBVTT. Each block after it is one caption: an optional name, a time range, and the words.

WEBVTT

1
00:00:01.000 --> 00:00:04.200
Before you download anything,

2
00:00:04.200 --> 00:00:07.500
look at what is inside it.

That is the whole idea. The times are hours, minutes, seconds and thousandths, separated by a dot. A line can also carry settings after the time - where on the screen to sit, how wide to be - and simple tags for italics or a speaker's name, which is where WebVTT goes further than SRT.

02

Ways to open it

  • A text editor. Notepad, TextEdit or any code editor shows the file as it is. Double-clicking may not work, because many computers have no program set for .vtt - use "Open with" instead.
  • A video player. VLC and most desktop players can load a subtitle file onto a video, usually from a Subtitles menu, or by giving it the same name as the video.
  • A web page. The HTML <track> element points a video at a .vtt file, which is the reason the format exists.
  • From a link, without saving it. If the file is on the web - a course page, a video archive, a repository - Foretaste opens it in your browser tab. That is the next section.

03

Right-click the link and choose Open with Foretaste, or press the small button Foretaste puts beside file links. The file opens in a tab, read in your browser, and nothing is uploaded anywhere. You see:

  • every line with the time it appears, in order;
  • how many lines there are and how long the subtitles run;
  • Copy the transcript, which puts the words on your clipboard without the timings - the quickest way to get a transcript out of a lecture or a meeting recording;
  • a count of any blocks it could not read, rather than hiding them.

On a video Foretaste is playing, you can load a subtitle file onto it and move the subtitles earlier or later when they are out of step. The same reader handles SRT, and the SubStation formats ASS and SSA. All of it is free.

04

VTT and SRT, side by side

WhatWebVTT (.vtt)SubRip (.srt)
First lineWEBVTTThe first caption number
Times00:00:01.000, a dot00:00:01,000, a comma
Position and styleYes, in the fileNo
On a web pageNative, with <track>Needs converting
Text encodingUTF-8, alwaysOften UTF-8, not required

More file types that turn up as links, and what Foretaste shows for each, are on the format list. How to look at any file without downloading it covers the rest.

The questions people ask

What program opens a .vtt file?

Any text editor - Notepad on Windows, TextEdit on a Mac - because a VTT file is plain text. A video player that takes subtitle files, such as VLC, shows it over the video instead. Foretaste opens one from a link in your browser and lists every line with its time, without saving the file first.

How do I turn a VTT file into plain text?

Remove the WEBVTT header, the cue numbers and the timing lines, and keep the words. Foretaste does that with one press: "Copy the transcript" puts the text of every line on your clipboard without the timings.

Why does my VTT file show strange characters?

WebVTT has to be UTF-8. A file saved in another encoding, or opened by an editor that assumes one, turns accented letters and symbols into pairs of odd characters. Reopen it with the encoding set to UTF-8.

What is the difference between VTT and SRT?

Both are subtitles as plain text with times. A VTT file starts with the word WEBVTT and writes times with a dot (00:00:01.000); an SRT file has no header and uses a comma (00:00:01,000). VTT also allows positioning and styling, and it is the format a web page uses with the HTML track element.

Every question, answered