
How to create valid SRT files
The SRT (SubRip Text) format is one of the most widely used subtitle formats. This guide explains its structure and how to create valid SRT files.
SRT File Structure
An SRT file consists of multiple subtitle entries. Each entry contains:
-
Subtitle Number
- A sequential number starting from 1
- Must be followed by a blank line
-
Timestamp
- Format: HH:MM:SS,mmm —> HH:MM:SS,mmm
- Example: 00:00:01,000 —> 00:00:04,000
- Represents start and end times
-
Subtitle Text
- One or more lines of text
- Can include basic formatting
- Followed by a blank line