Home / Fix guides / Accessibility (WCAG)

How to add captions to website video (WCAG)

A video with speech but no captions fails WCAG success criterion 1.2.2 (Level A) and cannot be followed by deaf or hard of hearing visitors. The fix is to add accurate captions in your video host or attach a caption file to the video, then test it with the sound off.

Captions are the spoken words and important sounds of a video shown as text, in sync with the picture. If your video has speech but no way to turn captions on, it fails WCAG success criterion 1.2.2 (Captions, Prerecorded), which is Level A, the most basic level. This page shows how to find those videos, add captions, and make sure new videos get them too.

What the problem is and what people see

A video has this problem when it contains speech but the player has no captions option. There is no CC button, or the button is there but nothing appears when you switch it on. Typical examples are an owner welcome video, a product demo, a customer testimonial, a how-to clip, or a hero video with a voiceover.

Visitors who are deaf or hard of hearing simply miss the message. So does anyone watching in a quiet office, on a train without headphones, or in a second language. Many people watch with the sound off by habit.

One common trap: automatic captions from a video host are a starting point, not a finished job. They often get names, product terms and accents wrong. WCAG expects captions to be accurate, so someone needs to read through and correct them.

Why it matters

  • People: captions are the only way some visitors can use your video at all.
  • Sales and trust: if the video explains what you sell or how to book, a visitor who cannot follow it leaves without the answer.
  • Search: a caption file or transcript gives search engines real text about what the video says. It helps them understand the page, but it is not a ranking trick.
  • Rules: accessibility rules in many countries point to WCAG, so captions are worth treating as a requirement. This is not legal advice.

How to check if your site has it

All of these are free.

  1. List every video on your site: home page, product pages, blog posts, pop-ups, landing pages and footers. Include embedded YouTube and Vimeo videos.
  2. Play each one with the sound off. Can you still understand it?
  3. Look for a CC or subtitles button in the player and switch it on. Check the text matches what is said.
  4. For a video you host yourself, open your browser developer tools (usually F12), search the page for <video, and look for a <track kind="captions"> line inside it. No track line usually means no captions.
  5. Run a free checker such as the WAVE browser extension, axe DevTools (free version) or the Accessibility audit in Chrome Lighthouse. These can flag a <video> with no captions track. They cannot see inside a YouTube or Vimeo player, so steps 2 and 3 still matter for embeds.

Week 7 of SiteMonday is the accessibility audit (WCAG 2.2), and it covers videos without captions along with other accessibility problems. It finds and explains them; the fixing is up to you or your developer. Details are on the week 7 page.

How to fix it

Step 1: get accurate captions. You have three realistic routes:

  • Let your video host generate captions (YouTube Studio, Vimeo and Wistia all offer this), then edit every line that is wrong.
  • Write out the script or a transcript yourself and use it to build the captions.
  • Pay a captioning service or freelancer to do it, which is sensible for longer or technical videos.

Good captions include the words spoken, who is speaking when it is not obvious, and meaningful sounds such as [phone rings] or [upbeat music]. Keep lines short and in time with the speech.

Step 2: attach them to the video. The usual caption file formats are WebVTT (.vtt) and SRT (.srt).

  • If the video is on YouTube, Vimeo or Wistia, upload or edit the captions in the host's own settings. The embed picks them up.
  • If you host the video yourself with the HTML <video> tag, add a track line:
<video controls src="welcome.mp4">
  <track kind="captions" src="welcome.vtt" srclang="en" label="English" default>
</video>

In a site builder you usually do not edit that code. Menu names depend on your version and theme, but this is where to look:

PlatformWhere captions usually go
WordPressUpload a .vtt file with the video block if it supports tracks, or fix captions at the video host (YouTube, Vimeo)
ShopifyProduct videos: look for a captions or subtitles option on the media item; otherwise use an embedded host video
WixWix Video and embedded videos: check the video's settings for captions, or fix them at YouTube or Vimeo
SquarespaceUse a host such as YouTube or Vimeo and add captions there
WebflowUse a host embed with captions, or add a track line in a custom embed
Page builders (Elementor, HubSpot)The video widget often points to YouTube or Vimeo, so fix captions at the source

Step by step guides are available for WordPress and Shopify.

Burned-in captions (text baked into the picture) are better than nothing and fine for short social clips. They cannot be switched off, cannot be resized, and are not readable by search engines, so separate caption files are the better choice.

Two related points. Captions cover sound. WCAG also asks for a text or audio description of important visuals that are not spoken (success criterion 1.2.3), and a written transcript helps with that. For audio only content such as podcasts, see audio with no transcript. Live streams need live captions at Level AA (1.2.4).

How to confirm the fix worked

  1. Reload the page and clear your cache if the old version still shows.
  2. Check that the CC button appears and the captions switch on.
  3. Watch the whole video with the sound off. Words should match the speech and stay in sync.
  4. Use only the keyboard: press Tab until you reach the CC button and activate it with Enter or Space.
  5. Test once on a phone.
  6. Run the same free checker again on the page.

How to stop it coming back

  • Add "captions added and checked" to your checklist for publishing any video.
  • Tell agencies and freelancers who make videos for you that captions are part of the delivery, ideally as a .vtt or .srt file.
  • Keep the caption files together with the original video, so they are not lost when you replace or re-upload it.
  • Choose a video host or player that supports captions before you commit to it.
  • When you edit a video, update its captions. Old captions on a changed video are almost as bad as none.

Step by step for your platform

Questions

Is YouTube auto-captioning enough for WCAG?

Usually not by itself. Automatic captions often contain mistakes, so you need to review and correct them before they count as accurate captions.

Do I need captions on a video with no speech?

If the video has no speech and no meaningful sound, captions are not needed for the audio, but you may still need a text alternative for important visual information. Music only background clips are normally fine.

What is the difference between captions and subtitles?

Subtitles usually translate or transcribe speech only. Captions also include meaningful sounds and speaker names, which is what deaf and hard of hearing viewers need.

Is a transcript on the page enough instead of captions?

No. For prerecorded video with sound, WCAG 1.2.2 asks for synchronized captions. A transcript is a useful extra and helps with other criteria, but it does not replace captions.

Which caption file format should I use?

WebVTT (`.vtt`) works directly with the HTML video track element and is widely supported. SRT (`.srt`) is common too, and most video hosts accept both.

Do embedded YouTube or Vimeo videos need captions too?

Yes. The video is still on your page, so visitors expect to use it. Add or correct the captions at the host and the embed will show them.

Related problems