CapsAI

Formats

What Is an SRT File? Format, One Cue Byte by Byte, and the DJI Kind

An SRT file is a plain text list of timed subtitle cues. See one cue byte by byte, the five mistakes that break it, what YouTube accepts, and the DJI drone kind.

What is an SRT file? A plain text file that holds subtitles for a video. "SRT" is short for SubRip, the Windows program that first wrote the format in 2000, and the file is nothing more than a numbered list of cues. Each cue has a counter, a start time, an end time and the words to show between those times. The video is not touched. A player such as VLC, or a platform such as YouTube, reads the file next to the video and draws the text at the right moments.

Because it is plain text, you can open an SRT file in Notepad, TextEdit or any code editor, and you can write one by hand. That simplicity is also why SRT files break so easily: one period where a comma should be, or one missing blank line, and a player silently drops the cue. This post shows one cue byte by byte, lists the five formatting mistakes that cause most failures, explains what YouTube accepts, and covers the other kind of .SRT, the flight-data file a DJI drone writes next to every video.

SRT file meaning

SubRip was written by a developer known as Brain in 1999 and first released on 3 March 2000, to rip subtitles out of DVDs by recognizing the text in the picture. Its output format outlived the program. Today "SRT" means the SubRip subtitle format, and the .srt extension is the one most video players, editors and caption platforms look for first.

The format has four parts per cue, as Wikipedia's SubRip entry and the Matroska project's subtitle page both describe them: a numeric counter, the time the subtitle should appear followed by an arrow and the time it should disappear, the subtitle text on one or more lines, and a blank line that ends the cue. There is no header or style section; everything a player needs is in the cues.

SRT file format: one cue, byte by byte

Here is a real cue, the kind you would find at the top of any SRT file:

LineContentWhat it is
11The cue counter. One byte, the digit 1, then a line break. Counters run 1, 2, 3 and so on.
200:00:01,000 --> 00:00:03,500The timing line. 29 bytes: a 12-character start time, a space, the three-character arrow, a space, a 12-character end time.
3Hi, my name is AliceThe first text line. Any UTF-8 text.
4and this is John.A second text line. Players show it under the first.
5(empty)A blank line. This is the end-of-cue marker, not decoration.

A few details inside that timing line decide whether a player accepts the file.

  • Hours are always two digits. The time is hours:minutes:seconds,milliseconds, so one second in is 00:00:01,000, not 0:00:01,000 or 00:01,000.
  • The decimal separator is a comma. Wikipedia notes the comma "is used for the decimal separator between seconds and milliseconds". A period here is the single most common reason an SRT file fails, because it is the WebVTT convention and editors copy it across.
  • Milliseconds are three digits. 00:00:01,5 is not half a second. Write 00:00:01,500.
  • The arrow is two hyphens and a greater-than sign with a space on each side: --> and nothing else.
  • Line breaks can be LF or CRLF. A file saved on Windows uses two bytes per line break, a file saved on a Mac or Linux uses one. Players accept both, so the same five-line cue is 72 bytes with LF endings and 77 with CRLF.
  • Encoding is UTF-8 in practice. There is no official encoding in the SubRip format, which is why Wikipedia says parsers must try to detect it. YouTube removes the guesswork: it requires plain UTF-8.

Formatting tags are allowed by the format, derived from HTML: bold, italic, underline and font color. Players vary in what they draw and YouTube ignores all of them.

The five formatting mistakes that make players drop cues

Run this checklist on any file that loads but shows nothing, or shows some lines and skips others.

  1. A period instead of a comma in the milliseconds. 00:00:01.000 is WebVTT timing. Find and replace the period with a comma in every timing line, or convert the file with the SRT to VTT converter if VTT is what you actually need.
  2. A missing blank line between cues. Without the empty line, the next counter and timing line are read as text of the previous cue, and both cues show up as garbage or not at all. Each cue needs exactly one blank line after it.
  3. Dropped hours or short milliseconds. 0:00:01,000 and 00:00:01,00 both fail strict parsers. Every time needs the full 00:00:00,000 shape.
  4. A broken arrow. -- >, ->, a Unicode arrow character, or no spaces around the arrow all stop the cue from being timed.
  5. The wrong encoding or extension. A file saved as ANSI with Hindi or Tamil text shows boxes or question marks, and a file saved as captions.srt.txt is not an SRT file to most players. Save as UTF-8 and check the real extension.

Counters that skip a number or repeat are tolerated by most players but rejected by some, so renumber after you edit. The SRT cleaner strips stray tags, bracketed descriptions and empty cues and renumbers the rest, in the browser, without uploading the file. If the file still fails, SRT file not working walks through eleven causes, including timing drift and platform rejections.

How to open an SRT file

Any plain text editor opens it: Notepad or Notepad++ on Windows, TextEdit on a Mac (switch to plain text mode first, or it will save rich text), or VS Code anywhere.

To see the subtitles on the video, use a player. VLC's own wiki says that if the subtitle file has the same name as the video, "VLC will automatically open the subtitle file and display subtitles" when you open the video. So lecture.mp4 and lecture.srt in the same folder is all it takes. A file with a different name can be loaded from VLC's Subtitle menu, and every loaded file is listed there so you can switch between them.

To edit the cue text or timing without a desktop program, the SRT editor opens the file in your browser, lets you change any line or time, and downloads the result. Nothing is uploaded.

How to make an SRT file

There are four common routes.

  • Write it by hand. For a 30-second clip with ten lines, a text editor and the cue shape above are enough. Save as UTF-8 with the .srt extension.
  • Time a transcript. If you already have the words, the TXT to SRT generator turns a plain text transcript into numbered, timed cues you can then adjust.
  • Download from YouTube Studio. Your own video's caption track, automatic or uploaded, can be downloaded from Studio under Subtitles.
  • Export from a subtitle editor or a transcription service. Desktop editors such as Subtitle Edit and Aegisub save SRT directly.

