Same Subtitles, One Comma Away From Working in a Browser
You need this the moment you add subtitles to an HTML5 <track> element and nothing appears. Browsers expect WebVTT, not SRT. Luckily the formats are close cousins. The file gains a WEBVTT header, and timestamps swap commas for periods, so 00:01:02,500 becomes 00:01:02.500. Cue numbers become optional.
Watch the styling. Basic <b>, <i> and <u> tags carry over fine, but SRT's <font color> tags have no direct WebVTT equivalent, so colored text may end up plain. WebVTT must also be UTF-8. If your SRT came from an old desktop tool, check accented characters after converting.
What are SRT and WebVTT?
SRT: fmt.srt
WebVTT: fmt.vtt
How it works
- Choose your SRT file.
- Check that WebVTT is selected and press convert.
- Download your new file. We delete both files automatically.
