How to Create a VTT File: Step-by-Step Guide for Video Captions (2026)
Learn how to create a VTT file for video captions using a plain text editor. Includes format examples, VTT vs SRT comparison, common mistakes, and free tools.
• The basics: A VTT file is a plain text file used to display subtitles on the web.
• The format: It must start with "WEBVTT" and use timecodes like 00:00:05.000.
• The tools: You can create one using Notepad (Windows) or TextEdit (Mac).
• The rule: Always save your file with UTF-8 encoding to prevent text errors.
Video is a powerful engagement tool, but without subtitles, you're missing a huge chunk of your audience. Whether it's for accessibility or just for people watching on mute in a busy coffee shop, captions are essential. In fact, 41% of videos are incomprehensible without sound or captions (3PlayMedia, 2025).
One of the most common formats for web captions is the VTT file. Unlike older formats, VTT was designed specifically for the web, offering cleaner integration with HTML5 video players.
If you've never created a subtitle file before, it might look like complex code. It isn't. You can create a VTT file right now using the plain text editor already installed on your computer. Here is your step-by-step guide to doing it correctly.
VTT vs. SRT: What's the Difference?
Before you start typing, it's important to know why you're using VTT. While SRT (SubRip) is the old guard of subtitles, VTT (Web Video Text Tracks) is the modern standard for the web.
Here is how they compare:
| Feature | SRT Format | VTT Format |
|---|---|---|
| Timecode Format | Comma for milliseconds (00:00:05,000) | Period for milliseconds (00:00:05.000) |
| Styling | Very limited (basic HTML) | Rich styling (color, font, bold) |
| Positioning | None (always bottom center) | Flexible (top, align left, vertical text) |
| Metadata | No metadata support | Supports comments and metadata headers |
For most modern web uses, including uploading to platforms like YouTube or hosting on your own site, VTT is the superior choice.
For more on the technical side of video files, check out our guide on video metadata.
The WebVTT File Structure
A VTT file relies on strict formatting. If you miss a single blank line or use a comma instead of a period, the entire file might fail to load. The structure is simple but unforgiving.
Every VTT file has three core components:
- The Header: The very first line must read
WEBVTT. - The Timecodes: Defining exactly when text appears and disappears.
- The Cues: The actual text content displayed to the viewer.
Example of a Valid VTT File
WEBVTT
00:00:01.000 --> 00:00:04.000
Welcome to this tutorial on creating captions.
00:00:05.000 --> 00:00:09.000 align:start line:0%
You can even position text at the top of the screen.
How to Create a VTT File Manually
You don't need expensive software to build this file. A simple text editor is all you need. Here is how to do it on Windows and Mac.
On Windows (Using Notepad)
- Open Notepad (search for it in the Start menu).
- Type
WEBVTTon the first line. Hit Enter twice to leave a blank line. - Type your first timecode:
00:00:01.000 --> 00:00:05.000. - On the next line, type your caption text.
- Hit Enter twice to create a blank line before the next cue.
- Go to File > Save As.
- Name your file
captions.vtt. - Crucial Step: Under "Encoding," select UTF-8. If you save as ANSI, special characters will break.
On Mac (Using TextEdit)
- Open TextEdit.
- In the menu bar, click Format > Make Plain Text (Shift+Cmd+T). Do not skip this—rich text files (.rtf) will not work as subtitles.
- Type
WEBVTTon the first line and hit Enter twice. - Enter your timecodes and text following the format above.
- Go to File > Save.
- Name your file
captions.vtt. - If asked about the extension, choose "Use .vtt".
Uploading VTT files is just one step. Ideally, your video player should handle captions automatically without slowing down your site. See how SmartVideo handles this for you.
Common Mistakes That Break VTT Files
We see VTT files fail all the time due to tiny syntax errors. Avoid these common traps:
1. Using Commas Instead of Periods
SRT files use commas (00:00:05,000). VTT files use periods (00:00:05.000). If you simply rename an SRT file to .vtt without changing the punctuation, it will fail.
2. Missing the "WEBVTT" Header
The file must start with WEBVTT. If there are spaces or blank lines before it, the browser won't recognize the file format.
3. Not Using UTF-8 Encoding
If your captions include accents, emojis, or non-English characters, saving in standard ANSI encoding will turn them into garbled text. Always choose UTF-8 when saving.
4. Forgetting the Blank Line
There must be a blank line between the header and the first cue, and a blank line between every subsequent cue block.
Advanced VTT Features: Styling and Positioning
One huge advantage VTT has over SRT is the ability to control where captions appear. This is vital if you have embedded videos where lower-thirds graphics might get covered by standard subtitles.
You can add settings directly after the timecode:
00:00:05.000 --> 00:00:10.000 align:start line:0%
- align:start – Aligns text to the left.
- line:0% – Moves text to the very top of the video.
- size:50% – Restricts the text width to half the screen.
This flexibility allows you to ensure captions never block critical visual information, which is a key part of optimizing your streaming performance and user experience.
Tools That Make This Easier
While manual creation is great for learning or small fixes, creating a VTT file for an hour-long webinar manually is tedious. For longer content, you might consider:
- YouTube Studio: Auto-generates captions you can edit and download as .vtt.
- Rev.com: Professional paid captioning service.
- Happy Scribe: AI-powered transcription tool.
Regardless of the tool you use, knowing the manual format helps you fix typos or timing errors instantly without re-uploading or paying for re-processing.
Frequently Asked Questions
What creates a VTT file?
Can I convert SRT to VTT?
Is VTT better than SRT?
Do VTT files help with SEO?
Why are my VTT captions not showing up?
What video players support VTT?
How long does it take to caption a video manually?
Are captions required by law?
Final Thoughts
Creating a VTT file is a straightforward skill that adds immense value to your video content. By ensuring your videos are accessible, you open your message to millions more viewers. If you are looking for more ways to optimize your video workflow, check out our guide on video hosting platforms to find the best home for your content.
Once you have your VTT file ready, you need a player that delivers it seamlessly alongside your high-quality video. SmartVideo ensures your subtitles load instantly without buffering, keeping your viewers engaged from start to finish.