SRT to DFXP / TTML Converter
Some video platforms, broadcasters and players ask for subtitles as DFXP or TTML (Timed Text Markup Language) instead of SRT. This converter turns SubRip (.srt) files — or WebVTT, SBV and ASS files — into a clean TTML 1 document with a .dfxp extension. Drop one file or a batch; everything runs in your browser and nothing is uploaded.
Accepted: .srt, .vtt, .sbv, .ass, .ssa, .dfxp, .ttml, .xml · You can add several files at once.
Your files never leave your device.
How to use this tool
- Drop one or more .srt files on the box above.
- Check the cue count and any parser warnings for each file.
- Download each .dfxp file, or use “Download all” for a batch.
- Rename the file to .ttml or .xml if your platform asks for that extension; the content is the same.
What the output contains
The result is a TTML 1 XML document in UTF-8. The <head> defines one default style (proportional sans-serif, white, centred) and one region at the bottom of the screen, and the <body> contains one <p> element per subtitle with begin and end clock times in milliseconds, such as 00:01:02.500.
Line breaks inside a cue become <br/>. Italic, bold and underline tags become <span> elements with tts:fontStyle, tts:fontWeight and tts:textDecoration. Other tags, such as <font color> or ASS override codes, are removed, and characters that XML reserves (&, <, >) are escaped.
Platform requirements
TTML is a family of profiles rather than a single format, and platforms add their own rules: some require a specific ttp:timeBase or frame-based timing, a language in xml:lang, particular regions, or limits on characters per line and reading speed. The file produced here is plain, valid TTML 1 that most tools that accept DFXP can read, but always check the delivery specification of the platform you are uploading to.
Before converting, it is worth running the file through Fix Subtitles: delivery checks commonly reject overlapping cues, empty cues and lines that read too fast, and the fixer finds all of these.
Converting the other way
Need to open a DFXP, TTML or XML subtitle file in a normal player or editor? Use the DFXP to SRT converter. It reads frame, tick and clock timing and keeps line breaks and italics.
Frequently asked questions
- Is DFXP the same as TTML?
- Yes, for practical purposes. DFXP is the name of the first TTML draft and is still used for TTML 1 files. The output of this converter is TTML 1 with a .dfxp extension; you can rename it to .ttml or .xml.
- Will the file be accepted by Netflix or Amazon?
- It may not be enough on its own. Streaming platforms publish their own timed-text specifications with extra rules for timing, layout and line length. The file is valid TTML 1, but check it against the platform's requirements before delivery.
- Is the timing preserved exactly?
- Yes. Times are written as clock times with milliseconds (00:01:02.500), which is the same precision as SRT.
- Can I set the font, colour or position?
- No. The converter writes one default style and a bottom-centred region. Edit the XML in a text editor or a captioning tool if you need different styling.
- Can I convert VTT or ASS files to DFXP too?
- Yes. The format is detected from the content, so WebVTT, SBV and ASS/SSA files are converted the same way. ASS styles and positioning are dropped.
- Is anything uploaded to a server?
- No. The conversion runs in your browser. Your subtitle files never leave your device.