Convert ASS and SSA to Clean SRT or VTT Without Broken Tags
In brief
Strip ASS override tags, vector sign drawings, and overlapping cues into clean SRT or VTT files using FFmpeg, Subtitle Edit, or a Python script.
Keywords: convert ASS to SRT; strip ASS tags FFmpeg; fix overlapping subtitles; pysubs2 clean ASS; ASS to VTT
Extract an ASS or SSA subtitle track from an anime or drama MKV, run it through a basic converter, and the resulting SRT often looks unusable. Lines start with raw override tags like {\an8\pos(320,40)}, random polygon coordinates like m 0 0 l 120 0 120 40 0 40 flash across the screen, and spoken dialogue jumps to the top of the frame or freezes Plex, Jellyfin, and smart TV players.
Those glitches are not random corruption. They happen because Advanced SubStation Alpha stores layout, animation, and drawing instructions that plain SRT and WebVTT cannot represent. Once you know which three ASS structures cause the mess, you can strip them cleanly with FFmpeg, Subtitle Edit, or a short Python script.
Why Naive ASS-to-SRT Converters Break Your Subtitles
SRT and WebVTT are linear cue formats designed for timed text. ASS and SSA are closer to a lightweight graphics language layered over video, and three specific features break simple conversions:
- Inline override tags: Curly-brace directives such as
{\an8}(top-center alignment),{\pos(320,40)}(pixel coordinates),{\fad(200,200)}(fade timing), and{\c&HFFFFFF&}(color) sit directly inside the dialogue text. If a converter fails to parse them, they print on screen as literal gibberish. - Vector drawing commands (
\p1to\p9): Typesetters draw colored rectangles or shapes behind translated street signs using\p1followed by coordinate paths likem 0 0 l 100 0 100 50 0 50. Naive converters treat those coordinates as spoken sentences. - Frame-by-frame sign tracking and overlapping layers: A sign moving across a panning shot can generate 24 separate
Dialogue:events per second. Combined with karaoke OP/ED syllable effects and simultaneous top-screen notes, a single second of video can dump dozens of 40-millisecond overlapping cues into your SRT.
If you are still deciding whether your player or web platform needs SRT or WebVTT, check our breakdown of SRT vs VTT subtitle differences. If your MKV contains image-based Blu-ray subtitles instead of ASS text, you will need OCR rather than tag stripping, which we cover in PGS vs SRT subtitles.
Choosing the Right Cleanup Method
The right tool depends on whether you have a clean dialogue-only ASS file or a heavily typeset fansub release with signs and karaoke layers.
Method 1: Inspect and Extract Cleanly With FFmpeg
Before running an extraction command, check which subtitle streams are actually inside your MKV. Many anime and drama releases put a "Signs & Songs" track at index 0 and the full spoken dialogue at index 1. Inspect the streams first with ffprobe:
ffprobe -v error -select_streams s \ -show_entries stream=index:stream_tags=language,title \ -of csv=p=0 ./episode01.mkv
You will see one line per subtitle stream, showing its global stream index, language code, and title (for example, 2,eng,Signs & Songs and 3,eng,Full Dialogue). Count only the subtitle lines starting from zero to get the relative subtitle index for -map 0:s:N.
Once you know the dialogue track is the second subtitle stream (0:s:1), extract and convert it directly to SRT or WebVTT:
# Convert to SRT ffmpeg -i ./episode01.mkv -map 0:s:1 -c:s srt ./episode01.srt # Or convert to WebVTT ffmpeg -i ./episode01.mkv -map 0:s:1 -c:s webvtt ./episode01.vtt
If you already have a standalone ASS or SSA file, pass it straight to FFmpeg:
ffmpeg -i ./episode01.ass -c:s srt ./episode01.srt
FFmpeg strips standard {...} override blocks automatically, which is enough for simple dialogue tracks. However, FFmpeg does not filter ASS style names and will not delete \p1 vector drawing coordinates. If your output SRT still contains m 0 0 l ... lines or dozens of overlapping sign cues, move to Subtitle Edit or the Python script below.
Method 2: Filter Styles and Merge Overlaps in Subtitle Edit
Subtitle Edit gives you full visual control when you want to see every style layer in a file before deleting anything. It runs natively on Windows and is available cross-platform, making it a reliable choice for heavily typeset episodes or movies.
- Open your
./episode01.assfile (or drag the MKV directly onto the window) via File -> Open. - Click the Style column header to sort cues by their ASS style name. Select and delete non-dialogue styles such as
Signs,OP,ED,Karaoke,Title, orScreen. - Select the remaining dialogue lines (
Ctrl+A), right-click the list, and choose Remove formatting to clear lingering inline tags and HTML font wrappers. - Open Tools -> Merge lines with same time codes to combine dual-line cues that share identical timestamps into a single clean block.
- Run Tools -> Fix common errors with Fix overlapping display times checked so players do not stack colliding cues across the screen.
- Choose File -> Save as and export to SubRip (SRT) or WebVTT (VTT).
For multiple episodes, open Tools -> Batch convert, load your folder, enable Remove formatting and Fix common errors, and export the whole batch at once. If you are comparing Subtitle Edit against other desktop subtitle utilities, see our guide on VideoLingo vs Subtitle Edit vs MemoAI.
Method 3: Batch-Clean an Entire Season With Python and pysubs2
When you have 12 or 24 episodes from the same fansub group, clicking through a GUI for every file gets tedious. The pysubs2 library parses ASS events cleanly, exposes each cue's style name, and provides an event.plaintext property that strips override tags while preserving normal line breaks.
Install the package first:
pip install pysubs2
Save the following script as ./clean_ass.py. It skips comments, drops \p1 through \p9 vector drawings, filters out common sign and karaoke style names, strips inline tags, and merges cues that share the exact same start and end timestamps:
import re
from pathlib import Path
import pysubs2
SKIP_STYLES = ("sign", "op", "ed", "karaoke", "title", "credit", "note")
VECTOR_RE = re.compile(r"\\p[1-9]")
def clean_file(src: Path, dst: Path) -> None:
subs = pysubs2.load(str(src))
cleaned = pysubs2.SSAFile()
for ev in subs:
if ev.is_comment or VECTOR_RE.search(ev.text):
continue
if any(k in ev.style.lower() for k in SKIP_STYLES):
continue
text = ev.plaintext.strip()
if not text:
continue
ev.text = text.replace("\n", r"\N")
cleaned.append(ev)
cleaned.sort()
merged = pysubs2.SSAFile()
for ev in cleaned:
if merged and merged[-1].start == ev.start and merged[-1].end == ev.end:
merged[-1].text += r"\N" + ev.text
else:
merged.append(ev)
merged.save(str(dst))
for path in sorted(Path("./subs_in").glob("*.ass")):
clean_file(path, Path("./subs_out") / f"{path.stem}.srt")
To export WebVTT instead of SRT, change f"{path.stem}.srt" to f"{path.stem}.vtt". If a release group uses unusual style names like TopNote or Sign_01, print {e.style for e in subs} on one episode first and add any unwanted names to SKIP_STYLES.
Translating Your Clean SRT or VTT Without Timestamp Drift
Once the override tags, vector drawings, and overlapping sign layers are gone, your subtitle file is ready for translation. At Equalang Document Translation, we natively accept SRT and VTT files rather than raw ASS or SSA tracks. Converting to a clean dialogue-only SRT or VTT first also prevents wasted credits on polygon coordinates and stops simultaneous sign cues from scrambling sentence order.

