Guides

Saving YouTube Subtitles as SRT

Save YouTube subtitles as SRT or VTT on Windows: manual and auto-generated captions, picking languages, converting, embedding and subtitle-only downloads.

Two kinds of YouTube captions

A YouTube video can carry two different sets of captions, and they are not equally good. Manual subtitles are files the uploader provided. Someone wrote or at least checked them, so the wording, punctuation and timing are usually reliable. Automatic captions are produced by speech recognition. They exist for a great many videos, cost the uploader nothing, and contain the mistakes you would expect: wrong names, missing punctuation, words misheard over music.

YouTube can also machine-translate captions into other languages on request. Those are translations of a transcript that may itself be automatic, so treat them as a rough guide.

The difference matters because downloaders ask for the two kinds separately. If you request subtitles and get nothing, the video very often has only automatic captions, and you need to ask for those by name.

See what a video offers

Before downloading, ask yt-dlp what exists. The --list-subs option prints two lists for the video: the automatic captions and the subtitles proper. Each row has a language code, such as en, en-GB or pt-BR, and the file formats YouTube can serve for it. Nothing is downloaded.

Note the language codes exactly as shown. They are what you pass to --sub-langs in the commands that follow. The code for a manual English track on one video may be en and on another en-US.

List subtitle and caption languages
yt-dlp --list-subs "URL"

Subtitles only, as SRT

To save just the text and leave the video alone, combine three ideas: skip the download, write the subtitles, and convert them. YouTube serves its captions in web formats such as VTT, so --convert-subs srt is what turns the result into the SRT file most players expect. The conversion is done by FFmpeg, which needs to be installed.

The first command takes the manual English subtitles. The second takes the automatic captions instead. The third asks for both, which is the one I use most: yt-dlp takes the manual track for a language when there is one and falls back to the automatic captions when there is not.

The file is named after the video with the language code added before the extension, so an English track ends in .en.srt. If you leave out --sub-langs, yt-dlp picks English when it is available and otherwise the first language listed.

Manual English subtitles as SRT, no video
yt-dlp --skip-download --write-subs --sub-langs en --convert-subs srt "URL"
Auto-generated English captions as SRT
yt-dlp --skip-download --write-auto-subs --sub-langs en --convert-subs srt "URL"
Manual if they exist, automatic if not
yt-dlp --skip-download --write-subs --write-auto-subs --sub-langs en --convert-subs srt "URL"

Choosing languages

--sub-langs takes a comma-separated list, and each entry can be a pattern. That is useful because of regional codes: en.* matches en, en-US, en-GB and any other code that starts with en, so you do not have to know which one a video uses.

The word all requests every language, and a minus sign in front of a code removes one from the list. On YouTube, live chat replays are listed alongside subtitles, so the README’s own example for “everything” is all,-live_chat. Be careful with all on automatic captions: with the translated versions included, that can be a very long list of files and requests.

Any English variant
yt-dlp --skip-download --write-subs --sub-langs "en.*" --convert-subs srt "URL"
English and Spanish
yt-dlp --skip-download --write-subs --sub-langs "en,es" --convert-subs srt "URL"
Every manual subtitle, without live chat
yt-dlp --skip-download --write-subs --sub-langs "all,-live_chat" --convert-subs srt "URL"

SRT or VTT?

Both are plain text files you can open in Notepad. SRT is the older and simpler one: numbered blocks, a start and end time, and the line of dialogue. Nearly every desktop player, television and video editor reads it, which makes it the safe choice for watching offline or importing into an editing timeline.

VTT, short for WebVTT, is the format web browsers use and the one YouTube itself serves. It allows positioning and styling that SRT has no room for. Keep VTT if the subtitles are going onto a web page or into a web player. Convert to SRT for almost everything else.

yt-dlp has two options that sound alike. --sub-format chooses among the formats the site offers. --convert-subs changes the file after it has been downloaded and supports srt, vtt, ass and lrc. For YouTube, converting is the dependable route to SRT.

Keep the captions as VTT
yt-dlp --skip-download --write-subs --sub-langs en --sub-format vtt "URL"

Embedding into the video

If you are saving the video as well, the subtitles can travel inside the file instead of beside it. --embed-subs adds them as a track you can switch on and off in the player. Nothing is burned into the picture. yt-dlp supports this for MP4, WEBM and MKV files.

Used alone, --embed-subs embeds the track and removes the separate subtitle file. Add --write-subs as well and you get both: the track inside the video and the file on disk. MKV is the most accommodating container when you want several languages in one file.

Video with English subtitles inside the file
yt-dlp --embed-subs --sub-langs "en.*" --merge-output-format mkv "URL"
Embed them and keep the SRT too
yt-dlp --embed-subs --write-subs --sub-langs "en.*" --convert-subs srt "URL"

A whole playlist of subtitles

The same options work on a playlist link. This is the usual way to collect transcripts of a lecture series or of your own channel. Give the files numbered names so they sort in order, and add the sleep preset: it pauses between requests, including five seconds before each subtitle download, which keeps a long run from being rate-limited.

Numbered SRT files for every video in a playlist
yt-dlp -t sleep --skip-download --write-subs --write-auto-subs --sub-langs "en.*" --convert-subs srt -o "%(playlist_title)s/%(playlist_index)02d - %(title)s.%(ext)s" "PLAYLIST_URL"

Without the command line

GetVideosLocally, the Windows app this site is about, handles the common case in a window. Paste the link, and when the video has subtitles you select a language alongside the video format; they are saved as SRT or VTT next to the video. yt-dlp and FFmpeg are bundled, so there is nothing to install or convert by hand.

For subtitle-only runs across a playlist, pattern-matched languages or several tracks embedded in one MKV, the commands above are the right tool. Subtitles are covered by the same rights as the video they belong to, so save them for your own uploads, public-domain and Creative Commons material, and content you have permission for.

FAQ

What is the difference between SRT and VTT?

Both are plain text with timings. SRT is simpler and read by nearly every player, TV and editor. VTT is the web format, used by browsers and by YouTube itself, with extra room for positioning and styling.

Why does yt-dlp say there are no subtitles?

Usually because the video has only auto-generated captions and you asked for manual ones. Run --list-subs to see what exists, then add --write-auto-subs and use the language code exactly as listed.

Can I download subtitles without the video?

Yes. Add --skip-download to a command that has --write-subs or --write-auto-subs. Only the subtitle files are saved.

Do I need FFmpeg to get SRT files?

For YouTube, yes in practice. YouTube serves web caption formats, and yt-dlp uses FFmpeg to convert them to SRT. Embedding subtitles into a video needs FFmpeg as well.

How accurate are auto-generated captions?

Good enough to search or skim, not good enough to publish unchecked. They come from speech recognition, so expect wrong names, missing punctuation and errors wherever the audio is noisy.

Download GetVideosLocally for Windows. Free and open source.

Home · Guides · Changelog · Privacy · GitHub · Donate