How to Write an SRT File by Hand (Format, Timestamps and Common Errors)
By Bhavya ยท 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 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.
- A number. Captions are numbered 1, 2, 3 and so on, in order.
- A timing line. The start time, a space, the arrow
-->, a space, and the end time. - 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.
| Moment | Written as |
|---|---|
| 1.2 seconds | 00:00:01,200 |
| 1 minute 5.5 seconds | 00:01:05,500 |
| 1 hour, 2 minutes, 3.04 seconds | 01: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.
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
.txton the end (captions.srt.txtwon't be recognised). - Name it like the video (
my-video.srtnext tomy-video.mp4), so desktop players load it automatically and you don't mix up versions.
Common mistakes
| Mistake | What happens | Fix |
|---|---|---|
| Missing blank line between blocks | The next block's number and timing are read as caption text, so two captions merge into one strange one | Make 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 not | Use a comma before the milliseconds |
| End time before start time | The caption is skipped | Check both times on that line |
| Missing arrow in the timing line | The block is skipped | Write --> between the two times, with a space on each side |
| Wrong encoding | Accents or Hindi letters turn into strange symbols | Re-save as UTF-8 |
| Numbers out of order | Usually harmless, but strict tools complain | Renumber from 1 |
Check it by importing it
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.
Ready to caption your video?
Free, in your browser, and your video never leaves your device.
Open CapMagic Studio โ