Captions not appearing on an HTML5 video
Check the track element's src. If it points at an .srt file, the browser is ignoring it entirely. Convert to .vtt and serve it with the text/vtt content type.
Convert SubRip .srt subtitles to WebVTT for the HTML5 video track element.
Maintained by Roshan.
Turns a SubRip .srt file into WebVTT for HTML5 video. The file is read in this tab and never uploaded.
Find related browser-local tools for nearby tasks without starting another search.
Browse all text toolsIf you have attached an .srt file to an HTML5 video track element and seen no captions at all, this is the conversion you need. Browsers implement WebVTT and only WebVTT for the track element; SubRip is not a supported format and is rejected outright rather than partially parsed, which is why the failure is silent. The two formats look almost identical when opened in a text editor, and that resemblance is precisely what makes the problem confusing. Three differences matter. WebVTT requires the literal word WEBVTT as its first line. It separates milliseconds with a period where SubRip uses a comma. And it permits an abbreviated timestamp without an hours field, which SubRip does not. Fixing all three by hand across a few hundred cues is tedious; this page does it in one step.
Check the track element's src. If it points at an .srt file, the browser is ignoring it entirely. Convert to .vtt and serve it with the text/vtt content type.
Desktop players such as VLC read SubRip happily, so files circulate in that format. Anything played in a browser needs WebVTT instead.
No. The extension is not what browsers check. Without the WEBVTT header line the file is rejected, and the comma-separated timestamps would fail to parse even if it were not.
The track element does not report an unsupported subtitle format as a page error. It simply renders nothing, which makes this one of the harder front-end problems to diagnose.
No. They are parsed to milliseconds and written back out identically, only with a period instead of a comma and with the hours field always present.
They are preserved. WebVTT supports the same basic inline tags, so no information is lost.
Convert WebVTT captions to SubRip .srt for VLC, editing software and services that require SRT. Runs in your browser.
Convert text locally to upper, lower, title, sentence, camel, Pascal, snake, kebab, or constant case without uploading your content.
Count words, visible characters, characters without spaces, lines, sentences, UTF-8 bytes, and estimated reading time locally as you type.