Skip to content

Formats

Subforge supports text, XML, binary, and broadcast subtitle formats through a consistent API. Each format has its own documentation page with specifics on timing syntax, styling, and options.

Format matrix

See Format Support Matrix for a concise overview of feature coverage.

Text formats

XML formats

Binary formats

Broadcast formats

Subpath entry points

core, ass, ssa, srt, vtt, sbv, lrc, microdvd, ttml, sami, realtext, qt, stl, pgs, dvb, vobsub, pac, scc, cap, teletext

Example:

ts
import { parseVTT } from 'subforge/vtt'
import { unwrap } from 'subforge/core'
import { toPGS } from 'subforge/pgs'

const doc = unwrap(parseVTT(vttText))