HOW-TO

How to Extract Captions from Any YouTube Video (4 Methods, 2026)

/5 min read

"Captions" and "transcripts" refer to the same underlying data — the timed text that accompanies a YouTube video. Extracting them means getting that text out of YouTube in a usable format. There are four ways to do it in 2026, ranging from a paste-and-click web tool to writing code against the YouTube Data API. This guide covers all four, including which works even when captions are disabled.

01

TubeScript (Fastest)

TubeScript is a web tool that extracts captions from YouTube without any setup, coding, or account creation. Critically, it also works when captions are disabled by using AI transcription (Gemini 2.5 Flash) to generate a transcript from the audio directly.

  1. Go to tubescript.cc. Open the site in any browser on desktop or mobile. No account or extension needed.
  2. Paste the YouTube URL. Works with full YouTube URLs (youtube.com/watch?v=...), short links (youtu.be/...), and YouTube Shorts URLs.
  3. Click "Get Transcript." If captions exist on the video, they're extracted and formatted instantly. If no captions exist, TubeScript's AI transcribes from audio — this takes 30-90 seconds depending on video length.
  4. Download or copy. Export as TXT (plain text) or SRT (subtitle file). The SRT format includes timestamps compatible with video editing tools and streaming platforms.

Who this is for: Anyone who needs captions quickly and doesn't want to write code or navigate developer tools. Free for 2 videos per day; unlimited with Pro ($5.99/mo).

02

YouTube's Built-in "Show Transcript"

YouTube has a native transcript panel that's built directly into the video page. It's free and requires nothing extra, but has meaningful limitations.

  1. Open the YouTube video in a desktop browser. The transcript feature is not available in the YouTube mobile app.
  2. Click the three-dot menu (•••) below the video. This is the row with Like, Dislike, Share, Save. Look for the three horizontal dots at the end.
  3. Select "Show transcript." A panel opens to the right of the video with timestamped caption fragments. If this option doesn't appear, the video has no captions.
  4. Copy the text manually. Click into the transcript panel, press Ctrl+A (Cmd+A on Mac) to select all, then Ctrl+C to copy. Paste into any text editor.

Limitations: No download button, no copy button, shows raw caption fragments (not formatted paragraphs), doesn't work on Shorts, doesn't work when captions are disabled, and the mobile experience is essentially non-functional for this purpose.

03

Browser Developer Tools (Advanced)

YouTube loads captions from a timedtext API endpoint that you can find in your browser's Network tab. This method gives you the raw XML/JSON caption data without needing an API key.

  1. Open DevTools. Press F12 (or right-click → Inspect) on any YouTube video page. Go to the Network tab.
  2. Filter for "timedtext." In the Network tab filter box, type "timedtext" and reload the page or click on the transcript panel. A request to a URL containing "timedtext" will appear.
  3. Open the URL directly. Right-click the timedtext request and copy the URL. Open it in a new tab. You'll see XML data containing all the timed caption segments.
  4. Parse the XML. The text content is inside <text start="X" dur="Y"> tags. You can parse this manually or use a script. The start values are in seconds.

Who this is for: Developers and technically skilled users who need raw caption data in a specific format. Only works if the video has captions.

04

YouTube Data API (For Developers)

The YouTube Data API v3 provides official programmatic access to caption tracks. This is the right approach if you're building an application that needs to extract captions at scale.

  • Get an API key. Create a project in Google Cloud Console, enable the YouTube Data API v3, and generate an API key (or OAuth 2.0 credentials if you need to access private captions).
  • List caption tracks. Call captions.list with the video ID. This returns the available caption tracks and their IDs, but not the caption content itself.
  • Download a specific track. Call captions.download with the caption track ID. Note: this requires OAuth 2.0 — it does not work with an API key alone. You must be authenticated as the video owner or have been granted access.

Important caveat: The YouTube Data API's captions.download endpoint only works for captions on your own videos (OAuth as the channel owner). For captions on other channels, the API returns metadata but not the full text content. This makes it primarily useful for creators managing their own channel programmatically.

Side-by-Side Comparison

FeatureTubeScriptYouTube Built-inDev ToolsYouTube API
Ease of useVery easyEasyTechnicalRequires code
Requires codingNoNoSomeYes
Works without captionsYes (AI)NoNoNo
Download as TXTYesNoManualYes
Download as SRTYesNoManualYes
Works on ShortsYesNoYesYes
Free tier2/dayUnlimitedUnlimitedFree quota
Account requiredNoNoNoYes (API key)

Frequently Asked Questions

01

Can I extract captions from a video where the creator disabled them?

YouTube's built-in transcript and the timedtext API both require captions to exist on the video. TubeScript uses AI transcription (Gemini 2.5 Flash) to generate a transcript from the audio directly, so it can produce a transcript even when captions are disabled.

02

What format do downloaded captions come in?

TubeScript offers plain text (TXT) and SRT download formats. SRT is the standard subtitle format compatible with video editing software, streaming platforms, and accessibility tools. TXT is useful for reading, research, and content repurposing.

03

Is extracting YouTube captions legal?

Extracting captions from YouTube videos for personal use, research, accessibility, or content analysis is generally legal. YouTube's Terms of Service prohibit scraping the site programmatically at scale, but using the official API or tools like TubeScript for individual video transcription is standard and accepted use.

04

Can I extract captions from YouTube Shorts?

YouTube Shorts don't have a 'Show Transcript' button in the YouTube interface. TubeScript works on Shorts the same way it works on regular videos — just paste the Shorts URL. The developer tools method and YouTube API also technically support Shorts since they're treated as regular videos in the backend.

05

What's the difference between auto-generated and manual captions?

Auto-generated captions are created by YouTube's speech recognition and are available for most videos in supported languages. Manual captions are uploaded by the creator or a third party as an SRT or VTT file and are usually more accurate. When you extract captions via any method, you get whichever version the video has — manual takes precedence if it exists.

Try TubeScript free.

TubeScript extracts captions from any YouTube video — even those without existing subtitles. Free, no signup, works in your browser.

Extract Captions Now

Try it yourself — paste any YouTube URL

Get the full transcript in seconds. Free, no signup required.

Get Transcript Free