Black Friday: 10% off Castmate Pro until Dec 1, applied at checkout →
Add to Chrome

ASS to VTT converter for Chromecast

Chromecast, Google TV and web players read WebVTT (.vtt), not ASS or SSA. Open or drop an .ass or .ssa file. This page reads the [Events] section, keeps italics, bold, underline, line breaks and top-of-screen lines, removes styling the TV can't show, checks every subtitle and saves a .vtt. Everything happens in this page; the file isn't uploaded.

Positive if the subtitles show up too early, negative if too late.

What happens to ASS styling

What the converter fixes and checks

Hosting the .vtt for Chromecast

The TV downloads the subtitle file itself, from its own player page on www.gstatic.com. Three things have to be right on the server that hosts the file:

  1. CORS: the response needs Access-Control-Allow-Origin: * (or the receiver's origin). Without it the TV silently shows no subtitles.
  2. Content type: text/vtt is the right type for WebVTT. Some players refuse files served as text/plain or application/octet-stream.
  3. HTTPS: the TV's player page is https, so a subtitle file on plain http is blocked.
nginx
location ~* \.vtt$ {
    types { text/vtt vtt; }
    add_header Access-Control-Allow-Origin "*" always;
}
Apache (.htaccess, needs mod_headers)
AddType text/vtt .vtt
<FilesMatch "\.vtt$">
    Header set Access-Control-Allow-Origin "*"
</FilesMatch>
Amazon S3

Bucket → Permissions → Cross-origin resource sharing (CORS):

[
  {
    "AllowedOrigins": ["*"],
    "AllowedMethods": ["GET", "HEAD"],
    "AllowedHeaders": ["*"],
    "MaxAgeSeconds": 3000
  }
]

Upload with the right type:

aws s3 cp subtitles.vtt s3://YOUR-BUCKET/subtitles.vtt --content-type text/vtt
Cloudflare R2

Bucket → Settings → CORS policy:

[
  {
    "AllowedOrigins": ["*"],
    "AllowedMethods": ["GET", "HEAD"],
    "AllowedHeaders": ["*"],
    "MaxAgeSeconds": 3600
  }
]

Upload with the right type:

npx wrangler r2 object put YOUR-BUCKET/subtitles.vtt --file subtitles.vtt --content-type text/vtt --remote
Cloudflare Pages (_headers file)
/*.vtt
  Access-Control-Allow-Origin: *

Pages already serves .vtt files as text/vtt.

Check a hosted .vtt

Paste the file's address. This page fetches it without cookies, from a different site than the one hosting it, the way the TV does, and checks the type and the content.

No file at hand? Check our sample file.

Have an .srt file? Use the SRT to VTT converter. Castmate for Chrome sends a page's subtitles to the TV and converts SRT automatically. For a whole stream, use the Chromecast stream checker. If subtitles still don't show, see subtitles not showing on the TV. Add Castmate to Chrome