Tacoma Narrows Bridge
Accessibility

How to add captions to website videos?

Short answer

Adding captions to your website videos improves user engagement, boosts accessibility for viewers who are hard of hearing, and aids in search engine optimization. You can create captions by writing a transcript and converting it into a standard subtitle file format like WebVTT or SRT. Most popular video hosting platforms and HTML5 video players make it easy to upload and display these text files.

Why video captions matter for your small business website

Adding captions to your website videos is no longer just an optional nice-to-have feature, as it plays a vital role in creating an inclusive digital environment. Many website visitors watch videos with the sound turned off, especially when browsing on mobile devices in public spaces or work environments. By providing accurate text captions, you ensure that your message reaches these users regardless of their audio settings.

Furthermore, search engines cannot natively watch video files to understand the spoken content. When you provide a written transcript or caption file alongside your video, search engine crawlers can index that text. This helps search engines better understand your page content, which can positively impact your overall search visibility and organic traffic over time.

  • Improves user engagement for mobile visitors watching without sound
  • Essential for ADA compliance and web accessibility standards
  • Helps search engines index spoken video content for better SEO

How to create and upload your video captions

The first step in adding captions is creating an accurate text transcript of everything spoken in your video. You can type this out manually or use automated transcription software, though manual review is crucial to fix errors in names, industry terms, and punctuation. Once your transcript is finalized, you need to format the text with precise time codes indicating when each line should appear on the screen.

The industry standard format for web videos is the Web Video Text Tracks file, commonly known as a VTT file. After generating your VTT file, you can upload it directly to your video hosting provider or embed it using the HTML5 track element on your website. Always preview your video to ensure the timing matches the spoken audio correctly.

  • Write a complete and accurate text transcript
  • Add exact start and end timestamps for each dialogue line
  • Save the file in the standard WebVTT format
  • Upload the file to your video host or content management system

Captions, subtitles and transcripts are not the same thing

These three words get mixed up all the time, and the difference matters when accessibility is the reason you are adding them. Most small business videos need captions first. A transcript is a useful extra, and subtitles only come into play if you serve customers in another language.

TypeWhat it containsWho it helps most
CaptionsSpeech in the same language as the audio, plus important sounds, with timingDeaf and hard of hearing viewers, and anyone watching muted
SubtitlesA translation of the dialogue into another language, with timingViewers who can hear but speak a different language
TranscriptThe full text on the page, with no timingPeople who prefer to read, and anyone skimming for one detail

What a caption file looks like

A caption file is plain text that you can open in Notepad or TextEdit. Each block, called a cue, has a start time, an end time and the words to show. Here is a short WebVTT example:

WEBVTT
00:00:01.000 --> 00:00:04.000
Welcome to our shop here in Tacoma.
00:00:04.500 --> 00:00:07.000
[phone ringing]
Let me grab that for you.
  • VTT starts with the word WEBVTT on the first line and uses a period in its timestamps. It is the format browsers read natively.
  • SRT numbers each cue and uses a comma in its timestamps. Many video hosts and social platforms accept it, but a plain HTML video player needs VTT.
  • Save as UTF-8. Other encodings can turn apostrophes and accented letters into garbage characters.
  • Converting is quick. If you have the free ffmpeg tool, run ffmpeg -i captions.srt captions.vtt. Many caption editors can also export both formats.

How to add captions on the platform you use

Where the video livesHow to add captionsGood to know
YouTubeIn YouTube Studio, open Subtitles, pick the video and add a language. Then upload a file, paste a transcript for auto-sync, or type as the video plays.Auto captions are published on their own when available, so review them. Sound cues such as [applause] help.
VimeoUpload a caption file in the video settings.Vimeo takes SRT and WebVTT, prefers WebVTT, and requires UTF-8. If you replace the video, upload the caption file again.
WordPress Video blockSelect the block, choose Text tracks in the toolbar, then upload a .vtt file. Set the label, the source language and the kind.Set the kind to Captions. If you leave it empty it defaults to Subtitles. This applies to uploaded videos, not YouTube embeds.
Custom HTML videoAdd a track element inside the video tag, as shown below.The file must load from the same domain unless the video tag has a crossorigin attribute.
<video controls src="/videos/shop-tour.mp4">
  <track default kind="captions" srclang="en" label="English" src="/videos/shop-tour.vtt">
