Skip to content

Subtitles to TTML

Convert SRT and VTT subtitles to TTML (DFXP) for broadcast and streaming platforms, or back again.

Input
Output

Subtitles to TTML

Paste subtitles and convert them to TTML (also called DFXP), the XML-based caption format that many broadcast workflows and streaming platforms require instead of plain SRT or VTT files. The direction option also runs the conversion the other way, turning a TTML document back into a standard SRT file for editors that don't read XML captions.

The TTML profile picks the metadata a receiving platform expects — DFXP, IMSC1 or EBU-TT. Time notation controls how each cue's begin and end attributes are written: as seconds with a decimal fraction, or as hours, minutes, seconds and frames at the frame rate you set. Italic and bold text can be encoded two ways in the output — as inline styling attributes on each span, or as named styles declared once in the document header and referenced by id — and a separate switch lets you discard formatting entirely if the target platform doesn't support it. Subtitle position places the on-screen region at the top or bottom of the frame, and document language sets the TTML root's language attribute.

Turn on the overlap and invalid-time warning to have the tool flag cues whose timing runs backwards or that overlap the one before it — issues that often slip through when subtitles are edited by hand. The live tally reports the cue count, the conversion direction and, when warnings are on, how many problems were found.

Everything runs in your browser. Subtitle files are never uploaded anywhere, so it's safe to convert scripts under embargo or client confidentiality. Copy the result, download it as a .txt file, or send the output straight back into the input to run it through another tool.

FAQ

What is TTML and why do I need it?
TTML (Timed Text Markup Language), also known as DFXP, is an XML caption format some broadcast and streaming delivery specifications require instead of SRT or VTT. This tool converts your existing subtitles into it, or back.
Which TTML profile should I choose?
DFXP is the older, widely supported baseline. IMSC1 is the current standard many streaming platforms ask for. EBU-TT is common in European broadcast workflows. Check your delivery spec if you're unsure.
Does converting TTML back to SRT keep italic and bold text?
Yes, when "Keep italic and bold formatting" is on. The tool reads both inline styling attributes and named styles it generated itself, and writes them back as <i> and <b> tags.
Can it convert a TTML file made by another tool?
It reads standard <p> cues with begin/end attributes and common styling attributes. Named styles referencing an external stylesheet or vendor-specific extensions outside that may not round-trip correctly.
Is my subtitle file uploaded anywhere?
No. The conversion runs entirely in your browser—your subtitles never leave your device.