Skip to content
SubtitleDesk
FreeNo uploadBrowser-based

DFXP / TTML to SRT Converter

DFXP and TTML (Timed Text Markup Language) are the XML subtitle formats used by streaming services, broadcasters and professional captioning tools, often saved as .dfxp, .ttml or plain .xml. Most media players, TVs and video editors cannot open them. Convert them to SubRip (.srt) here — drop one file or a whole batch, and the conversion runs in your browser without uploading anything.

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

  1. Drop one or more .dfxp, .ttml or .xml subtitle files on the box above.
  2. Check the cue count and any parser warnings for each file.
  3. Open the preview to confirm that line breaks and italics look right.
  4. Download each .srt file, or use “Download all” for a batch.

DFXP, TTML and XML: one format, several names

TTML is a W3C standard for timed text. Its first version was published as a draft under the name DFXP (Distribution Format Exchange Profile), and the name stuck: a .dfxp file is TTML 1. Netflix, Amazon Prime Video, Hulu and many broadcasters use TTML-based formats for delivery, and subtitles downloaded from streaming sites often come as TTML saved with an .xml extension. IMSC, the profile used for internet media and in DASH and HLS streams, is TTML too.

Inside, a TTML file is an XML document. The <head> defines styles and screen regions, and the <body> holds one <p> element per subtitle with begin and end times, for example <p begin="00:00:01.000" end="00:00:03.500">Hello<br/>there</p>.

What the converter reads

TTML allows several ways to write a time, and real files use all of them. The converter reads them all and turns them into SRT timestamps:

  • Clock times such as 00:01:02.500, and SMPTE-style frame times such as 00:01:02:12, using the file's ttp:frameRate and ttp:frameRateMultiplier (so 29.97 and 23.976 fps files come out right).
  • Tick times such as 10010000t, common in Netflix-style DFXP, using the file's ttp:tickRate. Offset times in hours, minutes, seconds, milliseconds and frames (2.5s, 250ms, 50f) are read too.
  • dur instead of end, and begin offsets set on <body> or <div>, which shift every subtitle inside them.
  • Line breaks from <br/>, and italic, bold and underline, whether they are set directly on a <span> or through a style defined in the head. They become <i>, <b> and <u> in the SRT.

What SRT cannot keep

SRT stores timing, text and a few simple tags, so positions, regions, colours, fonts and background boxes are dropped, and every subtitle plays wherever the player shows subtitles by default, usually bottom centre. Paragraphs without any timing are skipped and reported as a warning. Namespace prefixes (<tt:p>) and files that are not perfectly well-formed are accepted.

Once you have an SRT, you can shift or sync it, convert it on to WebVTT for the web, or turn it back into TTML with the SRT to DFXP converter.

Frequently asked questions

What is the difference between DFXP and TTML?
DFXP is the name of the first TTML draft and is used for TTML 1 files today. Both are XML documents with the same structure, so this converter reads .dfxp, .ttml and .xml files alike.
My subtitle file ends in .xml. Will it work?
Yes, if it is TTML, which is the case for most XML subtitles from streaming services. The format is detected from the content: an XML document whose root element is <tt>.
The times look wrong after converting. Why?
Usually the file uses frame or tick times and declares an unusual frame or tick rate. The converter uses the rates declared in the <tt> element; if they are missing, TTML's defaults (30 fps, and one tick per second) apply. Fix a constant offset with Shift Subtitles or drift with Sync Subtitles.
Are colours and positions kept?
No. SRT has no standard way to store positions, regions or colours, so they are removed. Italic, bold, underline and line breaks are kept.
Can I convert several files at once?
Yes. Drop a whole batch; each file gets its own download button, and “Download all” saves them in sequence.
Are my files uploaded anywhere?
No. Parsing and conversion run in your browser tab, and the site has no server-side processing. Your subtitles never leave your device.