TTML to SRT converter
Turn a TTML or DFXP subtitle file (.ttml, .dfxp or .xml) into SRT. These XML files come from subtitling companies, broadcasters and streaming platforms; editing software and festival forms want SRT. 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.
Where TTML and DFXP files come from
TTML (Timed Text Markup Language) is the XML subtitle format of the W3C, and DFXP is the name of its first version: the same kind of file, with a .ttml, .dfxp or .xml extension. Subtitling companies, broadcasters and streaming platforms exchange subtitles in it. When you receive one and need to edit the film, send a screener or upload to Vimeo, you need SRT.
What changes in your file
- Each paragraph (<p>) becomes a numbered SRT cue, sorted by start time.
- Times are read in every TTML form: clock time, frames (with the file's frame rate), ticks, or seconds and milliseconds, plus the begin time of the div that holds them.
- <br/> becomes a line break. Italic, bold and underline are kept, whether set on the text or in a referenced style.
- Regions, positions, colours, fonts and metadata are removed, since SRT has none.
Example
<?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>
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.
Common problems
- "The XML could not be read": a tag is not closed or the file was cut short. Open it in a text editor and check its end.
- Times are counted in frames but the file gives no frame rate: 30 frames per second is assumed, as the TTML standard says. Check the result against the video.
- SMPTE time base or sequential timing: the converter refuses these rare files rather than guess the times. Export them again with media time.
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.
Is DFXP the same as TTML?
Yes, for this purpose: DFXP is the first TTML profile, and both are read the same way here. Older DFXP files use an earlier XML namespace, which the converter also reads.
Can I convert SRT to TTML?
Yes: choose TTML or DFXP under "Convert to", or use the SRT to TTML converter. SRT to TTML converter
