Skip to main content

SRT & ASS Subtitle Converter

Convert subtitle files between SRT and ASS formats instantly in the browser. Preserve timing information while unlocking advanced styling capabilities.

Advertisement

Original Subtitles
Ready
Lines: 0 Time: 0ms

Advertisement

Subtitle Engineering Reference SRT & ASS Format Guide

SRT to ASS & ASS to SRT Conversion: Timing, Styling, and Container Rules

SubRip (.srt) and Advanced SubStation Alpha (.ass) solve very different subtitle delivery problems. An SRT file carries minimal cue sequencing: a cue index, a start and end timestamp, and dialogue lines with occasional basic markup. A SubStation Alpha v4.00+ file acts as a structured rendering script divided into metadata headers, named style definitions, and timed event rows. Moving captions reliably between the two formats requires accurate centisecond math, safe override tag translation, and proper color byte ordering.

1. Why Plain SubRip Differs Fundamentally from ASS v4.00+

Media players such as VLC, Kodi, smart televisions, and streaming boxes treat SRT files passively. Because the SRT specification does not store font families, stroke thickness, shadow offsets, or screen coordinates inside the file header, the playback device applies its own global preferences. That works smoothly for straightforward spoken dialogue, yet breaks down whenever captions overlap, translate on screen signs, or require consistent typography across phones, laptops, and hardware TVs.

By contrast, ASS embeds its visual instructions directly beside the dialogue stream using the libass rendering model. Video engineers rely on ASS before hardcoding subtitles through FFmpeg (-vf "ass=subtitles.ass") or muxing soft subtitle tracks into Matroska (.mkv) containers. Conversely, distributing transcripts to legacy television USB players, YouTube caption importers, or plain text accessibility pipelines often demands converting rich ASS scripts back down into universal SRT cues without leaving broken override syntax on screen.

Specification Detail SubRip (.srt) Advanced SubStation Alpha (.ass)
Timecode Precision HH:MM:SS,mmm (Milliseconds, comma) H:MM:SS.cc (Centiseconds, dot)
Section Structure Sequential numeric cue blocks separated by blank lines [Script Info], [V4+ Styles], and [Events]
Styling Control Basic inline tags only (<b>, <i>, <u>) Header Style: definitions plus curly brace overrides
Line Breaks Literal newline characters inside the cue block Explicit \N hard line break token inside CSV row
Primary Color Format Rare nonstandard <font color="#RRGGBB"> Standard 8 hex digit alpha BGR (&H00BBGGRR&)

2. Millisecond to Centisecond Timestamp Math

Timestamp syntax is the primary reason renaming a file extension fails. An SRT timestamp tracks hours as at least two padded digits and separates whole seconds from milliseconds with a comma, such as 00:01:42,387. An ASS dialogue timestamp drops leading hour padding to one digit when under ten hours, uses a period before fractional seconds, and carries two centisecond digits instead of three milliseconds, producing 0:01:42.39.

Whereas plain SRT defaults every cue cleanly via player preferences, ASS timestamps rely on 10 ms granularity. When converting from SRT to ASS, truncating the third millisecond digit would consistently pull subtitles up to 9 milliseconds earlier on screen. Instead, this converter calculates total cue timing down to the millisecond and applies Math.round() to convert thousandths of a second into hundredths. If rounding carries 996 ms upward to 100 centiseconds, the seconds counter rolls forward cleanly into the next second and resets centiseconds to 00, preventing invalid .100 values in strict players. During reverse conversion from ASS back to SRT, two digit centiseconds multiply by ten (for example, .39 becomes ,390) with padded hours restored cleanly.

3. Tag Mapping, Dynamic Column Parsing, and Clean Reversal

Subtitle styling lives inside dialogue strings in both formats, yet follows incompatible delimiters. Converting forward from SRT scans cue text for standard <b>, <i>, and <u> emphasis tags and rewrites their opening and closing pairs into native SubStation Alpha override sequences: {\b1}...{\b0}, {\i1}...{\i0}, and {\u1}...{\u0}. Multiline dialogue paragraphs inside an SRT block are collapsed onto one comma delimited Dialogue: line by replacing line breaks with \N, ensuring the subtitle parser never splits a sentence across broken columns.

Converting an existing .ass file back to .srt presents a subtle engineering challenge: every ASS file can list columns under [Events] in a custom order defined by its Format: line (such as placing Effect before Text, or keeping extra margin columns). Rather than assuming fixed array indices, the parser reads the active Format: declaration dynamically to locate Start, End, and Text, falling back to the standard ten column order only when Format: is absent. It strips every {...} override block (removing vector drawings, \pos(x,y) screen coordinates, or karaoke timing tags) and turns both \N and \n tokens back into standard multiline SRT breaks. Because ASS dialogue text sits in the final column and may itself contain spoken commas, the parser merges trailing text slices back into one cue string cleanly instead of truncating after the first comma.

