Manual captions and auto-generated transcripts on YouTube can be exported either as clean plain text (TXT) or time-coded subtitle files (SRT).
Method 1: Exporting Plain Text (TXT)
Method 2: Downloading Time-Coded SRT Files
Method 1: Exporting Plain Text (TXT)
- Open the YouTube video, expand the description box, and click Show transcript.
- Click the three-dot menu in the top-right corner of the transcript panel and select Toggle timestamps to hide time markers.
- Highlight the full transcript, copy it, and paste it into any plain text editor to save as a file.Kod:
.txt
Method 2: Downloading Time-Coded SRT Files
- To download only the subtitle track in format without downloading the video, run:Kod:
.srt
Kod:
yt-dlp --write-subs --write-auto-subs --sub-lang en --sub-format srt --skip-download "YOUTUBE_URL"