Skip to main content
Aivently
Log inGet started
Menu

Translate a VTT File: 4 Ways That Keep the Timing

A VTT file has a header, timing lines and cue settings that must stay as they are. Here are four ways to translate only the text, and how to check the result.

Written by
Aivently Editorial
Reviewed by
Aivently Editorial
Published
Updated

To translate a VTT file, change only the caption text of each cue and leave the WEBVTT header, the timestamps and any cue settings exactly as they are. You can do that by hand in a text editor, with a subtitle translator that reads WebVTT, or with a script. The method matters less than the check at the end: the translated file must have the same number of cues, with the same times, as the original.

Aivently is our product, and we mention it where it fits. The manual method below works with any tool.

What a VTT file contains

A VTT file (WebVTT) is a plain-text caption format used by web video players, online course platforms and meeting tools. It is UTF-8 text with a .vtt extension. A short file looks like this:

WEBVTT

NOTE Episode 4, final cut

1
00:00:01.000 --> 00:00:04.200
Welcome back to the channel.

2
00:00:04.600 --> 00:00:08.900 align:start line:85%
Today we are fixing a leaking tap
in under ten minutes.

Each part has a job, and only one of them should change when you translate:

PartExampleTranslate it?
HeaderWEBVTTNo, keep it as the first line
NOTE blockNOTE Episode 4, final cutOptional, it is never shown to viewers
Cue identifier1, 2No
Timing line00:00:01.000 --> 00:00:04.200No
Cue settingsalign:start line:85%No
STYLE blockCSS rules for the captionsNo
Cue textWelcome back to the channel.Yes

The W3C gives the same three rules to volunteers who translate its own video captions: translate all text segments, keep the first WEBVTT line, and do not edit the time intervals. If you want the full structure, MDN has a clear reference for the WebVTT format, and the W3C specification is the formal source.

Where your VTT file probably came from

The source of the file tells you what to watch for.

  • Microsoft Teams and Stream. Meeting and webinar transcripts download as .vtt (Teams webinars give both .docx and .vtt). These files often wrap each line in a voice tag with the speaker's name. Keep those tags intact and translate only the spoken words.
  • Other meeting tools. Some transcripts write the speaker name at the start of each line instead, such as "Maria: Let's start." Translate the words after the colon, and leave names as they are.
  • YouTube and course platforms. Caption downloads are often VTT. Auto-generated files can have very short cues and repeated lines, which makes the translation choppy. Clean the source first if you can.
  • Video editors and transcription tools. These usually produce clean VTT with no voice tags.

Method 1: Translate a VTT file by hand

For a file under about 50 cues, a careful manual pass is fine.

  1. Make a copy of the file and name it with the target language, for example lecture.es.vtt. Never translate the only copy.
  2. Open the copy in a plain-text editor such as Notepad, TextEdit in plain-text mode or VS Code. Word processors can add smart quotes and hidden formatting that break the file.
  3. Go cue by cue. Replace only the text lines under each timing line. Keep blank lines between cues exactly where they are, because a blank line ends a cue.
  4. Keep line breaks inside a cue when you can. If the translation is longer, split it into two lines of similar length rather than one long line.
  5. Save as UTF-8. Accented letters and non-Latin scripts turn into question marks or boxes in any other encoding.

This works when you know both languages well. It gets slow and error-prone past a few minutes of video, and a single deleted blank line can merge two cues.

Method 2: Use a subtitle translator that reads VTT

A dedicated subtitle translator parses the file, sends only the cue text to the translation model, and writes the result back into the same structure. This is the safest route for long files and for several target languages.

On Aivently's translate subtitles page, the workflow is:

  1. Drop your .vtt file on the page (SRT, VTT, ASS and several other formats are accepted, up to 5 MB).
  2. Pick one or more target languages from the list.
  3. Run the free preview to see the first 20 lines translated, with no account.
  4. Sign in, confirm the credit quote, and run the full file. Translation costs 1 credit per media minute for each target language, and nothing is reserved until you approve the quote. Your first 10 minutes are free once your email is verified.
  5. Review each translated line beside the source, then export as VTT or SRT.

The AI translates the cue text and keeps every timestamp and the cue order. Two honest limits: the editor changes text only, not cue times, so if your source timing is off, fix it before you translate. And a translation that runs longer than the source can produce long lines, so read the result before you publish it.

