In short
Subtitles display a video's speech, synchronized with the picture; the transcript gives its full text on the page, readable without starting playback. Once the task is done, each important video has a proofread subtitle file (WebVTT or SRT) that can be turned on in the player, and its watch page contains the transcript in HTML. The video's content becomes readable by people who are deaf or hard of hearing, by those watching without sound, by search engines and by generative engines.
Why it matters
What is said in a video does not exist for an engine that only reads the text of the page. Google indexes a page's HTML text; its video documentation describes no use of subtitle files for ranking. Generative engines (ChatGPT, Claude, Perplexity, Gemini, Copilot) also read text first: an explanation given only out loud usually escapes them. The transcript turns that speech into passages that engines can index, understand and cite.
Accessibility also requires this work. The WCAG (Web Content Accessibility Guidelines, the W3C's accessibility rules) require, at level A, captions for prerecorded video (success criterion 1.2.2) and audio description or a full text alternative (success criterion 1.2.3). These criteria are taken up by the RGAA (Référentiel général d'amélioration de l'accessibilité, the French accessibility standard) in France and by the European accessibility obligations that apply to many sites.
Three notions to tell apart:
| Element | Content | Where |
|---|---|---|
| Subtitles | Dialogue, often translated, for people who can hear but do not understand the language | In the player, synchronized |
| Captions (for people who are deaf or hard of hearing) | Dialogue, plus meaningful sounds: “[phone ringing]”, “[music]”, change of speaker | In the player, synchronized |
| Transcript | Full text of the speech, possibly supplemented with important visual information | On the page, in HTML |
Automatic captions from YouTube or Vimeo are a useful starting point, not a finished result: proper names, technical terms, figures and punctuation are often wrong.
What it improves
- Indexing of spoken content The HTML transcript adds the video's actual vocabulary to the page, which helps it rank for specific queries.
- Citations in AI answers Precise text passages become citable. A plausible effect, not guaranteed. See transcribe important media (opens in a new tab).
- Accessibility and compliance WCAG success criteria 1.2.2 and 1.2.3 are covered.
- Engagement A captioned video stays understandable without sound, which is common on mobile and on social media.
- Translation The proofread file serves as the basis for versions in other languages. See translate subtitles and transcripts (opens in a new tab).
- Rankings No documented direct effect for the subtitle files themselves.
How to check
1. Does the page contain the transcript? Search for a sentence spoken in the video:
curl -s https://example.com/videos/detartrer-chauffe-eau/ | grep -c "coupez l'alimentation"
A result greater than 0 confirms that the text is in the initial HTML. If it only appears after JavaScript runs, check the rendered version with Search Console's URL Inspection tool.
2. Does the player offer subtitles? For a video hosted on your site:
curl -s https://example.com/videos/detartrer-chauffe-eau/ | grep -o '<track[^>]*>'
Then test the declared file:
curl -s -o /dev/null -D - https://example.com/media/sous-titres/detartrage-200l.fr.vtt | grep -i -E "^HTTP|content-type"
Expected result: 200 and content-type: text/vtt.
3. On YouTube or Vimeo, open the video and check that the track for your language exists and that it is not just the automatic version.
4. Proofread a passage containing proper names and figures: that is where automatic transcription gets it wrong.
How to implement
Step 1 — Produce a first draft
Choose the route that fits your tooling:
- YouTube: automatic captions are generated by speech recognition in the video's default language. In YouTube Studio, under the
Subtitlesmenu, you can edit them and then download them. - Vimeo: automatic caption transcription is offered to free and paid accounts.
- Locally, without sending the video to a service: Whisper, OpenAI's open-source speech recognition model, outputs a WebVTT file directly:
whisper detartrage-200l.mp4 --language French --model medium --output_format vtt
- Service provider: for a large volume or sensitive content (medical, legal), human captioning costs more but cuts down proofreading.
Step 2 — Proofread and correct
This is the step that gives the result its value. Check:
- Proper names, brands, technical terms and figures.
- Punctuation and line breaks: two lines at most per subtitle, split at natural pauses.
- Sounds that matter for understanding, in the captions version:
[alarm],[laughter], and the speaker's name when it changes. - Synchronization: a subtitle must not appear before the speech.
WebVTT format, to be saved in UTF-8 with the .vtt extension:
WEBVTT
00:00:00.000 --> 00:00:04.500
Hello, I'm Paul, a plumber in Nantes.
00:00:04.500 --> 00:00:09.000
Today, we're descaling a 200-liter electric water heater.
00:00:09.000 --> 00:00:12.000
[circuit breaker clicks]
Step one: turn off the power at the breaker panel.
The SRT format is accepted by YouTube and Vimeo; for the HTML <track> tag, use WebVTT.
Step 3 — Write the transcript for the page
Start from the proofread file, remove the timestamps and format the text:
- one paragraph per idea, subheadings that follow the video's chapters;
- important visual information added in square brackets: “[On screen: diagram of the safety valve assembly]”;
- verbal tics and repetitions removed, without changing the meaning.
Recommended HTML structure:
<section aria-labelledby="transcription">
<h2 id="transcription">Video transcript</h2>
<h3 id="couper-alimentation">Turn off the power (0:09)</h3>
<p>Step one: turn off the water heater's power at the breaker panel…</p>
<h3 id="vidanger">Drain the tank (1:12)</h3>
<p>Close the cold water inlet, open a hot water tap…</p>
</section>
The transcript can be displayed directly or in a collapsed <details> element: either way, it must be in the page's HTML, not loaded only on click. For a long video, a summary of a few sentences above the transcript makes the page more useful to visitors in a hurry.
Good to know: Google does not document any use of
.vttfiles for ranking. It is the HTML transcript that makes the speech indexable; the subtitle file is primarily for people.
Apache
Versions Apache 2.4 (mod_mime and mod_headers modules).
If .vtt files are not served as text/vtt, add this to the .htaccess file or the virtual host:
AddType text/vtt .vtt
AddCharset utf-8 .vtt
If the subtitles are served from a different domain than the page (CDN, media subdomain), allow that origin:
<FilesMatch "\.vtt$">
Header set Access-Control-Allow-Origin "https://example.com"
</FilesMatch>
Reload with sudo apachectl configtest && sudo systemctl reload apache2.
Nginx
Versions Nginx 1.24 and later.
The mime.types file shipped with Nginx does not declare the .vtt extension. Add it in the server block:
location ~* \.vtt$ {
types { text/vtt vtt; }
charset utf-8;
add_header Access-Control-Allow-Origin "https://example.com";
}
Reload with sudo nginx -t && sudo systemctl reload nginx.
Cloudflare
Versions Cloudflare dashboard, all plans, November 2026.
Cloudflare passes on the origin's Content-Type and CORS headers: fix them on the server, then purge the file in Caching > Configuration. If a Transform Rule or a Worker modifies the headers, check that it keeps Access-Control-Allow-Origin for .vtt files.
AWS
Versions Amazon S3 and CloudFront console, AWS CLI v2, November 2026.
On S3, set the type at upload time, then add a CORS rule to the bucket if the page is on another domain:
aws s3 cp detartrage-200l.fr.vtt s3://NOM_DU_BUCKET/sous-titres/ --content-type "text/vtt; charset=utf-8"
Behind CloudFront, forward the Origin header to the origin (CORS-S3Origin origin request policy) or add the header with a response headers policy, then invalidate the file.
HTML and native player
Declare one track per language in the <video> tag. If the .vtt file is on a different origin than the page, the crossorigin attribute is required:
<video controls preload="metadata" crossorigin="anonymous" width="1280" height="720"
poster="https://example.com/media/miniatures/detartrage-200l.jpg">
<source src="https://media.example.com/videos/detartrage-200l.mp4" type="video/mp4">
<track kind="captions" src="https://media.example.com/sous-titres/detartrage-200l.fr.vtt"
srclang="fr" label="Français (malentendants)" default>
<track kind="subtitles" src="https://media.example.com/sous-titres/detartrage-200l.en.vtt"
srclang="en" label="English">
</video>
Only one track can carry default. If kind="subtitles", srclang is required.
WordPress
Versions WordPress 6.5 to 7.1 (editor's Video block).
- Video block: in the block toolbar, open “Text tracks”, upload the
.vttfile, then fill in the label, the source language (a BCP 47 code such asfr) and the kind (subtitles, captions, descriptions, chapters). - Transcript: add it below the video with Heading and Paragraph blocks, or in a Details block to collapse it.
- Embedded YouTube or Vimeo video: subtitles are managed on the platform; paste the transcript into the WordPress page.
- If uploading
.vttfiles is refused, the cause is the file type check in WordPress or in a security plugin; add thevtttype with theupload_mimesfilter in a custom plugin rather than disabling the check.
Shopify
Versions Online Store 2.0 themes, all Shopify plans, November 2026.
The Liquid objects that describe a product video (video, video_source) expose no subtitle track: the theme therefore cannot display any without custom development. Check Shopify Help to see whether your store offers a newer option. For an important demo, host it on YouTube or Vimeo with proofread subtitles, and add the transcript to the product description or to a dedicated page.
YouTube
In YouTube Studio, open the Subtitles menu, choose the video, click “Add language”, then “Add” in the subtitles column. Three options:
- Upload file, with or without timing;
- Auto-sync: paste the proofread transcript, and YouTube works out the timing;
- Type manually during playback.
Auto-sync is the fastest route if you already have a clean transcript.
Vimeo
Open the video from the library, click the “Languages” button to the left of the player, then “+”. Upload the file (SRT or WebVTT, UTF-8 encoded), choose the language and the type (Subtitle or Caption), confirm, then turn the track on.
Next.js
Versions Next.js 15 and 16 (App Router).
.vtt files placed in public/ are served as is. Player component:
export function VideoPlayer({ video }: { video: Video }) {
return (
<video controls preload="metadata" width={1280} height={720} poster={video.thumbnailUrl}>
<source src={video.contentUrl} type="video/mp4" />
<track kind="captions" src={video.captionsUrl} srcLang="fr" label="Français" default />
</video>
);
}
Render the transcript on the server (Server Component or static generation) so that it is in the initial HTML.
Laravel
Versions Laravel 11 to 13.
Store the .vtt files on a public disk, and the proofread transcript in the database, as Markdown or HTML. In the view, display it below the player, escaped if it comes from free-form input ({{ }}), or converted with Str::markdown() if you write it in Markdown.
Common mistakes
- Publishing automatic captions without proofreading: wrong proper names and figures, sometimes the opposite meaning.
- A transcript loaded only on click by a JavaScript request: it is not in the initial HTML.
- A
.vttfile served astext/plainor blocked by CORS: the browser ignores the track with no visible message. - A transcript only as an image or a PDF: neither indexable nor accessible.
- Subtitles burned into the picture as the only solution: impossible to turn off, translate or index.
- Forgetting visual information: a silent demo has no speech to transcribe; describe the steps in text.
Frequently asked questions
Do subtitles improve a video's SEO?
Google does not document any use of subtitle files for ranking. It is the transcript published in HTML on the page that makes the spoken content indexable, and that helps the page rank for specific queries. Subtitles serve accessibility and engagement first, especially for visitors watching without sound. Do both: the proofread file is what you use to produce the transcript.
Can I use YouTube's automatic captions?
Yes, as a first draft. YouTube's automatic captions are generated by speech recognition and often contain errors in proper names, technical terms, figures and punctuation. Edit them in YouTube Studio, under the Subtitles menu, or download them to correct them, then publish the proofread version. Captions that have not been proofread do not properly meet accessibility requirements.
Should the full transcript be displayed on the page?
The transcript must be in the page's HTML, but it can be collapsed in a details element so it does not lengthen the display. Just avoid loading it on click with a JavaScript request, or offering it only as a PDF. For a long video, add a summary of a few sentences above it and subheadings that follow the chapters.
What is the difference between subtitles and captions?
Regular subtitles render the dialogue, often translated, for people who can hear but do not understand the language. Captions, intended for people who are deaf or hard of hearing, add the sounds that matter for understanding, such as an alarm, music or a change of speaker. In the track tag, the first case corresponds to kind subtitles, the second to kind captions.
Resources
- W3C WAI: Making audio and video media accessiblew3.org
- W3C: Understanding Success Criterion 1.2.2, Captions (Prerecorded)w3.org
- MDN: The track elementdeveloper.mozilla.org
- MDN: WebVTT formatdeveloper.mozilla.org
- YouTube Help: Add subtitles and captions and supported file formatssupport.google.com
- Vimeo Help: Add captions or subtitleshelp.vimeo.com
- WordPress: Video block, text trackswordpress.org
Updated on
Topic checklist (PDF)