Skip to content
Free Subtitle Converter
Language
Color theme
Support us

SRT to DFXP converter

Some video platforms, players and caption workflows still ask for DFXP files, the name early TTML went by. Convert an SRT file into a .dfxp file here, with every caption’s timing, line breaks and italics kept.

Convert your subtitle file

Subtitle fileStays on your device

Drop subtitle files here

SRT, VTT, ASS, SBV, TTML, SUB, SMI, LRC and more · up to 100 files

Or paste subtitle text
No file at hand?

Your file is read by this page in your browser. It is not uploaded anywhere.

How to use it

  1. Open the SRT file

    Drop the .srt file, or several at once. Fix any broken letters with Text encoding before you download.

  2. Check the DFXP preview

    DFXP is already selected. Captions appear as timed p elements inside the body.

  3. Download the .dfxp file

    Upload it where your platform asks for DFXP or timed text, adding a language first if it requires one.

DFXP and TTML

DFXP, the Distribution Format Exchange Profile, was the name of TTML while it was a draft. The format became the TTML 1 standard in 2010, and many tools kept the .dfxp extension.

The file this page writes is the same TTML 1 document the SRT to TTML converter writes, saved with a .dfxp extension. It uses the final namespace, http://www.w3.org/ns/ttml.

Before and after

Two SRT captions as DFXP. Each caption is a p element with its begin and end time, the italic caption gets a span with tts:fontStyle="italic", the line break becomes <br/> and the & is written as &amp;.

Your SRT file
1
00:00:01,000 --> 00:00:03,500
<i>Where were you last night?</i>

2
00:00:04,000 --> 00:00:06,250
At the station,
waiting for you & the kids.
The DFXP file you download
<?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="">
  <body>
    <div>
      <p begin="00:00:01.000" end="00:00:03.500"><span tts:fontStyle="italic">Where were you last night?</span></p>
      <p begin="00:00:04.000" end="00:00:06.250">At the station,<br/>waiting for you &amp; the kids.</p>
    </div>
  </body>
</tt>

If the platform rejects the file

Very old players, built while TTML was a draft, may expect the namespace http://www.w3.org/2006/10/ttaf1 and show nothing with a newer file. Other platforms require a language: xml:lang on the tt element is left empty, so add one, such as xml:lang="en".

Check the platform’s caption help page for anything else it needs, such as styles or regions. The file has none, so captions appear wherever the player shows them by default.

Prefer the command line?

If FFmpeg is installed on your computer, this conversion takes one command:

ffmpeg -i input.srt -f ttml output.dfxp

FFmpeg 4.4 and later writes TTML. It does not know the .dfxp extension, so -f ttml is needed, and its TTML writer keeps words and line breaks but not italics.

Nothing to install here: open up to 100 files at once on this page and download them all as one ZIP.

Need it the other way round? Use the DFXP to SRT converter. More about these formats: XML subtitles explained: TTML, DFXP and IMSC

Questions and answers

Is a DFXP file different from a TTML file?

Not when it comes from this site: the XML is identical, and only the extension differs. DFXP files from other tools may still use the older draft namespace.

Can I rename the .dfxp file to .xml?

Yes, if a platform asks for .xml. The content is plain XML, so the extension does not change how it is read.

Are positions and colors added?

No. The file has no regions or colors, so captions appear in the player’s default place. Italic, bold and underline are kept.

Buy me a coffee