Convert SRT to VTT

Turn an .srt subtitle file into WebVTT for a web page, on this device. The format changes; the words and timing stay.

Converts an SRT subtitle file to WebVTT, the format the HTML track element reads, and keeps every caption’s words and timing. It is free, needs no account and adds no watermark, and your file is not uploaded: it is plain text, read and rewritten by code in this tab. It changes the format only and does not translate the captions.

Drop SRT subtitle files to convert to VTTor click to choose files. Batches welcome.
    Working…

    Done

    Free, no ads. Support StayPut

    Your files are processed on this device and never sent to a server. Reload the page to clear everything from memory.

    Worked example. You have film.srt from a video editor, and you want the same captions on a web page. This is the middle of it:

    1 00:01:12,400 --> 00:01:15,050 I told you not to open it. It was never ours to open. 2 00:01:16,000 --> 00:01:18,300 Then close it. Now.

    Drop it and press Convert to VTT. You get film.vtt:

    WEBVTT 00:01:12.400 --> 00:01:15.050 I told you not to open it. It was never ours to open. 00:01:16.000 --> 00:01:18.300 Then close it. Now.

    The WEBVTT line is added, a full stop replaces the comma before the milliseconds, and the caption numbers are gone. Two-line captions stay two lines, and the times are exactly as they were.

    In the page, the file goes in a track element on your video: a track with kind subtitles, src film.vtt, a srclang and a label.

    This page is set up for SRT to VTT. Under Convert to you can pick SRT or plain text instead, so VTT to SRT is the same tool. The same converter, with both directions together, is at Subtitle converter.

    How it works

    1. Drop one or more .srt files, or tap to pick them.
    2. Press Convert to VTT.
    3. Download the .vtt file, or a zip if you dropped several.

    In your browser, not on a server

    The page reads the text of your file with the browser’s file reader and finds each caption: the line with the two times, and the words under it. Numbers, the WEBVTT header, notes, style blocks, cue names, position settings and tags inside the words are dropped. The captions are then written out again in time order, as SRT with a comma before the milliseconds and numbers from 1, or as WebVTT with a full stop and a WEBVTT line, or as plain text. No library is used, and the file is never uploaded.

    Compared with upload-based tools: Online converters ask you to upload the subtitle file, which can be the transcript of a private meeting. Here the file is read and rewritten by code in this tab, and the new file is made in your device’s memory.

    Verify it yourself. Give the page a short while after one visit to save itself for offline use, then turn off Wi-Fi or switch to airplane mode and run the tool again. Or open your browser's developer tools (F12, or Cmd-Option-I on a Mac), pick the Network tab, and watch it while you convert. The panel above does the same count for you.

    Questions

    How do I convert SRT to VTT?

    Drop the .srt file on this page and press Convert to VTT. The result is a .vtt file with a WEBVTT line at the top and full stops in the times. Load it in a track element on your page, or in any player that wants WebVTT.

    What changes in the file when I convert SRT to VTT?

    A WEBVTT line goes at the top, the comma before the milliseconds becomes a full stop, and the caption numbers are dropped because WebVTT does not need them. The words and the times carry over, and captions stay in time order. Tags inside a caption, such as italics, are removed; the words stay. A caption with no readable time, no text, or an end that is not after its start is left out.

    Why does a web page need VTT and not SRT?

    The track element in HTML reads WebVTT. SRT is the format that video editors and most desktop players take, so a file made in an editor has to be converted before a web page can use it as captions.

    Does it translate the subtitles or change the timing?

    No. It changes the file format and nothing else, so the words stay in the language they are in and every caption keeps its time. To write English captions from foreign-language speech, Video to subtitles works on the audio of a video, not on a subtitle file.

    Can I convert SRT to VTT without uploading the file?

    Yes. The page opens your file with the browser’s file reader, rewrites the text in memory and hands the new file back to you. A subtitle file can be the transcript of a private meeting, so it matters that it goes nowhere. Open the network tab while you convert and the file is not among the requests. After one visit and a short wait the page works offline.

    More video and audio tools

    Other conversions