Upload your cleaned SRT or VTT on /documents and pick your target language—you can queue episodes one after another, and up to three documents process concurrently per account while the rest wait in line. Every cue number and timecode stays locked, so you can check the source and translation side by side in the workspace before downloading. For tips on handling bilingual playback and timing checks after translation, see our walkthrough on translating an SRT subtitle file.
Frequently Asked Questions
How do I keep dual-language lines in SRT without causing overlaps?
Put both languages inside a single SRT cue separated by a line break rather than creating two separate cues with identical timestamps. Most players including MPV, VLC, Plex, and Jellyfin stack two separate overlapping cues unpredictably, whereas a single two-line cue renders cleanly at the bottom of the screen.
Why do <i> or <font> tags still appear in my SRT after FFmpeg conversion?
FFmpeg converts ASS italic and color overrides into basic HTML-style tags like <i> and <font color="#ffffff"> because some SRT players support them. If your TV or media server prints those tags literally, run Remove formatting in Subtitle Edit or use event.plaintext in the pysubs2 script to strip them completely.
Why does FFmpeg fail when I run -c:s srt on an MKV subtitle track?
That error usually means the track you mapped is a bitmap image subtitle (such as PGS from a Blu-ray or VobSub from a DVD) rather than text-based ASS or SSA. FFmpeg cannot convert image streams into text SRT directly; run ffprobe to check the codec name, and if it reads hdmv_pgs_subtitle or dvd_subtitle, convert it with an OCR tool like Subtitle Edit first.
