What is an SRT file?
An SRT file is a plain-text subtitle file: a numbered list of captions, each with a start time, an end time and the words to show on screen between them. Video players and video sites read it alongside the video, so the captions can be switched on, edited or translated without touching the video itself. The name comes from SubRip, an old program that pulled subtitles off video discs, and the .srt extension stuck.
By Evin JohnPublished 6 min read
What is inside an SRT file
Open an SRT file in any text editor and you see the whole format at once. There is no header, no settings section and no hidden data. The file is a sequence of blocks called cues, separated by an empty line. A cue tells the player: from this moment to that moment, show these words.
1
00:00:01,000 --> 00:00:03,400
Welcome back, everyone.
2
00:00:03,900 --> 00:00:07,250
Today we look at the launch plan
and who owns each step.
3
00:01:02,010 --> 00:01:04,500
<i>(laughter)</i>- The counter (1, 2, 3...) numbers the cues in order. Players mostly ignore it, but some tools complain if it is missing or out of sequence.
- The timing line holds a start and an end time joined by an arrow made of two hyphens and a greater-than sign. Both times use two digits for hours, minutes and seconds, then a comma and three digits for milliseconds.
- The text can run over one or two lines; more than two gets hard to read on screen. Many players accept a few HTML-like tags such as <i> for italics, but support varies, so plain text is the safe default.
- The blank line ends the cue. A missing blank line is the most common reason a player swallows two captions into one.
Where SRT files are used
- Closed captions and subtitles on uploaded video. Most video hosting platforms and learning systems accept an SRT file as a caption track that viewers can turn on or off.
- Local video players. Desktop players usually pick up an SRT file automatically when it sits next to the video and has the same file name, or let you load one from a menu.
- Translation. Because the timing and the text are separate, a translator can replace the words and keep every timestamp, then ship one SRT per language.
- Editing and search. A transcript with timestamps lets an editor jump to the second where something was said, or turn the text into a quote with its time.
A caption file is a sidecar: it travels next to the video. That is different from burned-in (or open) captions, which are drawn into the picture and cannot be turned off. Sidecar captions are easier to fix after publishing, since you replace a small text file instead of exporting the video again.
SRT versus WebVTT
| SRT (.srt) | WebVTT (.vtt) | |
|---|---|---|
| First line | The first cue, no header | The word WEBVTT, then a blank line |
| Millisecond separator | Comma: 00:00:01,000 | Full stop: 00:00:01.000 |
| Cue numbers | Expected | Optional; a cue can carry a name instead |
| Styling and position | Minimal, player-dependent tags | Cue settings for position and alignment, plus styling |
| Typical home | Video editors, desktop players, uploads | Web video players and browser caption tracks |
Because the two formats are so close, converting a simple SRT file to WebVTT is mostly mechanical: add the header, swap the comma in each timing line for a full stop, and optionally drop the counters. The short Python function below does exactly that and nothing more. It was run on a sample file with Windows line endings, a byte-order mark and an italic tag; it does not translate SRT styling into WebVTT cue settings.
import re
import sys
TIME = re.compile(r"(\d{2}:\d{2}:\d{2}),(\d{3})")
def srt_to_vtt(srt_text):
text = srt_text.lstrip("\ufeff").replace("\r\n", "\n")
out = ["WEBVTT", ""]
for block in re.split(r"\n\s*\n", text.strip()):
lines = block.split("\n")
if lines and lines[0].strip().isdigit():
lines = lines[1:] # cue numbers are optional in WebVTT
if not lines or "-->" not in lines[0]:
continue # skip anything that is not a cue
lines[0] = TIME.sub(r"\1.\2", lines[0])
out.extend(lines + [""])
return "\n".join(out)
if __name__ == "__main__":
with open(sys.argv[1], encoding="utf-8-sig") as f:
print(srt_to_vtt(f.read()), end="")How an SRT file gets made
- Get a transcriptSomeone types what is said, or a speech recognition engine produces a draft that a person checks. See how automated transcription works.
- Split it into captionsThe text is cut into short chunks that fit on screen and can be read in the time they are shown, usually breaking at natural pauses.
- Time each captionEach chunk gets the moment it starts and ends. Speech engines that return word timings can do this automatically; manual tools let you nudge the edges.
- Check it against the videoWatch it through once. Captions that appear late, overlap or flash too briefly are easier to catch by eye than in the file.
Fictional example
- Problem
- Priya, a training coordinator, uploads an SRT for a safety video and the platform rejects it.
- Check 1
- She opens the file in a text editor and sees that cue 14 uses 00:02:11.300, with a full stop. Someone pasted it from a WebVTT file. She changes it to a comma.
- Check 2
- Accented names show up as odd symbols in the preview. She saves the file again as UTF-8 from the editor's save dialog.
- Result
- The file loads, and she watches the first and last minute to confirm the timing still lines up.
Common misconceptions
- "An SRT file contains the video or audio." It holds only text and times. Without the matching video it is just a timed transcript.
- "Renaming .srt to .vtt converts it." WebVTT needs its header and full stops in the times; a renamed file often fails to load.
- "SRT is a formal standard." It is a widely copied convention. That is why tools disagree on details such as styling tags and blank lines at the end of the file.
- "Any transcript can become captions." A transcript without timestamps has to be aligned to the audio first, either by hand or with an alignment tool.
Related terms
- Cue: one caption block with its timing and text.
- Closed captions: captions the viewer can switch on and off, usually including sounds such as (laughter), not only speech.
- Subtitles: often used for translated dialogue; in everyday use the words overlap with captions.
- [Automated transcription](/blog/what-is-automated-transcription): software that turns speech into the text an SRT file is built from.
- [Medical transcription](/blog/what-is-medical-transcription): a specialized transcription field with its own accuracy and privacy rules.
Where Natively fits
Natively, which publishes this page, is a desktop meeting assistant for macOS and Windows, not a subtitle tool. It transcribes your microphone and your computer's audio while a call happens, then keeps the transcript and notes on your computer, where you can export them as Markdown, JSON, plain text, HTML or PDF. It does not export SRT or WebVTT files and does not import audio or video files to caption them, so for captioning a finished video you will want a dedicated captioning tool or editor. If you are comparing transcription apps for live calls instead, see the best live transcription software.
Questions people ask
What is an SRT file?
A plain-text subtitle file made of numbered captions, each with a start time, an end time and the text to show. Video players and platforms load it next to the video as a caption track.
How do I open an SRT file?
Any text editor opens it, since it is ordinary text. To see the captions over a video, load it in a video player or upload it to the platform hosting the video.
What is the difference between SRT and VTT?
WebVTT starts with a WEBVTT header, uses a full stop before the milliseconds instead of a comma, makes cue numbers optional and supports positioning and styling. SRT is simpler.
Can I make an SRT file from a transcript?
Yes, if the transcript has timestamps, or after you align it to the audio. Each caption needs a start and end time, so plain text alone is not enough.
Where to go next
Natively captures the call audio on your own computer, so no bot joins the meeting. Notes, recaps and answers come from the transcript.
Facts on this page were last checked on . Product details come from the Natively app itself; if something here is out of date, tell us at hello@heynatively.com.
