Thursday, March 5, 2026

How to Capture YouTube Videos Closed Caption Texts Using Google Chrome

YouTube closed captions can be useful for research, documentation, analysis, or creating rough transcripts. While YouTube does not always allow direct subtitle downloads, you can capture the live closed caption text using Google Chrome’s built-in Developer Tools.

This guide explains how to do it step by step.

Requirements

  • Google Chrome browser
  • A YouTube video with Closed Captions enabled
  • Basic copy-and-paste knowledge

No browser extensions or third-party tools are required.

Step-by-Step Instructions

  1. Open Google Chrome
    Launch the Google Chrome browser.
  2. Go to YouTube
    Navigate to https://www.youtube.com.
  3. Open a YouTube Video
    Select a video that supports subtitles or closed captions.
  4. Enable Subtitles / Closed Captions
    Click the CC button on the video player to turn captions on.
    Make sure captions are visible before continuing.
  5. Open Chrome Menu
    Click the three-dot menu (Customize and Control Google Chrome) beside your profile picture.
  6. Go to More Tools
    From the menu, select More tools.
  7. Open Developer Tools
    • Click Developer tools.
    • Shortcut:
      Windows: Ctrl + Shift + I
      Mac: Cmd + Option + I
  8. Open the Console Tab
    Inside Developer Tools, select the Console tab.
  9. Copy the Script Below

  10. Paste and Run the Script
    Paste the script into the Console and press Enter.

The script will now log the currently displayed closed caption text every 1.5 seconds.

How It Works

  • The script detects the active caption text displayed on the video
  • It reads the text from the caption container
  • Every 1.5 seconds, the text is printed in the Console
  • As the video plays, captions appear in real time in the Console output

How to Save the Captured Captions

You can:

  • Manually copy the Console output
  • Select and save logs for short transcription needs
  • Extend the script to store captions in variables or files

Notes and Limitations

  • Only captures captions currently visible on screen
  • Does not retrieve past or future subtitles
  • YouTube UI changes may affect class names
  • Best used for short to medium-length videos

Conclusion

This approach provides a simple and lightweight way to capture YouTube closed captions directly from the browser. It is especially useful for quick analysis, note-taking, and research when subtitle downloads are not available.

If you want a version that adds timestamps, auto-saves to text, or formats captions into a transcript, I can help customize the script further.

No comments:

Post a Comment