If you have two files to combine, either two halves of one video or two languages, how to merge SRT files covers both cases.

What is an SRT file for YouTube

YouTube's supported file list puts SubRip among the basic subtitle formats it recommends, alongside SubViewer, MPsub, LRC and Videotron Lambda, and says these "only require basic timing info, and can be edited using any plain text editing software". Three rules from that same help page matter when you upload:

  • Only basic versions of the file are supported.
  • "No style info (markup) is recognized", so bold or color tags are ignored.
  • "The file must be in plain UTF-8."

YouTube's own example timing line is 00:00:00,599 --> 00:00:04,160, with the comma. Upload the file in Studio under Subtitles and YouTube attaches it as a closed caption track viewers can turn on, off, or auto-translate. If you need captions that cannot be turned off, the file is not the answer; burning them into the video is, and the last section covers that.

For a comparison of which platforms accept a file at all, SRT vs VTT vs TXT has a dated table, and the caption file formats guide covers the wider family.

SRT file from a DJI drone

Search "srt file dji" and you reach a different problem. DJI cameras and drones can write a .SRT file next to each video, and it is a valid SubRip file, but the text in each cue is flight and camera data rather than dialogue. DJI's support article for the Zenmuse H20N says plainly: "After video subtitles are enabled in the camera settings, an SRT file will be generated separately."

That article lists what each cue carries: a frame counter, the time difference from the previous frame, a timestamp down to the millisecond, iso, shutter, fnum (aperture), ev, focal length, digital zoom, latitude and longitude, relative and absolute altitude, the aircraft's speed on three axes, its yaw, pitch and roll, and the gimbal's yaw, pitch and roll. Cues are keyed to frames, so even a short clip holds hundreds of them.

On consumer drones the switch is reported on DJI's forum as General Settings, Camera, Advanced Settings, Video Subtitles in the DJI Fly app, and some models are reported to embed the data in the MP4 instead. DJI's consumer manuals were not checked for this post, so treat the menu path as a forum report.

What to do with a DJI SRT:

  • To see the data over the footage, keep the file next to the video with the same name and open the video in VLC. The numbers appear as subtitles.
  • To stop it being generated, turn Video Subtitles off in the camera settings.
  • Do not upload it to YouTube as a caption track. It is well formed, so YouTube will accept it, and your viewers will get altitude readings as captions.
  • To caption the drone video with words, make a separate subtitle file, or burn captions into the export.

Where CapsAI fits

CapsAI does not make, import or export SRT files. It transcribes the speech in an MP4 or MOV up to 10 minutes long, in one of 11 spoken languages including English, Hindi and Hinglish, lets you correct every word and timing in the browser, and exports an MP4 with the captions burned into the picture. That is the route when you want captions that show on every platform, including the ones that do not accept a subtitle file at all.

If you already have an SRT file and need to edit, clean, convert or time it, the free tools linked above do that in the browser without uploading the file. New CapsAI accounts get 3 free minutes to start, packs start at $4 (₹49 in India, €4 in the euro area) for 20 minutes, and watermark-free export comes with every paid pack.

What to do next

  • Need to fix one: run the five-mistake checklist, then the SRT cleaner, then the SRT editor.
  • Need to make one from a transcript: the TXT to SRT generator.
  • Found one next to drone footage: it is flight data; leave it or turn Video Subtitles off.
  • Need captions nobody can switch off: burn them in with CapsAI and upload the MP4.
Published 26 Oct 2026

Frequently asked questions

What does SRT stand for?

SRT is short for SubRip, the program that first wrote the format. SubRip was created in 1999 and first released in March 2000 to extract subtitles from DVDs, and its plain text output became the most widely supported subtitle format.

What is the SRT file format?

A plain text file of numbered cues. Each cue is a counter, a timing line in the shape 00:00:01,000 --> 00:00:03,500 with a comma before the milliseconds, one or more lines of text, and a blank line that ends the cue. There is no header or style section.

How do I open an SRT file?

Open it in any text editor such as Notepad, TextEdit in plain text mode or VS Code to read or change the cues. To watch the subtitles on the video, give the SRT file the same name as the video and open the video in VLC, which loads it automatically, or load it from VLC's Subtitle menu.

How do I make an SRT file?

Write the cues by hand in a text editor and save as UTF-8 with the .srt extension, turn a plain text transcript into timed cues with a TXT to SRT generator, download your own video's caption track from YouTube Studio, or export from a subtitle editor or transcription service.

Does YouTube accept SRT files?

Yes. YouTube lists SubRip among its recommended basic formats. It only supports basic versions of the file, ignores all style markup, and requires plain UTF-8. Upload it in YouTube Studio under Subtitles and it becomes a closed caption track viewers can turn on or off.

What is the SRT file my DJI drone created?

A flight-data file. When video subtitles are enabled in the camera settings, DJI writes a separate SRT file whose cues hold the frame counter, timestamp, iso, shutter, aperture, focal length, zoom, GPS coordinates, altitude, speed and attitude for each frame. Open the video in VLC to see the data, or turn Video Subtitles off to stop it.

Can CapsAI export an SRT file?

No. CapsAI transcribes an MP4 or MOV up to 10 minutes long and exports an MP4 with the captions burned in. For an SRT file you already have, the free browser tools for editing, cleaning and converting SRT work without uploading the file.

See Your Subtitles in Action

Try a style and language for your next video. No sign-up needed to try. Free for a video up to 3 minutes.

Vertical video with sample captions
Upload Your Video

Related CapsAI tools