# Video to VTT

URL: https://neattrim.com/tools/video-to-vtt

Make a WebVTT caption track from a video. The .vtt file is the format browsers read natively, so it drops straight into a web page or player.

## When to choose this

WebVTT is the caption format built for the web. A .vtt file starts with the word WEBVTT on its first line, uses a full stop rather than a comma in its timestamps, and can carry cue settings for position and alignment. Browsers load it through the HTML track element, so a video you host yourself can offer captions without any plugin.

Pick this page when the file is going onto a web page, into an HTML5 player library, or onto a course or video platform that lists VTT as accepted. Many of those services also take SRT, but a few of the player libraries only read VTT, and converting later is one more step you can skip.

When you attach the track, add srclang and label attributes so the browser can offer a sensible caption menu, and mark one track as default if captions should be on at first play. Test with the browser's own subtitle control before publishing, because a file served from another domain also needs the right cross-origin header to load.

## Steps

1. **Add your video.** Choose the video or audio file that has the speech.
2. **Pick the spoken language.** Set the language the speaker uses; the same code is written into the caption track you create.
3. **Check the format is VTT.** The page opens with WebVTT selected as the file output, which writes the WEBVTT header on the first line.
4. **Download and attach the track.** Save the .vtt and reference it from a track element with kind subtitles and a matching srclang attribute.

## Questions

**What is the difference between VTT and SRT?**

VTT starts with a WEBVTT line, uses a dot before milliseconds and supports positioning and styling cues. SRT has no header, uses a comma and has no positioning.

**How do I add a VTT file to my own web page?**

Place a track element inside the video element, with kind set to subtitles, src pointing to the .vtt file, plus srclang and label. Add the default attribute to show it at first play.

**Why do my VTT captions not load from another domain?**

Browsers fetch track files with a cross-origin request. If the file sits on a different domain from the page, that server must send a permissive CORS header, or the track is blocked.

**Can I use the VTT on YouTube or Vimeo?**

Both services list WebVTT among the caption files they read, but accepted formats can change, so check the upload dialog. SRT is the safer common choice for hosted video.

**Do I get cue positions in the file?**

The file contains the caption text and timing. Placement and styling for a hosted player is normally set in the player or host, not in the cue.
