• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
UT Shield
College of Fine Arts Web instruction
  • Welcome
  • About Us
    • WordPress & Drupal
    • Websites & Content Owners
  • Getting Started
    • Learn Best Practices for Web
    • Vocabulary Terms
    • Do you need a website?
    • Ways to Get a Website
      • Website Options Comparison
      • Initiate a Project with the Web Team
      • Outsource or DIY
    • Know Your Audience
    • Navigation & Menu Items
  • Requirements
    • Americans with Disabilities Legal Obligations
      • Alternate Text
      • Use of Color & Contrast
      • Link Text & Appearance
        • Non-Visible Link Context
      • PDF Files
      • Software Plug-in Link
      • Captions, Audio Description & Transcripts
        • webVTT Caption File
        • Caption Using Amara
        • Writing Captions & Audio Description
        • Video & Remote Communications
      • Additional ADA Issues
        • Accessible Social Media
        • Video & Remote Communications
    • UT Web Accessibility Policy
    • UT Web Privacy Policy
    • Records Retention – Backups, Archives and Revisions
    • College of Fine Arts Brand
    • UT Brand Guidelines
    • Information Security Office Policies
  • Best Practices
    • College of Fine Arts Communications Written Style Guide
    • Using a Rich Text Editor
      • Using an External HTML Editor
    • Links & URLs
      • Link Text & Appearance
        • Non-Visible Link Context
      • Absolute vs. Relative Paths
      • HTTP vs HTTPS
      • Anchor Links
      • Changing URLs
      • Shorten a URL for Marketing
    • Images
      • JPG vs PNG
      • Image Editing and Troubleshooting
    • Web Forms & Surveys
      • Create a Link to Pre-Filter a Web Form Page
    • Standards & Structure
      • Hierarchical Headers
      • Computer File Names
      • URL address names
        • UT Short Links Service
      • HTML
        • Common HTML Errors
        • Multiple Rows with Floated Images
        • Responsive Word Wrapping
    • Artificial Intelligence
    • Test & Evaluate
    • Wikipedia
    • Social Media & Networking
      • Accessible Social Media
    • RSS & Feeds
    • UT Austin Web Publishing Guidelines
  • Site Performance
    • Page Load Time
      • Fonts
    • Respond to a Variety of Devices
      • Telephone Numbers on Smart Phones
    • Analytics & Visitor Data
      • Outreach Campaign Link Tracking
        • Campaign URL Builder
        • Campaign Link Tracking Worksheet
    • Page Not Found Traffic
    • Tips to Increase Traffic
    • Optimize for AI Chat and Search
  • Site Specific Instructions
    • Instructions for COFA sites on University Blog Services WordPress
    • Instructions for COFA Drupal Kit sites
    • Instructions for COFA sites on UT Drupal Kit Managed

webVTT files for Video Captions or Descriptions

Last Updated October 2025

A WebVTT or Web Video Text Track is a file format for displaying timed text, such as subtitles, captions and audio description for video content on the internet. The file type can be added to a video file in the HTML code or added to a Vimeo or YouTube video.

On this page:

  • Create Your File
    • Components of the File
  • Validate Your File
  • Examples
    • File with Description Statement
    • Basic file with Multiple Cues
    • Basic file with Optional Header
    • File with Advanced Time Code Settings
  • Styles & Questions

Create Your File

Create the WebVTT file in your favorite text editor (for example TextEdit on  Mac). To get started, you can copy one of the examples below into your file and update the timecode and text to be appropriate for your video. When you are finished, save your file with the extension .txt. Then change the file’s extension from .txt to .vtt. Finally, change the file to plain text in Textedit: Go to Format -> Make Plain Text.

If your video is short, does not have dialog, or convey chronological sequences of information, then the file kind can most likely be a description and simply summarize the video. see the File with Description Statement Example, below.

Components of the File

Required first line of a webVTT file

A basic WebVTT file needs to start with the string WEBVTT at the top of your document.

Cues

Each webVTT contains block(s) called cues. A basic Cue contains four things:

  1. A cue identifier to help you organize your captions, such as sequential numbers or letters.
  2. Time code for where in your video’s timeline your text is to be displayed.
  3. The actual text that is displayed on the screen. See Tips for Writing Captions & Audio Description
  4. There needs to be a blank line in between each subtitle block.

NOTE that you can have multiple captions in a single time range.

Optional header

To help you visually organize multiple VTT files, an optional header can be added to the left of the initial WEBVTT string. The only character restriction is that your header cannot contain the following string of characters, which is reserved for cues only:

--->

So, if you are going to use a header it is best to just give it a dash as demonstrated in the example with the optional header below.

Understanding Time Codes

The time codes are displayed as hours, minutes, seconds and millli-seconds rounded to three digits, 00:00:00.000 (hh:mm:ss.fff). Hours can be optional. Since hours can be optional the times are frequently displayed as 00:00.000 (mm:ss.fff).

The first time code, presented before -->, represents when the text should appear on the screen.  The second time code, presented after -->, the end time.  Be sure to provide ample time for visitors to read each cue.

Validate Your File

You can validate your file on this site at no cost to check it: https://tools.igem.org/wiki/vtt-validator

Examples

File with Description Statement

WEBVTT
 
1 
00:00:01.000 --> 00:15.000
Several clips from recent productions, events and courses. A celebration of the vibrant community of our Department and the work that we do.

Basic file of multiple Cues

WEBVTT
 
1 
00:00:01.000 --> 00:09.000
Music from Symphony No. 2 for Wind Ensemble
 
2 
00:01.000 --> 00:09.000
Movement, creativity and energy throughout the department.

Basic file with Optional Header

WEBVTT -En Vogue, My Lovin' (You're Never Gonna Get It), Funky Divas, 1992
 
1 
00:01.000 --> 00:04.000
Now you promise me the moon and stars 
 
2 
00:05.000 --> 00:09.000
Save your breath, you won't get very far (Oooh, bop..)

File with Advanced Time Code Settings

Using the following method you can get very specific with where in your video’s timeline you’d like specific text to appear.

WEBVTT
 
00:00:00.000 --> 00:00:07.000
This <00:00:01.000>text <00:00:02.000>will <00:00:03.000>appear <00:00:04.000>over <00:00:05.000>6 <00:00:06.000>seconds.

Styles & Questions

The style of the text on the screen can be set in the cue block but most styles will be determined by the website style guides and the CSS for your website. If you would like to change the styles or have questions about getting started with WebVTT files, please contact your College of Fine Arts Web Team at cofawebmaster@austin.utexas.edu.

Primary Sidebar

Open Office / Co-Working Sessions

Second Monday of the month:
11 a.m. – 12:30 p.m.

Fourth Thursday of the month:
2 p.m. – 3:30 p.m.

Email us for the Zoom link.

College of Fine Arts WordPress Instruction
College of Fine Arts Drupal Instruction
Subscribe to our email list to receive periodic tips and resources for generating great digital content

Contact Us

The COFA Web team can be reached by emailing us at cofawebmaster@austin.utexas.edu


To view some links on this page you may need to download Acrobat Reader.

UT Home | Emergency Information | Site Policies | Web Accessibility | Web Privacy | Adobe Reader

© The University of Texas at Austin 2025