Guide

How to Convert SRT to VTT and VTT to SRT: A Practical Guide

WWablyo Editorial
9 min readUpdated
Editorial illustration comparing SRT and WebVTT subtitle documents and timestamp syntax during format conversion.

Whether you produce online video courses, manage streaming media infrastructure, or localize films for international audiences, synchronized subtitles are essential for digital accessibility and user engagement. However, creators frequently run into format roadblocks between two dominant standards: SubRip (.srt) and WebVTT (.vtt).

Desktop video players like VLC and non-linear editing software—including Adobe Premiere Pro, DaVinci Resolve, and Final Cut Pro—traditionally rely on the SubRip format. In contrast, modern web browsers, HTML5 <video> implementations, and HTTP Live Streaming (HLS) manifests mandate WebVTT as the standard caption delivery container.

Converting subtitle files between these formats is straightforward once you understand their underlying mechanics. This guide breaks down the structural differences between SRT and WebVTT, demonstrates step-by-step bidirectional conversion workflows, explains how timestamp and formatting nuances impact playback, and provides practical troubleshooting techniques for error-free captions.

What Are SRT and WebVTT Subtitle Files?

Subtitles are structured text files that pair spoken dialogue with precise start and end timecodes. While both SRT and WebVTT are human-readable plain text files, they originated in distinct computing eras and target different playback ecosystems.

SubRip (.srt): The Desktop and Video Production Standard

Developed in the early 2000s alongside the open-source SubRip DVD ripping utility, the .srt format is renowned for its sheer simplicity. An SRT document consists of numbered subtitle cues separated by blank lines. Each cue includes a sequential integer identifier, a timing range with a comma millisecond delimiter (00:00:01,000 --> 00:00:04,500), and one or more lines of dialogue text.

Because of its age and minimalism, SubRip enjoys near-universal compatibility across desktop media players, video transcoders (such as HandBrake and FFmpeg), and professional editing timelines. However, the official SRT format lacks native support for on-screen text coordinates, responsive styling, or speaker attribution metadata.

WebVTT (.vtt): The Modern Web and Streaming Standard

Web Video Text Tracks (.vtt), standardized by the W3C in 2010 alongside HTML5, was designed specifically for modern web browsers and streaming media. Every WebVTT file must begin with a mandatory WEBVTT header line.

WebVTT adopts a period (.) as its millisecond delimiter (00:00:01.000 --> 00:00:04.500) to align with web standards. Beyond plain text, WebVTT supports advanced video captioning features: cue positioning (line:, position:, align:), CSS styling via the ::cue pseudo-element, speaker voice markup (<v SpeakerName>), and non-rendering metadata blocks (NOTE, STYLE, REGION).

SRT vs. WebVTT: Technical Comparison

Understanding how the two formats handle structural elements helps avoid silent playback failures or stripped formatting during conversion.

Technical FeatureSubRip (.srt)WebVTT (.vtt)
File HeaderNone (starts with cue index 1)Mandatory "WEBVTT" on line 1
Millisecond DelimiterComma (,) e.g. 00:01:23,456Period (.) e.g. 00:01:23.456
Hours ComponentAlways required (HH:MM:SS,mmm)Optional if hours are zero (MM:SS.mmm)
Cue IdentifiersMandatory sequential integers (1, 2, 3...)Optional string, numeric, or omitted
Cue PositioningUnsupported by official standardSupported (line:, position:, align:, size:)
Speaker AttributionPlain text only (e.g. "Speaker: ...")Native voice tags (<v SpeakerName>)
Styling & CommentsBasic <b>, <i>, <u> tags onlyFull CSS styling, <c.class>, and NOTE blocks
Primary EcosystemVLC, Premiere Pro, DaVinci, MKV containersHTML5 <track>, web browsers, HLS / DASH

Timestamp Syntax: The Comma vs. Period Dilemma

The single most critical syntactic difference between SRT and WebVTT is the millisecond separator. SRT strictly requires a comma (,), whereas WebVTT strictly requires a period (.). Mixing up these separators is the most common reason captions fail to render in media players and web browsers.

