Checked on 2026-11-19.
How to convert SRT to VTT
Paste the contents of your .srt file into the box, drop the file on it, or open it with the file button. The WebVTT version appears underneath at once, with a line saying what was read: how many cues, from when to when, and anything you should check. Copy it, or download it as a .vtt file named after the file you opened.
The menu at the top switches direction, to WebVTT to SRT, or turns the subtitles into plain text. The file is read by the page itself, with your browser's own file reader, so it is not uploaded anywhere.
SRT and WebVTT side by side
SRT has no formal specification. The Library of Congress description of the SubRip format calls SRT files "a very simple text format, but not well standardized", and the SRT column below follows that description. WebVTT is defined by the W3C's WebVTT specification, a Candidate Recommendation Draft, which the WebVTT column follows.
| SRT | WebVTT | |
|---|---|---|
| First line | The first cue's number | WEBVTT, optionally after a byte-order mark, and optionally followed by a space or tab and more text |
| Before each cue | A counter: 1, 2, 3… | An optional identifier: any text without -->, unique in the file |
| Times | 00:00:01,000, comma before the milliseconds | 00:00:01.000, dot before the milliseconds; the hours may be left out when they are zero: 00:01.000 |
| After the end time | Nothing described | Cue settings, such as line:85% or align:start |
| Formatting | Limited formatting derived from HTML tags, "including bold, italic, underline, and color" | Tags for class (c), italic (i), bold (b), underline (u), ruby, voice (v), language (lang) and timestamps |
| Other blocks | None described | NOTE comments, STYLE blocks before the first cue, and REGION definitions |
| Character encoding | "No character encoding standard" | UTF-8 |
| Media type | text/plain | text/vtt |
The Library of Congress page also notes that the SRT format "was used as the basis for the WebVTT text track file format", which is why the two look so alike.
What the converter changes
- It adds the
WEBVTTline at the top and drops the cue numbers, which WebVTT does not need. - It writes every time with a dot and with the hours:
00:00:04,600becomes00:00:04.600. Times written with a dot or without hours are read too, so a file that mixes both styles still converts. - It keeps
<i>,<b>and<u>, which both formats have.<font>tags and any other tags are removed and their text is kept, since WebVTT's list of tags has no font tag. - It writes a lone
&as&and<as<, because the WebVTT specification does not allow either character as itself in cue text; and>as>, which keeps the arrow-->out of cue text, where the specification forbids it. - It removes codes in curly braces, such as
{\an8}. They are not part of SRT as the Library of Congress describes it, and in WebVTT they would show on screen as text. - It leaves out anything that follows the end time on an SRT timing line, since WebVTT would read it as cue settings.
- It reads any line ending (CRLF, LF or CR, the three the WebVTT specification allows), a byte-order mark, missing blank lines between cues and extra ones, including files where every line ending was doubled.
Where it stops
- Colour and position. A
<font color>tag or a{\an8}code is dropped, not turned into WebVTT styling or cue settings. If you need them, add aSTYLEblock or cue settings to the result by hand. - Other formats. It reads SRT and WebVTT only. An SSA or ASS file, an XML caption file or subtitles inside a video file get a message saying that this is not SRT or WebVTT, not a half-converted result.
- Character sets. A WebVTT file is UTF-8 by its specification, while SRT files "do not have a character encoding standard"; the Library of Congress page adds that SubRip's own default output encoding is Windows-1252. The tool reads a file as UTF-8 and, when that fails, as Windows-1252, and says so. A file saved in another code page, such as a Cyrillic or Greek one, then shows the wrong letters: save it as UTF-8 in a text editor and open it again.
- Broken times. A time range it cannot read, such as
00:00:61,000, is reported and its cue left out. A cue that ends before it starts is kept and pointed out, since WebVTT requires the end to be later than the start; fix its times in the result. - Order. Cues stay in the order of the file. SRT numbers that are out of order or repeated make no difference to the result.
- Size. It opens files up to 10 MB.
Get YouTube subtitles as VTT directly
If the SRT file came from a YouTube video, you can skip the conversion. The YouTube transcript endpoint returns a video's captions as a complete WebVTT file in its text field when you set format to vtt, or as an SRT file with srt. lang chooses the caption language; without it you get the video's original language.
import os
import requests
res = requests.get(
"https://pipefetch.com/v1/youtube/transcript",
params={"video": "jNQXAC9IVRw", "format": "vtt"},
headers={"x-api-key": os.environ["PIPEFETCH_API_KEY"]},
timeout=90,
)
if res.status_code == 404:
print(res.json()["error"]["message"]) # no captions, or no such video: not charged
else:
res.raise_for_status()
with open("subtitles.vtt", "w", encoding="utf-8") as f:
f.write(res.json()["data"]["text"])A request costs 1 credit, and a video without captions answers 404 no_transcript and costs nothing. The answer also says whether the captions are auto-generated (isAutoGenerated) and lists the languages the video has captions in (availableLanguages). The guide to downloading YouTube subtitles also shows how to save them with yt-dlp on your own computer.
Questions
What is the difference between SRT and VTT?
Mostly the top of the file and the times. A WebVTT file starts with the line WEBVTT, writes times with a dot (00:00:01.000) instead of a comma, does not need cue numbers, and can add cue settings, comments, styles and voice tags. The text and timing of each subtitle carry over unchanged.
Why convert SRT to VTT for a website?
The HTML standard adds subtitles to a video with the track element, and sets its rules in terms of WebVTT: a subtitles or captions track that is a WebVTT file "must be a WebVTT file using caption or subtitle cue text". Converting gives you a file in that format.
Are italics and bold kept?
Yes. <i>, <b> and <u> exist in both formats and are kept as they are. Font tags, such as a colour, are removed and their text is kept.
Can I convert a VTT file back to SRT?
Yes. Choose WebVTT to SRT in the menu at the top of the tool, or use the VTT to SRT converter page.
Why does my converted file show strange letters?
The SRT file was saved in a code page other than UTF-8 or Windows-1252. SRT has no fixed character encoding. Open the file in a text editor, save it as UTF-8 and convert it again.
Is my subtitle file uploaded anywhere?
No. The file is read and converted by the page, in your browser. Nothing you paste or open is sent anywhere, and the tool keeps working if you go offline after the page has loaded.
Need this for many accounts, or in your code? The Pipefetch API returns the data as JSON, one GET request at a time. Get an API key with 100 free credits, no card needed.
APIs that return this data
Guides
Similar tools
More free tools
- Instagram engagement rate calculator
- TikTok engagement rate calculator
- YouTube engagement rate calculator
- X (Twitter) engagement rate calculator
- LinkedIn engagement rate calculator
- Facebook engagement rate calculator
- YouTube video ID finder
- YouTube timestamp link generator
- YouTube thumbnail downloader
- Email extractor
- HTML to Markdown converter
- X API cost calculator
- JSON to CSV converter
- CSV to JSON converter
- cURL to Python converter
- cURL to JavaScript fetch converter
- robots.txt tester
- Google search snippet preview
- Meta title and description length checker
- Instagram profile viewer
- Instagram profile picture viewer