Subtext

How to translate a YouTube transcript into any language

To translate a YouTube transcript, first check whether the video already has human-written subtitles in your target language. If it does not, you can switch to YouTube's built-in machine translation inside Subtext or export the clean transcript and translate it with ChatGPT or Claude.

By Subtext

Translate a YouTube video free Try on sample video Translation API

Method 1: Use existing captions or YouTube's Translate menu

Many popular talks, tutorials, and interviews already have community or creator translations that read better than machine translation. To check both in Subtext:

  1. Paste a public YouTube link into Subtext (or open the sample TED Talk).
  2. Open the caption language menu at the top of the transcript to see every native track uploaded for that video. If your language is listed there, pick it first.
  3. If your language is not a native track, open Translate… next to the language menu when available and choose your target language.
  4. Read on the page, copy the translated text, or open Download to save TXT, Markdown, SRT, or WebVTT.

YouTube only allows automatic translation on certain videos and sometimes throttles or refuses a translation track. When that happens, Method 2 is more reliable and usually gives cleaner phrasing.

Method 2: Translate the exported transcript with ChatGPT or Claude

For technical talks, domain jargon, or long interviews, exporting the original-language transcript and translating it with an LLM gives noticeably better results than YouTube's caption translator:

  1. Open the video in Subtext, turn Timestamps on if you want to keep time markers, and click Copy (or download TXT for long videos).
  2. Paste the text into ChatGPT or Claude with a short instruction like the one below:
Translate the YouTube transcript below into Spanish.
Keep every [m:ss] paragraph timestamp unchanged.
Keep product names, code identifiers, and proper nouns in English.
Do not summarize or skip sentences.

[Paste transcript here]

See working with YouTube transcripts in ChatGPT or copying transcripts cleanly for more workflow tips.

Method 3: Request translated captions through the REST API or MCP

In the Subtext REST API, first call GET /api/v1/languages (free) to see both native caption codes (tracks) and YouTube's translation targets (translations). Then pass either lang (for a native track) or translate (best-effort YouTube machine translation) to GET /api/v1/transcript:

curl -sS "https://youtubevideototranscript.com/api/v1/transcript?video=arj7oStGLkU&lang=en&translate=es&format=text" \
  -H "Authorization: Bearer $SUBTEXT_API_KEY"

YouTube sometimes refuses machine-translated tracks; when a translation request fails, Subtext returns an error and charges 0 credits. Full parameter details are in the API reference, and the same translate parameter works in the YouTube MCP server. For downloading subtitle files in SRT or VTT, see the YouTube subtitle downloader or the download guide.