iLoveConverter
Categories 11 categories
Subtitle Video

SRT, Explained

iLoveConverter Team 3 min read

On this page

SRT (SubRip Text) is the oldest and most universally supported subtitle format in the world. Born in the days of DVD rippers and SubRip, it has outlasted dozens of competitors by virtue of being dead simple: plain text, numbered cues, timestamps with commas, and optional basic formatting. Every web player, every desktop video app, every streaming platform, and every mobile device can read SRT files.

What an SRT file looks like

1
00:00:01,500 --> 00:00:04,000
Welcome to the tutorial.

2
00:00:04,500 --> 00:00:07,000
Today we will cover the basics of video editing.

Each cue has three parts: an integer index, a timestamp range using HH:MM:SS,mmm --> HH:MM:SS,mmm, and one or more lines of subtitle text. A blank line separates cues. That’s it.

Technical rules

AspectDetail
EncodingOriginally Latin-1; UTF-8 is standard today
Timestamp separatorComma (,) — never a period
Timestamp precisionMilliseconds (three decimal places)
IndexConsecutive integers, starting at 1
Line endingsUnix (\n) or Windows (\r\n) both work
Formatting<i>, <b>, <u> tags (most players ignore others)
File extension.srt

SRT vs VTT vs ASS

FeatureSRTVTTASS/SSA
EncodingAny, but UTF-8 commonUTF-8 onlyAny
Timestamp decimalCommaPeriodPeriod
HeaderNoneWEBVTT[Script Info]
CSS stylingNoYesAdvanced
PositioningNoYes (limited)Precise per-pixel
KaraokeNoNoYes
Web nativeNo (requires JS)YesNo
YouTube uploadSupportedSupportedNot directly

Conversion routes

  • SRT to VTT — change the timestamp commas to periods, prepend WEBVTT\n\n. Straightforward.
  • VTT to SRT — the reverse; strip any cue identifiers and CSS blocks.
  • SRT to ASS — gain precise positioning, karaoke effects, and advanced styling; lose nothing you had.
  • Convert subtitle encoding — subtitles with Chinese, Japanese, Arabic, or accented characters must be UTF-8 or they will render as mojibake.

Common problems

  • No subtitles showing up — wrong encoding, or the file has a UTF-8 BOM that breaks strict parsers. Save as UTF-8 without BOM.
  • Out-of-sync cues — SRT has no global timing offset. Shift all timestamps by adding or subtracting milliseconds, or convert to ASS where you can set a single offset.
  • Period vs comma — mixing them breaks many parsers. SRT requires commas; VTT requires periods.
  • Trailing blank lines — a final newline is fine, but content after the last cue may be parsed as an extra cue.

FAQ

Can I use SRT directly in HTML5 video?

No. HTML5’s <track> element only supports VTT. You need a small JavaScript shim to parse and display SRT, or convert SRT to VTT first.

Why does my SRT file have garbled Chinese characters?

You saved it in GB2312 or Big5 but the player expects UTF-8. Re-save as UTF-8. The .srt format itself is encoding-agnostic, so the file’s BOM or the player’s auto-detection determines how it renders.

Is SRT still used by professional studios?

Less so. Most professional workflows use ASS/SSA (advanced styling and positioning) or TTML/EBU-TT-D (broadcast standard). But SRT remains the lingua franca for user-generated content and quick sharing.

How do I hardcode SRT subtitles into a video?

You need to burn them in with ffmpeg, HandBrake, or similar tools. SRT itself is just a sidecar file — it never modifies the video stream. Hardcoding requires rendering.

Try it yourself — free, right in your browser

Everything mentioned in this guide runs locally on this site: no upload, no watermark, no sign-up.

Format deep-dives: SRT (.srt) , VTT (.vtt) , ASS (.ass.ssa)