Other tools also translate VTT files, including document translators and browser extensions. Whatever you use, run the check in the last section on the output.

Method 3: Convert to SRT, translate, convert back

Some translators accept SRT but not VTT. In that case:

  1. Convert the VTT to SRT with the free subtitle converter. It runs in your browser and needs no account.
  2. Translate the SRT in the tool you prefer.
  3. Convert the translated SRT back to VTT with the same converter.

The catch is that SRT has no place for VTT cue settings, STYLE blocks or NOTE blocks, so positioning such as align:start or line:85% is lost in the round trip. If your captions rely on position, for example to move text away from on-screen graphics, use a translator that reads VTT directly instead. For the full list of differences between the two formats, see our SRT vs VTT comparison.

Method 4: Script it

Developers who translate many files can parse the VTT, send the cue text to a translation API, and write the result into a copy of the original structure. The safe pattern is:

for each block in the file:
    if block is a cue:
        keep identifier, timing line and settings
        translate the text lines
    else:
        copy the block unchanged (header, NOTE, STYLE, REGION)
write the file as UTF-8

Send cue text in batches with a few neighbouring cues for context, because a sentence often runs across two or three cues. Translating each cue alone gives literal, disconnected lines. Never send the timing lines to a general text model: a chat model may rewrite them, round them or drop a cue without warning.

Which method fits your file

SituationBest methodWhy
Short file, you know both languagesBy handFull control, no tools needed
Long file or several languagesVTT subtitle translatorStructure is handled for you
Your translator only takes SRTConvert, translate, convert backWorks, but cue positions are lost
Hundreds of files a monthScript with an APICheapest at scale, needs code
Meeting transcript with speaker namesVTT translator, then review namesVoice tags and names need a human check

Check the translated VTT before you use it

Do these checks every time, whatever method you used:

  • Header. The first line is still WEBVTT.
  • Cue count. The translated file has exactly as many cues as the source.
  • Timestamps. The first and last few timing lines match the source exactly. A quick side-by-side in a diff tool shows any change.
  • Line length. Translations into German, French or Spanish often run longer than English. Keep lines to about 42 characters and two lines per cue, as most subtitle guidelines advise. Our subtitle guidelines cover reading speed and line length in detail.
  • Encoding. The file is saved as UTF-8.
  • Playback. Load the file in your player or platform and watch a few minutes in the middle and at the end.

The free subtitle checker flags overlapping cues, long lines and fast reading speeds in VTT files, right in your browser. It checks layout and timing, not translation quality, so a native reader is still the best final check.

Frequently asked questions

Can I translate a VTT file for free?

Yes. You can translate it by hand in a text editor, use a free tier of a translation tool, or try Aivently's free 20-line preview with no account. A full AI translation of a long file usually needs credits or a paid plan.

How do I translate a VTT file to English?

Use any of the four methods above with English as the target. If the source is a meeting transcript, check speaker names and technical terms after translation, since models sometimes translate names that should stay as they are.

Can Google Translate translate a VTT file?

Pasting a whole VTT file into a general translator is risky. It can change timestamps, merge lines or translate the WEBVTT header. Copy only the cue text, or use a tool built for subtitle files.

Will translating a VTT file change the timing?

It should not. A correct translation keeps every timing line as it was. If a cue now holds much more text, viewers may struggle to read it in time, so shorten the wording rather than editing the timestamps.

Should I translate VTT or convert it to SRT first?

Translate the VTT directly if your tool supports it, because conversion to SRT drops cue positions and styles. Convert only when your translator cannot read VTT. To translate captions on platforms such as YouTube or in an editor, see our guide on how to translate captions.

Sources

  1. How to Create Translated Video Subtitles and DescriptionsW3C Web Accessibility Initiative
  2. Web Video Text Tracks Format (WebVTT)MDN Web Docs
  3. WebVTT: The Web Video Text Tracks FormatW3C
  4. Manage webinar recordings in Microsoft TeamsMicrosoft Support

Translate your SRT file with AI

Upload SRT, VTT or ASS subtitles, see the exact price, then review every translated line before you export. Your first 10 minutes are free once your email is verified.

Support