SRT to TTML converter
Turn an SRT file into TTML or DFXP, the XML timed-text format many distributors, broadcasters and streaming platforms ask for. The conversion runs in your browser: your file is never uploaded. See a preview for free, and download the whole file with a free CaSTV account.
Converter
Your subtitles stay on your device: nothing is uploaded or stored on our server. If you sign in from this page, the text and the options you chose are kept in this browser tab for a few minutes so they are still here when you come back, then deleted. Unsaved text clears after a short period of inactivity.
With an account: up to 60 downloads per hour and 200 per day.
When you need a TTML or DFXP file
Distributors, broadcasters and streaming platforms often ask for subtitles as TTML or DFXP because the XML can carry the language, styling and positions in a standard way. This converter gives you a clean TTML file to start from. Check it against your distributor's specification: some ask for a particular profile (IMSC1, SMPTE-TT or EBU-TT-D), frame-based times or their own style rules.
What changes in your file
- The cues go into a TTML document with media time, one region at the bottom of the picture and centred white text.
- The language you choose in the menu becomes the xml:lang of the file. Pick the language of the subtitles, not of this page.
- Each cue becomes a <p> with begin and end times in hours, minutes, seconds and milliseconds. Line breaks become <br/>, and italics become a span with tts:fontStyle.
- The characters &, < and > are escaped so the XML stays valid. DFXP gives the same file with a .dfxp extension.
Example
1
00:00:01,000 --> 00:00:03,500
<i>Did you hear that?</i>
2
00:00:04,000 --> 00:00:06,250
Nobody leaves the cabin tonight.
<?xml version="1.0" encoding="UTF-8"?>
<tt xmlns="http://www.w3.org/ns/ttml"
xmlns:tts="http://www.w3.org/ns/ttml#styling" xml:lang="en">
<body>
<div>
<p begin="00:00:01.000" end="00:00:03.500"><span tts:fontStyle="italic">Did you hear that?</span></p>
<p begin="00:00:04.000" end="00:00:06.250">Nobody leaves the cabin tonight.</p>
</div>
</body>
</tt>
Common problems
- The platform rejects the file: read its delivery specification. Profiles, frame rates and line-length rules differ from one platform to the next.
- Positioning codes such as {\an8} from the SRT file are not carried over: every subtitle goes in the bottom region.
Questions
Is the converter free?
Yes: the preview works for everyone, and the whole file needs only a free CaSTV account.
Is my file uploaded?
No: your browser reads and converts it, and our server only counts downloads.
Will the file pass a platform's quality check?
Not by itself. It is valid TTML, but each platform has its own rules on profile, timing and style. Use it as a starting point and check it against the specification you were given.
Can I convert TTML to SRT?
Yes: paste a TTML or DFXP file and choose SRT under "Convert to", or use the TTML to SRT converter. TTML to SRT converter