4. How ASS Styling Options Build Headers and Reverse RGB Colors

Under the ASS Styling Options tab, you can customize typography before generating an ASS file without opening desktop editors first. Every field maps directly into the generated [V4+ Styles] definition row, enforcing safe input bounds (for example, font size is clamped between 8 and 200 defaulting to 24, while outline width and shadow depth clamp between 0 and 20).

Notice how color channels flip during conversion. Web color pickers supply standard CSS hexadecimal strings arranged as Red, Green, Blue (#RRGGBB). SubStation Alpha inherits Windows GDI COLORREF byte ordering with a leading alpha byte, formatting colors as &HAABBGGRR&. Picking orange #FF6600 from the color input causes the converter to swap the first and third byte pairs automatically into &H000066FF& (00 means fully opaque, followed by 00 blue, 66 green, and FF red). If those bytes were left in RGB order, viewers would see bright blue text instead of orange.

With the default settings (Arial, size 24, white text #FFFFFF, black outline #000000, outline 2, shadow 1), the converter generates the exact header structure shown below:

[Script Info]
Title: Converted by Black Claaw Tools
ScriptType: v4.00+
WrapStyle: 0
ScaledBorderAndShadow: yes
YCbCr Matrix: None

[V4+ Styles]
Style: Default,Arial,24,&H00FFFFFF&,&H000000FF&,&H00000000&,&H00000000&,0,0,0,0,100,100,0,0,1,2,1,2,10,10,10,1

[Events]
Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
Dialogue: 0,0:00:01.50,0:00:04.25,Default,,0,0,0,,{\i1}Subtitles preserved with ASS timing.{\i0}

Notice two deliberate header choices in that output. First, ScaledBorderAndShadow: yes scales stroke thickness and drop shadow proportionally against the playback canvas so borders remain balanced on both 720p phones and desktop monitors. Second, this quick converter leaves PlayResX and PlayResY unset in [Script Info] so standard video players apply their default virtual script resolution cleanly. If you later load the exported ASS file into Aegisub for complex graphic typesetting on 1080p or 4K video, open Properties inside Aegisub to bind your exact target pixel canvas.

5. Bidirectional Conversion Workflow & Production Tips

  • Automatic Mode Detection: Leave the dropdown on Auto Detect and click Convert Subtitles. Any payload containing [Script Info], [V4+ Styles], [Events], or Dialogue: triggers ASS to SRT extraction; otherwise the parser processes the text as SRT to ASS. You can also lock the direction explicitly to SRT to ASS or ASS to SRT before converting.
  • Live Preview Styling: Adjusting font sizes or outline weights inside ASS Styling Options and clicking Apply & Convert immediately regenerates the output header without needing to reload your source file.
  • Encoding & Export Safety: Uploaded .srt, .ass, and .ssa files are read via the browser FileReader as UTF-8, and downloads save directly as clean .ass or .srt text files so accented characters, Japanese kanji, and Arabic script survive playback in VLC, MPV, and FFmpeg.
  • FFmpeg Hardsubbing vs. Softsubbing: When burning subtitles into MP4 video, remember to transcode video frames rather than passing -c copy, or subtitles will not render onto the picture. Verify that your system fonts directory actually contains the chosen font family when burning with libass, because missing fonts cause FFmpeg to fall back silently to a system sans font.

Frequently Asked Questions

How does this tool handle timestamp conversion from SRT to ASS?

SubRip SRT uses milliseconds (00:00:00,000 with a comma), while ASS uses centiseconds with a single digit hour when under ten hours (0:00:00.00 with a period). The tool parses raw milliseconds and mathematically rounds to the nearest hundredth of a second, rolling seconds and minutes upward when milliseconds round to 100 centiseconds.

Will my custom bold and italic tags in the SRT file be preserved?

Yes. Standard HTML style tags such as <b>, <i>, and <u> are parsed and converted directly into ASS formatting override tags ({\b1}, {\i1}, {\u1} and matching closing tags) so dialogue emphasis remains intact, and multiline blocks convert cleanly to \N.

What is the maximum SRT file size I can convert?

Because files are processed locally inside your browser using the HTML5 File API, there is no server upload cap. Feature length movie transcripts spanning thousands of dialogue cues typically parse and convert within milliseconds depending on device memory.

Is my subtitle text or video transcript sent to your server?

No. All cue parsing, style byte reordering, timestamp math, and file generation run strictly in client side JavaScript memory with zero external network uploads.

Can I open the exported ASS file in Aegisub or VLC?

Yes. Exported scripts include compliant SubStation Alpha ScriptType: v4.00+ headers, named Style: Default rows, and formatted Dialogue: lines compatible with Aegisub, VLC, MPV, HandBrake, and FFmpeg.