SubtitleMedic

Convert DFXP to SRT

Turn .dfxp subtitles downloaded from Netflix, Amazon or a streaming site into SubRip for any player or TV.

Processed in your browserNo sign-up.dfxp

How to convert DFXP to SRT

  1. Open your .dfxp file

    Drop one file into the box above, or click to browse. .dfxp, .ttml, .xml and .itt files all open here. The file is read by your browser and never uploaded.

  2. Check the preview

    The Conversion box shows how many subtitles were read and what changes. Look at a few lines in the preview, especially lines in italics and two-line subtitles.

  3. Download the .srt file

    Save the converted file. It keeps the original name with the new extension, so movie.en.dfxp becomes movie.en.srt.

What a DFXP file looks like

A DFXP file is XML. It starts with a header that lists styles and screen regions, then each subtitle as a paragraph:

<tt xmlns="http://www.w3.org/ns/ttml" ttp:tickRate="10000000">
  <head>
    <styling>
      <style xml:id="s1" tts:fontStyle="italic"/>
    </styling>
  </head>
  <body>
    <div>
      <p begin="31200000t" end="54800000t">Is this seat taken?</p>
      <p begin="170200000t" end="194100000t" style="s1">[train whistle blows]</p>
    </div>
  </body>
</tt>

Paragraphs. Each <p> is one subtitle. A <br/> inside it starts a new line.

Times in ticks. 31200000t means 31,200,000 ticks. With ten million ticks per second, the subtitle appears at 3.12 seconds. Other files write clock times such as 00:00:03.120, or offsets such as 3.12s. The converter reads all of them.

Styles by name. The second paragraph names style s1, which the header defines as italic. A style can name another style, and a paragraph can inherit a style from the block around it. The converter follows those references to find out which lines are italic, bold or underlined.

Regions. A region is a box on the screen. Subtitles placed in a region at the top of the picture, usually to keep them clear of text burned into the video, are marked as such in the .srt.

How the same subtitles look in SubRip

1
00:00:03,120 --> 00:00:05,480
Is this seat taken?

2
00:00:17,020 --> 00:00:19,410
<i>[train whistle blows]</i>

Every subtitle gets a number, counting from 1, and its times are written as hours, minutes, seconds and milliseconds. Italics become <i> tags, which every player that reads SubRip shows. A line from a top region starts with {\an8}, the code VLC, MPC-HC, Kodi and most TVs use for a line at the top.

Why your DFXP file won't play

DFXP was designed for delivering subtitles between companies, not for playing them at home. A streaming service's player reads it. Most other software doesn't:

  • Many TVs and set-top boxes only list .srt files next to the video.
  • Video editors usually import SubRip, and some import WebVTT, but few import TTML.
  • Older media players skip the file or show the raw XML.
  • Even players that read TTML may read only part of it, missing ticks, styles or the times of nested blocks.

SubRip has none of these problems. It is plain text, it has been around since the early 2000s, and almost every device reads it. Converting gives you that file without retyping anything.

Tips for a clean conversion

Check the first and last lines. Compare the first subtitle with the start of the speech and the last one with the end of the film. A DFXP file states its own times exactly, so they should match. If every line is off by the same amount, your video has a different intro or cut. Move all lines at once with Shift Subtitle Timing.

Sound descriptions come along. Files made for viewers who can't hear the audio include lines such as [door creaks] and speaker names. To remove them after converting, use Remove SDH from Subtitles.

Accented letters. DFXP files are almost always UTF-8, and the .srt is saved as UTF-8 too. If letters still look wrong in the preview, pick another encoding next to the file name, or repair the file with Fix Subtitle Encoding.

Name the file after the video. A file called movie.srt next to movie.mkv is picked up automatically by VLC, Plex, Jellyfin and most TVs.

Frequently asked questions

What is a DFXP file?

DFXP stands for Distribution Format Exchange Profile, the name the W3C first gave to its Timed Text format, TTML. A .dfxp file is XML. Each subtitle is a <p> element with a begin and an end time, and the styling and screen positions are described in a header. Streaming services use it to deliver subtitles, and tools that save those subtitles often name the file .dfxp.

Why won't my TV or video editor open a .dfxp file?

Most TVs, media players and editing programs read SubRip (.srt), and many of them don't read TTML at all, or read only part of it. Converting to .srt gives you a plain text file with numbered subtitles and simple times, which almost everything opens.

What are times like 10010000t in my file?

Ticks. Netflix-style DFXP files count time in ticks and state on their first line how many ticks make a second, usually ttp:tickRate="10000000". 10010000t is then 1.001 seconds. The converter reads the tick rate and writes ordinary SubRip times such as 00:00:01,001.

Is anything lost when converting DFXP to SRT?

The words, line breaks and times stay exactly the same. Italic, bold and underline become SubRip tags, and a line placed at the top of the picture keeps the {\an8} code that most players follow. Colours, fonts, sizes and exact positions have no place in SubRip and are left out.

Can I convert an .xml file with this page?

Yes, if it holds Timed Text or YouTube captions. Many downloaders save the same DFXP content with an .xml extension. The page reads what is inside the file, so the extension doesn't matter.

Are my subtitle files uploaded anywhere?

No. The file is read and converted by JavaScript in this browser tab. It never leaves your device, and the tool keeps working if you go offline after the page has loaded.