๐ŸŽฌ
CapMagic Studio
Subtitle files

How to Write an SRT File by Hand (Format, Timestamps and Common Errors)

By ยท Updated December 1, 2026 ยท 4 min read

SRT is the most widely supported subtitle format, and it is plain text: you can write one in any text editor. That is handy for fixing a file a tool got wrong, adding a missing line, or captioning a short clip from scratch. This guide explains every part of the format and the small mistakes that break it.

The anatomy of an SRT file

An SRT subtitle file with numbered blocks, start and end timestamps with a comma before the milliseconds, and caption text
Numbered blocks, a timing line, the text, and a blank line between captions.

An SRT file is a list of numbered blocks, one per caption, separated by a blank line. Each block has three parts:

1
00:00:01,200 --> 00:00:03,800
What if you didn't move
into a haunted house?

2
00:00:04,140 --> 00:00:05,500
You built one.
  1. A number. Captions are numbered 1, 2, 3 and so on, in order.
  2. A timing line. The start time, a space, the arrow -->, a space, and the end time.
  3. The text. One or two lines of caption text. Then a blank line before the next block.

Timestamp rules

Every time is written as HH:MM:SS,mmm: hours, minutes, seconds, then a comma and three digits of milliseconds.

MomentWritten as
1.2 seconds00:00:01,200
1 minute 5.5 seconds00:01:05,500
1 hour, 2 minutes, 3.04 seconds01:02:03,040
  • Always use two digits for hours, minutes and seconds, and three for milliseconds.
  • The end time must be after the start time.
  • Each caption should end before the next one starts. Overlapping captions are shown inconsistently by different players.
Tip: To find the times, play the video in a player that shows the current time to the millisecond, or caption it once with an automatic tool and edit that file instead of starting from nothing.

Writing the text

  • Keep each caption to one or two lines and roughly one sentence. Caption reading speed has the numbers.
  • Break two-line captions at a natural point, and put the shorter part on top if you can.
  • Plain text is safest. Some players understand <i> and <b> tags, but many ignore them, and YouTube ignores styling in SRT files.
  • Add important sounds in brackets, like [music] or [laughter], if the captions are meant for accessibility.

Saving the file

  • Encoding: UTF-8. This keeps accents and non-Latin scripts (Hindi, for example) intact. In Windows Notepad, choose UTF-8 in the Save As dialog. In macOS TextEdit, use Format โ†’ Make Plain Text before saving.
  • Extension: .srt. Make sure the editor doesn't add .txt on the end (captions.srt.txt won't be recognised).
  • Name it like the video (my-video.srt next to my-video.mp4), so desktop players load it automatically and you don't mix up versions.

Common mistakes

MistakeWhat happensFix
Missing blank line between blocksThe next block's number and timing are read as caption text, so two captions merge into one strange oneMake sure every block ends with an empty line
Dot instead of comma in times (00:00:01.200)Many tools reject the line. CapMagic Studio accepts it, but others may notUse a comma before the milliseconds
End time before start timeThe caption is skippedCheck both times on that line
Missing arrow in the timing lineThe block is skippedWrite --> between the two times, with a space on each side
Wrong encodingAccents or Hindi letters turn into strange symbolsRe-save as UTF-8
Numbers out of orderUsually harmless, but strict tools complainRenumber from 1

Check it by importing it

Transcript tab listing imported caption lines with their start and end times
Imported captions appear as lines in the Transcript tab, so gaps and merged lines stand out.

The quickest test is to load the file against the video. In CapMagic Studio, open the video and click Import SRT. Each caption appears as a line in the Transcript tab, so a merged or missing caption is easy to spot, and you can play the video to check the timing.

Two things to know: the Studio joins a two-line caption into one line and re-wraps it to fit the video, and lines that start after the end of the video are skipped (lines that run past the end are shortened). Once it looks right, use SRT to save a clean copy with consistent numbering and formatting, or burn the captions straight into the video. See How to burn SRT subtitles into an MP4.

Frequently asked questions

Do the numbers have to start at 1?

They should. Many players don't care, but some editors and platforms check that the numbers run 1, 2, 3 in order.

Can an SRT file set the font or colour?

Not reliably. Styling in SRT is limited to a few tags that many players ignore. To control the look, burn the captions into the video instead.

How long should one caption stay on screen?

Professional guidelines such as Netflix's use at least 5/6 of a second and at most 7 seconds per caption.

Related tool

SRT Subtitle Generator

Turn speech into a timed SRT file for YouTube, Premiere Pro, DaVinci Resolve or Final Cut Pro.

Open SRT generator โ†’

Ready to caption your video?

Free, in your browser, and your video never leaves your device.

Open CapMagic Studio โ†’