Guides

SRT vs WebVTT vs ASS: Subtitle Conversion & Sync Guide

Learn the exact timestamp rules for SRT, WebVTT, and ASS/SSA subtitles—convert formats, clean rolling captions, and fix audio sync locally.

2 min read

Quick Answer: `.srt` (SubRip) offers universal NLE compatibility using commas for milliseconds (`00:01:02,500`), `.vtt` (WebVTT) uses dots (`00:01:02.500`) for HTML5 web players, and `.ass` adds advanced styling tags for anime/karaoke. TxtTo converts between formats, strips tags to clean `.txt`, and shifts timestamps in browser RAM.

Comparing SRT, WebVTT, and ASS/SSA side by side

Every video delivery target expects a specific caption format. HTML5 `<video>` players require WebVTT (`.vtt`), desktop media players and YouTube uploads prefer SubRip (`.srt`), and anime/karaoke fansubs rely on styled ASS/SSA (`.ass`).

Converting between them requires handling millisecond punctuation, cue headers, positioning overrides, and line breaks cleanly.

text
SRT:    00:00:01,250 --> 00:00:04,500
WebVTT: 00:00:01.250 --> 00:00:04.500   (requires WEBVTT header)

Converting SRT and ASS cleanly for web & desktop players

To publish captions inside a browser `<track>` element, SRT to WebVTT prepends the `WEBVTT` header and converts comma decimals to periods. Going the other direction, VTT to SRT strips `<c>` CSS tags and normalizes `MM:SS.mmm` timestamps.

When converting `.ass` scripts, stripping `{...}` override tags prevents raw positioning coordinates from appearing in plain subtitle cues.

Convert SRT to WebVTT locally

Fixing out-of-sync captions with millisecond shifting

If an intro bumper was trimmed or added to a video, every caption drifts uniformly by a fixed offset. Rather than re-rendering the entire video, shift all cue start and end times by `+1500` ms or `-800` ms—clamping safely at `00:00:00,000`.

Shift SRT/VTT cue timestamps by milliseconds

Extracting deduplicated plain-text transcripts for LLMs

Auto-generated `.vtt` transcripts from streaming platforms often repeat previous lines in rolling 2-line chunks. SRT to TXT strips timestamps, cue indices, and rolling duplicates to leave clean readable paragraphs.

Extract clean transcripts from SRT/VTT/ASS

References

Frequently asked questions

Can I keep SRT positioning tags like {\an8} when converting to VTT?

Yes. Uncheck Strip Position Tags to preserve positioning hints where supported, or enable it for clean standard WebVTT cues.

What happens if a negative time shift pushes the first cue below 00:00:00?

With Clamp to Zero enabled, any negative timestamp safely clamps to 00:00:00,000 instead of generating invalid negative cue times.

Why do garbled characters appear when opening old SRT subtitles on macOS?

Many older SRT files use GBK, Big5, or Windows-1252 instead of UTF-8. Run them through GBK to UTF-8 first to restore clean Unicode captions.

Related formats

Related Comparisons

Related Guides