In SubRip (.srt), timestamps follow a rigid 2-digit hour structure:

srt
1
00:01:23,456 --> 00:01:27,890
Welcome to our video presentation.

In WebVTT (.vtt), timestamps use a dot for milliseconds, and the hours segment is optional when the cue occurs within the first hour of video:

vtt
WEBVTT

1
00:01:23.456 --> 00:01:27.890
Welcome to our video presentation.

2
01:28.100 --> 01:31.500
This cue demonstrates the short-form WebVTT timestamp.

Notice that while WebVTT parsers in web browsers tolerate the omission of the hours segment (MM:SS.mmm), SRT decoders almost universally reject short-form timestamps. A reliable converter must normalize short-form WebVTT timestamps by prepending zero-padded hours (00:) whenever generating an SRT file.

How to Convert SubRip (.srt) to WebVTT (.vtt)

Converting an SRT subtitle file to WebVTT requires four key transformations:

Step-by-Step Conversion Example

Original SRT file:

srt
1
00:00:01,500 --> 00:00:04,250
Good morning and welcome!

2
00:00:04,800 --> 00:00:08,100
Today we are discussing web accessibility.

Converted WebVTT file:

vtt
WEBVTT

1
00:00:01.500 --> 00:00:04.250
Good morning and welcome!

2
00:00:04.800 --> 00:00:08.100
Today we are discussing web accessibility.

You can perform this conversion directly in your browser using the free Wablyo Subtitle Converter without uploading your files to any server.

  • Prepend the "WEBVTT" header string to the very first line of the file, followed by an empty line.
  • Replace all comma millisecond separators with periods (for example, "00:00:01,000" becomes "00:00:01.000").
  • Retain or clean up numeric cue identifiers (WebVTT accepts sequential numbers, but they are optional).
  • Ensure the file is encoded in UTF-8 without a Byte Order Mark (BOM) to prevent parser errors in strict browsers.

How to Convert WebVTT (.vtt) to SubRip (.srt)

Converting from WebVTT to SRT is slightly more complex because WebVTT supports advanced features that do not have direct equivalents in SubRip:

Step-by-Step Conversion Example

Original WebVTT file with voice markup and positioning:

vtt
WEBVTT

1
00:00:02.100 --> 00:00:05.400 line:85% align:center
<v Alice>Have you tested the new video player?</v>

2
00:00:05.900 --> 00:00:09.200
<v Bob>Yes, the captions are syncing perfectly.</v>

Converted SubRip (.srt) file:

srt
1
00:00:02,100 --> 00:00:05,400
Alice: Have you tested the new video player?

2
00:00:05,900 --> 00:00:09,200
Bob: Yes, the captions are syncing perfectly.
  • Remove the leading "WEBVTT" header line and any introductory comment blocks.
  • Ensure every cue begins with a sequential positive integer (1, 2, 3...) so desktop media players can index the stream reliably.
  • Convert all period millisecond separators to commas (for example, "00:00:01.000" becomes "00:00:01,000").
  • Normalize any short-form timestamps ("MM:SS.mmm") by adding two-digit zero-padded hours ("00:MM:SS,mmm").
  • Strip cue positioning parameters (such as "line:90% position:50% align:center") from the timing line.
  • Simplify WebVTT voice tags ("<v Speaker>Dialogue</v>") into readable dialogue prefixes ("Speaker: Dialogue").

What Changes During Conversion? (Formatting, Voice, and Positioning)

Because WebVTT is a more capable container than SubRip, moving between the two formats is not always symmetrically lossless. Knowing what happens to formatting ensures your captions display as intended on every platform.

Dialogue Text and Timing Preservation

Both formats preserve 100% of the spoken dialogue, multiline structures, and exact millisecond timing. A cue spanning from 00:01:15.250 to 00:01:18.750 in WebVTT will fire at the exact same millisecond mark in SRT (00:01:15,250 --> 00:01:18,750).

Cue Positioning and Alignments