</video>

For a YouTube video embedded on your site, the captions live on YouTube, so you add and edit them in Studio and the embedded player picks them up. Viewers can switch them on with the CC button. To show them by default, add cc_load_policy=1 to the embed URL.

What makes captions good enough for accessibility

Automatic captions are a good first draft, but the W3C accessibility guidance is clear that they do not meet accessibility needs unless someone has confirmed they are fully accurate. One dropped word such as “not” can reverse the meaning of a sentence. Local names are a common failure too, so check how the software handled words like Puyallup, Sumner or your own street and staff names.

  • Match the words spoken, with correct spelling and punctuation.
  • Keep the timing tight, so each line appears as it is said.
  • Name the speaker when more than one person talks and it is not obvious who is speaking.
  • Include sounds that matter, such as [alarm beeping] or [music stops]. Skip background noise that adds nothing.
  • Keep lines short. A widely used guideline is no more than two lines at a time and about 32 characters per line.
  • Test on a phone. Long lines that look fine on a desktop can cover half of a small screen.

Under WCAG, the standard behind most ADA website compliance discussions, captions on prerecorded video are required at Level A, the most basic level. Captions on live video are required at Level AA. A video with no audio that matters to understanding it does not need them. Captions are one part of the bigger picture covered in our guide on making a website accessible.

Why your captions are not showing

When captions work on your computer but not on the live site, the cause is usually the file or the server, not the video.

  • The file will not load. Paste the .vtt address into your browser. If you get a 404 error, the path is wrong.
  • The server sends the wrong file type. It should be served as text/vtt. Your host can usually fix this quickly.
  • The file is on another domain. A caption file on a different domain or CDN is blocked unless cross-origin access is set up on both ends.
  • The first line is wrong. A VTT file must begin with WEBVTT. A renamed SRT file will not work, so convert it properly.
  • Your cache is stale. Clear your site and browser cache after replacing a caption file.
  • Two tracks are competing. On YouTube, check the CC menu after uploading, and remove the automatic track if viewers see both.

If you run videos on a Tacoma or Pierce County business site and want them captioned and checked properly, contact us and we can walk through what you have.

Key takeaways

  • Captions make videos accessible to users watching without sound or living with hearing impairments.
  • Search engines use text transcripts and caption files to better understand and index video content.
  • The WebVTT file format is the standard method for delivering captions on modern websites.
  • Always review automated transcripts manually to ensure spelling and timing accuracy.

Related questions

What is the difference between open and closed captions?

Open captions are permanently burned directly into the video file and cannot be turned off by the viewer. Closed captions allow the viewer to toggle them on or off using the video player controls.

Do I need captions if my videos do not have any dialogue?

If your video contains important background audio, music cues, or sound effects that contribute to the context, you should include descriptive text notes for those elements to maintain accessibility.

Can I rely entirely on automated caption generators?

Automated tools save time, but they frequently make mistakes with spelling, homophones, and proper nouns. You should always review and edit the captions before publishing them on your business website.

Can I add captions for free?

Yes. YouTube generates automatic captions at no cost, and you can correct them in YouTube Studio. For short scripted videos, you can also write a VTT file by hand in a plain text editor. The cost is your time for reviewing and correcting.

Can I add captions after a video is published?

Yes, if they are in a separate file. You can upload or edit them on YouTube, Vimeo or your own site at any time without touching the video. Burned-in captions are part of the picture, so changing them means editing and exporting the video again.

Should I also put a transcript on the page?

It is worth doing for longer videos. A transcript gives people a quick way to scan for an answer, and it adds real page text that search engines can read. Keep it accurate, and put it under the video or in an expandable section.

This answer was written with AI from a visitor's question. It is general information, not advice for your specific site. For help with your own website, talk to our team.

Free answers about web design, SEO, site speed and WordPress. For our services, pricing or your own project, contact us or call (253) 987-6029.

See all questions →