Checked on 2026-11-19.
How to convert VTT to SRT
Paste the contents of your .vtt file into the box, drop the file on it, or open it with the file button. The SRT 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 an .srt file named after the file you opened.
The menu at the top switches direction, to SRT to WebVTT, 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 changes on the way to SRT
WebVTT can say more than SRT, so the conversion keeps the timing and the words and lets the rest go:
- The
WEBVTTline and everything before the first cue go: header text,STYLEandREGIONblocks andNOTEcomments.NOTEcomments between cues go too. - Cues are numbered from 1 in the order of the file, and WebVTT cue identifiers are dropped.
- Times are written in full with a comma:
00:01.000becomes00:00:01,000. - Cue settings after the end time, such as
line:85%oralign:start, are left out, so the captions lose their positions. <i>,<b>and<u>stay. A voice tag such as<v Ana>becomes "Ana: " at the start of the line, since SRT's formatting, as the Library of Congress describes it, has nothing for a speaker.- Class, language, ruby and timestamp tags are removed and their text is kept; ruby annotations (
<rt>) are left out, keeping the base text. - Character references become characters again:
&is written as&,<as<.
A file without the WEBVTT line is read anyway when its times are written with a dot, and the summary says so. An SRT file pasted here is tidied up rather than converted: numbered from 1, with its times written in full.
Where it stops
- Styling and positions. Colours and fonts set in
STYLEblocks, and positions set by cue settings or regions, do not carry over; the tool does not turn them into SRT font tags. - Repeated lines. When a file repeats each line in the next cue, as captions that scroll up can, the SRT keeps every cue as it is, repeats included. To get the words once, use the plain text mode in the menu.
- Chapters and metadata. A WebVTT file of chapters or of metadata converts like any other: the text of each cue becomes a subtitle, whatever it holds.
- 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.
- Size. It opens files up to 10 MB. The SRT you download is UTF-8.
Get YouTube subtitles as SRT directly
If the VTT file came from a YouTube video, you can skip the conversion. The YouTube transcript endpoint returns a video's captions as a complete SRT file in its text field when you set format to srt, or as WebVTT with vtt. 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": "srt", "lang": "en"},
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.srt", "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. If the language you asked for does not exist, another one is returned and isPreferredLanguage is false. The guide to downloading YouTube subtitles also shows how to save them with yt-dlp on your own computer.
Questions
What happens to speaker names in voice tags?
A voice tag such as <v Ana> becomes "Ana: " at the start of the line it opens, in every cue that has one. SRT, as the Library of Congress describes it, has no tag for a speaker, so the name is written into the text.
Why have the positions of my captions gone?
Positions in WebVTT are cue settings, such as line:85%, written after the end time. SRT, as the Library of Congress describes it, has no place for them, so they are left out and the player decides where the captions appear.
Does it read a VTT file without the WEBVTT line?
Yes. If the times are written with a dot, the file is read as WebVTT and the summary under the result says that the WEBVTT line was missing.
Can I convert SRT back to VTT?
Yes. Choose SRT to WebVTT in the menu at the top of the tool, or use the SRT to VTT converter page.
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