WebVTT supports precise screen coordinates to avoid obscuring lower-third graphics or on-screen text (for instance, placing captions at the top of the video via line:10%). SubRip (.srt) has no standardized coordinate syntax. When converting from WebVTT to SRT, positioning instructions are safely omitted so legacy media players do not render raw coordinate strings as dialogue.

Speaker Voice Tags and Styling

WebVTT includes <v Speaker> voice identification tags and custom CSS classes. During conversion to SRT, Wablyo automatically converts <v Speaker> tags into clean speaker prefixes (Speaker: ) and removes unsupported CSS tags, preserving the identity of who is speaking while maintaining clean readability.

Transparent Non-Blocking Warnings

When you convert a subtitle file on Wablyo, our engine analyzes your cues for omitted positioning coordinates, simplified voice tags, or overlapping timestamps. The converter displays informative non-blocking notices so you always know exactly what adjustments were made.

Common Subtitle Errors and Troubleshooting

If your converted subtitle file fails to load or stops playing midway through a video, inspect the file against these common pitfalls:

  • Inverted Timestamps: An end timestamp that is earlier than or identical to its start timestamp (e.g. 00:00:05,000 --> 00:00:03,000) causes parsers to halt or discard the cue. Wablyo strictly validates all timestamp ranges and flags inverted cues immediately.
  • Missing Blank Lines: Subtitle parsers distinguish between cues using blank lines. If a cue is immediately followed by another cue without an intervening blank line, many players will combine them into one broken subtitle block.
  • Byte Order Mark (BOM) Corruption: Files saved with UTF-8 BOM (hex bytes EF BB BF) can prevent web browsers from recognizing the leading "WEBVTT" string. Always strip BOM characters during export.
  • Overlapping Timestamps: When cue 2 begins before cue 1 ends, some players display both lines simultaneously while others drop one of the cues. Verify whether your target player supports overlapping caption tracks.
  • Comma vs. Period Mismatch: Using commas in WebVTT or periods in SRT is the leading cause of "Invalid Web Video Text Track" errors in HTML5 video elements.

Practical Validation Checklist Before Publishing

Before uploading your converted subtitle file to your video host, content management system, or media player, run through this quick five-point validation checklist:

  • Check Line 1: If your target format is WebVTT, ensure line 1 reads exactly "WEBVTT" followed by a blank line. If your target is SRT, ensure line 1 begins with the integer "1".
  • Audit Delimiters: Inspect a sample timestamp line. Confirm periods for WebVTT (00:00:00.000) or commas for SRT (00:00:00,000).
  • Verify Hour Padding: If targeting SRT, confirm that every timestamp includes a two-digit hour prefix ("00:"), even for short videos.
  • Check Encoding: Ensure your subtitle file is saved in UTF-8 encoding without BOM so special characters, accents, and punctuation render cleanly.
  • Preview in Target Player: Load the file alongside your video in your target browser or media player to confirm sync accuracy and line breaks.
Free Wablyo Tool

Wablyo Subtitle Converter

Convert subtitle files between SRT and WebVTT locally in your browser without file uploads.

Frequently Asked Questions

No. The official W3C HTML5 specification for the <track> element strictly requires WebVTT (.vtt) format. Browsers will reject standard SRT files because of missing "WEBVTT" headers and comma millisecond delimiters. To use subtitles on a webpage, convert your SRT file to WebVTT first.

Conclusion

Mastering subtitle formats is essential for any modern video workflow. While SubRip (.srt) remains the trusted standard for desktop media players, video editing suites, and archival transcoding, WebVTT (.vtt) is the indispensable standard for HTML5 web video, browser accessibility, and cloud streaming.

Understanding the critical syntax differences—especially the comma versus period millisecond delimiter and the mandatory WEBVTT header—helps you prevent playback failures and deliver a flawless viewing experience. Convert, preview, and validate your subtitles in seconds using the free, client-side Wablyo Subtitle Converter directly in your browser.

W
Wablyo Editorial

The editorial signature of the Wablyo platform, publishing practical guides for our browser-based tools.

Explore other practical tutorials to streamline your everyday digital work.