SRT File Format: Complete Guide to SubRip Subtitles
Everything you need to know about the SRT subtitle format. Structure, specifications, compatibility, and best practices.
Why SRT Still Matters
SRT is the format we recommend as a working master: it is plain text, easy to inspect, and accepted by nearly every editor and player. This guide explains the exact structure of an SRT entry, how millisecond timestamps are interpreted, and the edge cases that break imports. It also shows how we use SRT as the source for conversions to VTT, ASS, and platform-specific formats.
SRT File Structure
An SRT file consists of a sequence of numbered subtitle entries separated by blank lines. Each entry follows a strict four-part structure:
- Sequence number: A positive integer starting from 1, incremented sequentially
- Timestamp range: Start and end times in the format `HH:MM:SS,mmm --> HH:MM:SS,mmm`
- Subtitle text: One or more lines of plain text (or limited HTML-style tags)
- Blank line: An empty line that separates entries — this is a required part of the format
Visual Example
Here is a complete, correctly formatted SRT file:
1
00:00:01,500 --> 00:00:04,000
Welcome to this tutorial on
subtitle formatting.
2
00:00:05,000 --> 00:00:09,500
The SRT format is simple but
has specific rules you must follow.
3
00:00:10,200 --> 00:00:14,800
<b>Important:</b> Always separate
entries with a blank line.
Each element must appear exactly as shown. The blank line between entries is mandatory — it signals the end of one subtitle entry and the beginning of the next. Missing blank lines cause two entries to merge into one, which is one of the most common formatting errors.
Timestamp Format
Timestamps use the format `HH:MM:SS,mmm` where:
- `HH` = hours (00-99, though typically 00 for most content)
- `MM` = minutes (00-59)
- `SS` = seconds (00-59)
- `mmm` = milliseconds (000-999)
The separator between seconds and milliseconds is a comma in SRT. This is a critical difference from WebVTT, which uses a dot (period). The arrow `-->` is always surrounded by single spaces on both sides.
#### Timestamp Math and Calculations
Understanding timestamp math is essential for timing adjustments, quality assurance, and format conversions:
- 1 second = 1,000 milliseconds
- 1 frame at 24fps = approximately 41.67ms (1000 / 24)
- 1 frame at 25fps = 40ms (1000 / 25)
- 1 frame at 29.97fps = approximately 33.37ms (1000 / 29.97)
- 1 frame at 30fps = approximately 33.33ms (1000 / 30)
- 1 frame at 23.976fps = approximately 41.7ms (1000 / 23.976)
To calculate display duration: subtract the start time from the end time. For example:
- `00:00:02,000 --> 00:00:05,500` has a duration of 3,500ms (3.5 seconds)
- `00:01:30,000 --> 00:01:35,250` has a duration of 5,250ms (5.25 seconds)
- `00:10:00,000 --> 00:10:01,000` has a duration of exactly 1,000ms (1 second)
To convert frames to milliseconds for frame-accurate timing: `frames * (1000 / framerate)`. At 23.976fps (common for film), one frame equals approximately 41.7ms. At 25fps (common for European television), one frame equals exactly 40ms.
Our Delay Tool and Fix Overlaps tools handle these calculations automatically, saving you from manual arithmetic and potential errors.
Multi-Line Subtitle Text
Each entry can contain one or two lines of text. Professional standards recommend:
- Maximum 2 lines per entry — more than two lines covers too much of the video frame
- Maximum 42 characters per line — the industry standard for readability
- Break at natural linguistic boundaries — phrases, clauses, or complete sentences
For two-line entries, the first line should be slightly shorter than or equal to the second line to create a visually balanced subtitle:
00:00:15,000 --> 00:00:18,500
She walked into the room and
looked around nervously.
Incorrect line breaking disrupts the reading flow. Compare:
❌ 00:00:15,000 --> 00:00:18,500
She walked into the room and looked
around nervously.
The word "looked" is split from its context, creating an awkward pause for the reader. Always break at phrase boundaries.
#### Multi-Speaker Dialogue
When two speakers talk in quick succession, give each their own line using a hyphen prefix:
00:00:20,000 --> 00:00:22,500
- Where are you going?
- To the store.
The hyphen convention (with a space after the hyphen) is widely recognized across all video players. Some styles use an en dash (\u2013) or em dash (\u2014) instead, but the standard hyphen is safest for maximum compatibility.
HTML-Style Tags in SRT
SRT supports a limited set of HTML-style formatting tags, though not all video players render them:
| Tag | Purpose | Example | Player Support |
|---|---|---|---|
| `<b>` | Bold text | `<b>Warning!</b>` | VLC, MPC-HC, PotPlayer |
| `<i>` | Italic text | `<i>whispered softly</i>` | VLC, MPC-HC, PotPlayer |
| `<u>` | Underlined text | `<u>Chapter Title</u>` | VLC, MPC-HC |
| `<font color="#RRGGBB">` | Colored text | `<font color="#FFFF00">yellow</font>` | VLC, some players |
Important limitations:
- HTML tags must be properly closed — `<b>text without closing` causes rendering issues in subsequent entries
- Tags can span across lines within an entry but cannot span across entries
- Most web players (YouTube, Vimeo) and streaming platforms strip all HTML tags and display only plain text
- Nested tags (e.g., `<b><i>text</i></b>`) work in some players but not all — test before relying on them
Edge Cases in SRT
Very Short Subtitles
Single-word or very brief subtitles require special handling. The minimum display time is 1 second (1,000ms), even for a single word:
00:00:05,000 --> 00:00:06,000
What?!
Below 1 second, viewers cannot read fast enough even for a single word. For exclamations or interjections that are truly instantaneous, consider merging them into the following subtitle entry.
Very Long Subtitles
For entries that contain more text than can be displayed comfortably in 2 lines of 42 characters, split the content into multiple sequential entries. For example:
00:00:30,000 --> 00:00:33,000
This is a long explanation that
cannot fit in just two lines.
00:00:33,000 --> 00:00:36,000
So we split it across
multiple subtitle entries.
Subtitles with Special Characters
Characters like em dashes (\u2014), ellipses (\u2026), smart quotes, and accented letters (\u00e9, \u00fc, \u00f1) are fully supported in UTF-8 encoded SRT files. Using UTF-8 encoding ensures these characters display correctly on all platforms. Common pitfalls include:
- M-dash vs. double hyphen: Most subtitle standards prefer \u2014 (em dash) over -- (double hyphen) for interruptions
- Ellipsis character vs. three periods: Use the single ellipsis character \u2026 rather than three consecutive periods
- Smart quotes vs. straight quotes: Smart quotes (\u201c and \u201d) display correctly in UTF-8 but may appear as garbage in Latin-1
Empty or Whitespace-Only Entries
An entry with no text or only spaces between the timestamp line and the next blank line is technically present but serves no purpose. Remove these entries to keep files clean and prevent blank flashes during playback. Our Remove Duplicates tool can identify and clean these entries.
Comprehensive Platform Compatibility Matrix
While SRT is widely supported, compatibility varies across platforms and software:
| Platform / Software | SRT Support | Specific Limitations |
|---|---|---|
| VLC Media Player | Full | Supports HTML tags, UTF-8 (with and without BOM), multi-line |
| MPC-HC / PotPlayer | Full | Excellent SRT rendering with all features |
| Windows Media Player | Partial | May struggle with UTF-8 BOM; limited HTML tag support |
| YouTube | Full | Accepts SRT; strips HTML tags; converts to internal format |
| Vimeo | Full | Same as YouTube — accepts SRT, converts internally |
| Netflix (Studio Delivery) | Full | Must meet Netflix character and timing specifications |
| Adobe Premiere Pro | Full | Native SRT import and export |
| DaVinci Resolve | Full | Native SRT import and export |
| Final Cut Pro | Partial | Requires conversion to FCPXML or ICUT for import |
| iOS (Safari, VLC, Infuse) | Good | Most handle SRT well; some require WebVTT conversion |
| Android (MX Player, VLC) | Excellent | Most video player apps support SRT natively |
| Smart TVs (Samsung, LG, Sony) | Varies | Newer models support SRT; older models may fail on non-ASCII characters |
| Kodi / Plex | Excellent | Full SRT support with Unicode |
| HTML5 `<track>` element | Not supported | Does not accept SRT — requires WebVTT |
| TikTok | Good | Accepts SRT; text styling may not be preserved |
Converting SRT to Other Formats
Format conversion is a common need when moving between platforms. Here is a complete conversion guide:
| Target Format | When to Use | Key Differences from SRT | Tool |
|---|---|---|---|
| WebVTT (.vtt) | Web video, HTML5, YouTube, Vimeo | Dot instead of comma for milliseconds; requires WEBVTT header | SRT to VTT |
| ASS/SSA (.ass) | Advanced styling, karaoke, fansubs | Full formatting, positioning, and animation support | ASS to SRT |
| SBV (.sbv) | YouTube (legacy format) | Different timestamp format, no sequence numbers | Batch Converter |
| TXT | Plain text transcription | No timing information, just text | Online Editor |
| JSON | Web application data interchange | Structured data format with timing and text | Batch Converter |
| STL (.stl) | Broadcast television (EBU STL) | Binary format with positioning data | Batch Converter |
| TTML (.ttml) | Netflix, broadcast, accessibility | XML-based format with extensive metadata | Batch Converter |
Key Conversion Considerations
- Timestamp separator: SRT uses commas (`,`) for milliseconds; WebVTT uses dots (`.`). Our converters handle this swap automatically.
- Encoding: The target format must use UTF-8. If your source file uses Latin-1 or ANSI, convert encoding first using our Online Editor.
- HTML tags: SRT's `<b>`, `<i>`, `<u>` tags may be stripped when converting to formats that do not support them (WebVTT uses CSS instead).
- Positioning: SRT has no positioning data. If your workflow requires positioned subtitles, start with ASS format or add WebVTT cue settings after conversion.
- Sequence numbers: Some formats (WebVTT, TTML) do not use sequence numbers — they rely on timestamp order instead.
Our Batch Converter handles all these conversions with encoding preservation and format-specific optimizations.
Common SRT Errors and How to Fix Them
Even experienced subtitle creators encounter these common issues:
| Error | Symptoms | Cause | Fix |
|---|---|---|---|
| Missing blank line | Two entries merge into one | No blank line separator | Add blank line between each entry |
| Wrong timestamp separator | Player rejects the file | Dot used instead of comma | Replace `.` before `-->` with `,` |
| Non-sequential numbering | Entries play in wrong order | Skipped or duplicate sequence numbers | Renumber sequentially from 1 |
| BOM character | Strange character or blank first line | UTF-8 file saved with BOM | Remove BOM using Online Editor |
| Wrong encoding | Question marks, boxes, or mojibake | File saved as Latin-1 or ANSI | Re-encode as UTF-8 without BOM |
| Overlapping timestamps | Two entries visible at once | Next entry starts before previous ends | Use Fix Overlaps |
| Duration too short | Text flashes by too fast | Less than 1 second display time | Extend end timestamp |
| Duration too long | Text lingers on screen | More than 8 seconds display time | Split or reduce end timestamp |
| Unclosed HTML tags | Formatting spills into next entry | Missing `</b>`, `</i>`, or `</u>` | Close all tags properly |
| Trailing whitespace | Unexpected line breaks | Extra spaces at line ends | Trim whitespace from all lines |
| Empty entries | Blank flashes during playback | Entry with no text | Remove empty entries |
Using Our Tools to Fix Errors
- Online Editor — fix encoding, trim whitespace, validate structure, renumber
- Fix Overlaps — automatically correct overlapping timestamps
- Delay Tool — shift all timestamps by a fixed offset
- Remove SDH — clean up speaker labels and sound effects
- Remove Duplicates — eliminate identical consecutive entries and blank entries
SRT Best Practices
- Always use UTF-8 without BOM — ensures compatibility across all platforms, players, and operating systems
- Follow the 42-character line limit — even though SRT allows longer lines, 42 characters is the readability standard for a reason
- Include a blank line between every entry — this is not optional; it is part of the format specification
- Use consistent numbering — sequence numbers must be consecutive integers starting from 1 with no gaps
- Validate before delivery — always open your SRT file in an editor or video player to verify it renders correctly
- Keep timing comfortable — aim for 3-5 seconds per two-line entry (not too fast, not too slow)
- Maintain consistent formatting — do not mix bold and plain text within the same file without a stylistic reason
- Back up originals before conversion — keep a master copy in SRT format before converting to other formats
- Test on the target platform — a file that renders perfectly in VLC may not display the same way on YouTube or a smart TV
- Use line breaks wisely — break at natural linguistic boundaries, never in the middle of a word or phrase
Related Tools
- Online Editor — create, edit, and validate SRT files
- SRT to VTT Converter — convert SRT for web video
- ASS to SRT Converter — convert for advanced styling
- Delay Tool — adjust all timestamps by a fixed offset
- Fix Overlaps — correct overlapping subtitle entries
- Remove SDH — clean speaker labels and sound effects
- Remove Duplicates — delete identical consecutive entries
- Batch Converter — process multiple files simultaneously
- Split Subtitle Lines — format SRT for YouTube compliance
- Split Subtitle Lines — format SRT for TikTok compliance
Conclusion
The SRT format's elegant simplicity — numbered entries with timestamps and text — has made it the universal standard for subtitles for over two decades. Mastering its structure, understanding edge cases, knowing how to troubleshoot common errors, and following professional best practices will serve you well whether you are creating subtitles for a single video or managing a large multilingual library.
Use our free online tools to create, edit, convert, and validate your SRT files with confidence. For advanced workflows, explore our batch processing tools and timing utilities to streamline your entire subtitle pipeline.
How We Reviewed This Guide
This guide was written by the SubTools Editorial Team and reviewed by the SubTools Technical Review Team in November 2026. We checked the file-format rules, timing examples, and cleanup behaviour described here against the current SubTools tools, and we keep a platform-neutral master file rather than copying third-party summaries. If you find an inaccuracy, send the article title and the passage to our contact page; we will correct it and update the review date.
Every guide is written and checked by our in-house team. Read our editorial process