VionetoVioneto
Back to the magazine

VIONETO MAGAZINE Playback & technology

Convert SRT subtitles to WebVTT and check the cues

A new file extension does not convert SRT into WebVTT. Two separate subtitle blocks illustrate the difference between renaming, actual conversion, and targeted control within the player.

A locally saved SRT file with a new extension contains no cues; the actually converted WebVTT file includes the WebVTT header, point-in-time values, and two loaded cues.
Own conversion and Chrome test. Arrows in the graphic simplify timeline navigation.Image: Vioneto · original illustration

You have an SRT subtitle file, but the desired integration requires WebVTT. Simply changing the file extension from .srt to .vtt does not solve this problem. The file must be properly restructured to follow the correct format; after that, the text and timing values must still be exactly accurate.

WebVTT is a text format for time-based tracks. MDN describes, among other things, the WEBVTT header, UTF-8, and the time specifications of individual blocks, known as cues. The current W3C draft specification additionally defines the file structure and the media type text/vtt. These properties relate to the content and its delivery, not just the file name.

Our own SRT example

We have created two custom subtitle blocks. The first runs from 0.5 to 2.5 seconds and appears on two lines: "Check size" and "and finish." The second runs from 3 to 5.5 seconds and reads: "Open the preview next."

The umlauts and the ß serve as specific indicators for verifying text encoding. The line break in the first block should also be preserved after conversion. A silent six-second test clip serves as the background. The texts are a written sample and not an audio recording presented here.

In the original SRT file, the first timestamp starts at 00:00:00,500. The generated WebVTT version records the same timestamp as 00:00.500. The format has changed; the timestamp still represents half a second. Therefore, a different time format does not automatically indicate a content shift.

Renaming does not alter the bytes.

For the first comparison, we saved the SRT file unchanged with a .vtt extension. Both versions have the same complete file hash, meaning the header and timecodes remain identical to those of the original SRT file.

This renamed version was offered as a subtitle track in the local native Chrome player. The track reported a loading or parsing error and contained no cues. The silent video clip itself did not report any media error. A missing subtitle track and a corrupted video file are therefore separate findings.

Actually convert the file

For the second comparison, we converted the SRT file using the existing FFmpeg 8.0.1: ffmpeg -i atlas-source.de.srt atlas-converted.de.vtt

The output now begins with WEBVTT. Both time ranges and both texts, including umlauts, ß, and line breaks, are preserved within the original file. The tool has not adopted the consecutive SRT numbers as a required counter; for our comparison, the cues together with their texts and time values determine the evaluation.

For your own source, use a separate output filename and preserve the original state. A successful conversion of this simple file does not guarantee that all formatting, positioning, or special annotations from another subtitle file will be accurately transferred. Review required properties individually.

What actually reaches the player

The converted WebVTT track was loaded by the same local Chrome player. It contained exactly two cues with the expected time values. At second 1, the first two-line entry was active. At second 4, "Open the preview next" was active and clearly visible in native subtitle rendering.

After temporarily switching to the merely renamed file, the converted track could be reloaded. This clearly distinguishes between a faulty file structure and a readable text track in this scenario. The test confirms no synchronization with spoken audio because the clip itself is silent.

The converted native text track shows at second 1 the two-line entry "Check Size / and Version," and at second 4, open the preview.
Both cues were selected and verified in native Chrome. Synchronization with spoken language was not tested.Image: Vioneto · original illustration

Before adoption, carry out a brief checklist.

  1. Fix the source format, language, and the associated film version.
  2. Ensure the actual WebVTT file structure is preserved, not just a changed file extension.
  3. Compare the number, text, and time values of the required cues.
  4. Check critical characters such as umlauts and preserved line breaks.
  5. Select the text track in the intended player and review it at key points.

With an actual audio recording, a subsequent comparison of the audio is essential. Whether the text lines are readable or whether important visual elements are obscured must also be independently verified. Formal readability of the file does not replace these content-related evaluations.

Assign a completed subtitle track to the video

Check line breaks, timing, and image content together

Sources and a real-world example

MDN and the W3C WebVTT specification marked as draft were reviewed on October 29, 2026. Examples include the SRT file, conversion process, and local Chrome testing. Vioneto does not claim to offer a new SRT import function or complete format compliance checking.

MDN: Web Video Text Tracks Format

W3C: WebVTT – current specification draft

Topics

Sources and further reading

  1. https://developer.mozilla.org/en-US/docs/Web/API/WebVTT_API/Web_Video_Text_Tracks_Format
  2. https://www.w3.org/TR/webvtt1/