twittLoad Local only

Guide

How to add captions to a video on X with an SRT file

Closed captions with an .srt file versus captions burned into the picture, how to write a clean SRT file, and how to attach it on X.

Short answer

On x.com in a desktop browser, attach your video to a post, choose the option to upload a caption file under the video, and select a correctly formatted .srt file; on the mobile apps, captions have to be burned into the video before you upload it.

Key takeaways

  • X's caption file upload works on the web, not in the mobile apps.
  • An SRT file is plain text: a number, a timecode line with an arrow, the caption text and a blank line for each caption.
  • Timecodes use hours:minutes:seconds,milliseconds with a comma, such as 00:00:04,250.
  • Burned-in captions show everywhere but can't be turned off or read by screen readers as text.
Contents
  1. What are the two ways to caption a video on X?
  2. How do you write an SRT file?
  3. How do you upload the caption file on X?
  4. What if you're posting from a phone?
  5. How do captions fit with alt text?
  6. Questions

Many people scroll X with the sound off, and some can't hear the audio at all. Captions fix both problems. X lets you attach a caption file to a video when you post from the web, and viewers can then turn the captions on in the player. This guide covers how to write that file, how to attach it, and what to do when you're posting from a phone.

What are the two ways to caption a video on X?

You can upload a separate .srt caption file that viewers switch on, or burn the captions into the video picture so they always show.

SRT caption file Burned-in captions
Where you add them x.com in a browser Your editing app, before upload
Viewer can turn off Yes No
Text readable by assistive tech Yes No, it's part of the picture
Works from the phone apps No Yes
Survives reposts on other sites No Yes

Closed captions from a file are the cleaner option for accessibility. Burned-in captions are the practical option when you post from a phone, and many creators use them because they show even when the viewer never taps anything.

How do you write an SRT file?

An SRT file is plain text in which each caption is a number, a start and end timecode joined by an arrow, one or two lines of text, and a blank line.

Here are the first two captions of a short clip:

1
00:00:00,500 --> 00:00:03,200
This is the checker we use before
every upload.

2
00:00:03,400 --> 00:00:06,000
Drop a file in and it reads it locally.

A few rules keep the file valid:

  1. Number captions in order, starting at 1.
  2. Write times as hours:minutes:seconds,milliseconds. The separator before the milliseconds is a comma, not a period. A period is the most common mistake, and it comes from the WebVTT format, which looks similar.
  3. Put a space, two hyphens, a right angle bracket and a space between the start and end times.
  4. Leave one blank line after each caption's text.
  5. Save the file as plain text with the .srt extension and UTF-8 encoding, so accented letters and emoji come through.

Keep each caption short enough to read in the time it's on screen: one or two lines, around 32 to 42 characters per line. Include important sounds in brackets, such as [door slams], and name the speaker when it isn't obvious.

You don't have to type timecodes by hand. Free subtitle editors such as Aegisub and Subtitle Edit let you set times against the video and export SRT, and many editing apps generate a draft transcript you can correct and export.

How do you upload the caption file on X?

On x.com in a browser, attach the video to a new post, choose the option to upload a caption file shown under the video, then pick your .srt file and post.

The steps, as X's help pages describe them:

  1. Open x.com on a computer and start a new post.
  2. Attach your video. Make sure it uploads cleanly first; our guide to failed video uploads helps if it doesn't.
  3. Under the video preview, select the caption file option.
  4. In the window that opens, upload your .srt file.
  5. Post as normal.

Accounts with access to X's Media Studio can also attach subtitle files there, with a language setting for each file. X has moved these menus more than once, so if a label doesn't match, look for "captions" or "subtitles" near the video.

Run the video through the twittLoad checker before you start. If X rejects the video after you've prepared the captions, you'll have to attach both again.

What if you're posting from a phone?

From the X apps, the reliable way to caption a video is to burn the captions in with an editing app before you upload.

Most phone video editors have an auto-caption or text feature. Turn it on, correct the words it gets wrong, and pick a style with high contrast: white or yellow text with a dark outline or a semi-transparent box behind it. Keep the text above the bottom edge of the frame, because X's player controls and on-screen buttons can cover the lowest part of the picture.

When you export, use the usual settings for X: H.264 MP4, 30 fps, 1080p. Our export guide lists them. Burned-in text can soften slightly after X re-encodes the video, so choose a bold font at a reasonable size.

How do captions fit with alt text?

Captions carry the dialogue and sounds while alt text describes the video as a whole, and a good post uses both.

A screen reader user hears the alt text when they reach the video, before they decide to play it. Captions then help deaf and hard-of-hearing viewers follow along, as well as anyone watching on mute. Our alt text guide covers what to write for video, and the W3C's captioning guidance listed below goes further into style choices.

Questions

Can I add captions to a video in the X app?

X's help pages describe caption file upload as a web feature. From a phone, the practical option is to burn captions into the video with an editing app before you post it.

Why does X reject my SRT file?

Usually the formatting is off: a timecode with a period instead of a comma, a missing blank line between captions, or a file saved as .txt or in an unusual text encoding. Fix those and save as UTF-8 with the .srt extension.

Do captions replace alt text?

No, they do different jobs. Captions carry the speech and important sounds over time, while alt text gives a short description of the video for people who can't see it. Use both when you can.

Can I add captions after the video is posted?

You can't edit the media of a published post in the normal way. Delete and repost the video with the caption file, or prepare the captions before you post next time.

Sources

X limits in this guide were last checked on November 6, 2026. X is a trademark of X Corp.; twittLoad is independent and not affiliated with X Corp.