Home / Use cases / YouTube Transcript to Text: Clean Plain Text from Any Video

Updated

YouTube Transcript to Text: Clean Plain Text from Any Video

Copying the transcript panel of YouTube gives you one line per caption fragment, timestamps in the middle of sentences and [Music] tags. For reading, quoting or pasting into an AI model you want the spoken words as normal paragraphs.

Try it now on Apify YouTube Transcript for AI: RAG Chunks, Chapters, SRT · $0.002 per one video whose transcript was returned · failed items are free

How to do it, step by step

  1. Open the Actor and paste the video URL in Videos (watch, youtu.be or Shorts links all work).
  2. Leave Clean text on: it joins caption fragments into sentences and removes tags such as [Music].
  3. Turn off chunks and segments if you only need the text: the item gets smaller and easier to export.
  4. Run, then copy the text field or export the dataset as CSV, Excel or JSON.

The exact input used for the example below:

{
  "videos": [
    "https://www.youtube.com/watch?v=aircAruvnKk"
  ],
  "includeChunks": false,
  "includeSegments": false
}

Real result

Run POrrmBAVGXZbeZQxb on 2026-12-05: status SUCCEEDED, 1 item(s), 5.4 s of run time. Output shortened for reading (long text cut with “…”).

One item for the video:

The text field is the whole talk as running text; chapters keeps the creator's chapter titles with start times if you need structure later.

[
  {
    "videoId": "aircAruvnKk",
    "title": "But what is a neural network? | Deep learning chapter 1",
    "channelName": "3Blue1Brown",
    "durationSeconds": 1120,
    "language": "en",
    "captionType": "manual",
    "wordCount": 3357,
    "text": "This is a 3. It's sloppily written and rendered at an extremely low resolution of 28x28 pixels, but your brain has no trouble recognizing it as a 3. And I want you to take a moment to appreciate how crazy it is that brai…"
  }
]

Try it now with your own input

FAQ

Does it work when the video has only automatic captions?

Yes. Manual captions are preferred when they exist; otherwise the automatic ones are used and the item says captionType auto.

Can I get the text without signing in to YouTube?

Yes. Only public captions are read and no account is used. Age-restricted and members-only videos are reported as such, free.

What if a video has no captions at all?

The item comes back with status no_captions and is not charged. The Actor does not download or transcribe audio.

Related