SubtitleFixer
Tools
☕ Support

TTML to SRT Converter

To convert TTML to SRT, drop your .ttml file on this page and download the SRT file: SubtitleFixer reads the TTML text, frames and ticks timing, and writes one numbered SRT subtitle per paragraph, in your browser and without uploading anything.

No file yet

Add a subtitle file to start.

Add a file to preview the conversion.

.ttml → .srt

Add a file to enable the download.

Your file never leaves your device.

Free TTML to SRT conversion that runs in your browser: your files never leave your device, and there is no sign-up.

How to convert TTML to SRT in 3 steps

  1. Add your TTML files. Drag one or more .ttml files onto the page, or click to choose them.
  2. Pick the output. SRT is the default; switch to VTT for web players.
  3. Download. One file downloads as it is; several download together as one zip.

Example: before and after

Before (TTML with ticks):

<tt xmlns="http://www.w3.org/ns/ttml" xmlns:ttp="http://www.w3.org/ns/ttml#parameter" ttp:tickRate="10000000">
  <body><div>
    <p begin="12000000t" end="38000000t">Hi, and welcome back.</p>
  </div></body>
</tt>

After (SRT):

1
00:00:01,200 --> 00:00:03,800
Hi, and welcome back.

With a tick rate of 10,000,000 ticks per second, 12000000t is 1.2 seconds.

TTML, DFXP and IMSC: what's the difference?

  • TTML is the W3C Timed Text Markup Language, an XML format for subtitles and captions.
  • DFXP is the name the first version of TTML used. Old .dfxp files are TTML too. Use DFXP to SRT for that name.
  • IMSC is a TTML profile for online video. Its text profile converts here; its image profile doesn't.
  • SMPTE-TT and EBU-TT are TTML-based formats from the broadcast world. Their text content usually converts, but check the result.
  • A file named .xml may be the same Timed Text, or a YouTube timed-text file. XML to SRT detects which.

What it can and can't do

It can:

  • Convert text-based TTML, DFXP and IMSC files to SRT or VTT.
  • Read clock times, offset times, frames and ticks, including the TTML default rates when the file omits them.
  • Keep line breaks, italic, bold and underline.
  • Read older encodings and save as UTF-8, with an optional BOM.
  • Convert many files at once.

It can't:

  • Convert image-based subtitles.
  • Keep regions, positions, colours, fonts or animation.
  • Create TTML files. It only reads them.

FAQ

How do I convert TTML to SRT?

Drop the .ttml file on this page and download the SRT file. Each timed paragraph becomes one subtitle with the same start and end times. Nothing is uploaded.

Which TTML versions and profiles work?

Text-based TTML 1 and TTML 2 files, older DFXP files, and the IMSC text profile used for streaming. Image-based profiles, where each subtitle is a picture, can't be converted.

What is IMSC?

IMSC (TTML Profiles for Internet Media Subtitles and Captions) is a W3C profile of TTML for online video. An IMSC text file is a TTML file with a limited set of features, so it converts like any other TTML file.

Are styles and positions kept?

No. SRT has no regions, colours or fonts, so they are removed. Italic, bold and underline are kept as <i>, <b> and <u>, and line breaks are kept.

How are frames and ticks handled?

TTML can give times in frames (00:00:01:12) or ticks (15000000t). SubtitleFixer converts them using the frame rate or tick rate in the file, or the TTML defaults when the file omits those rates.

Can I get VTT instead?

Yes. Switch the output to VTT before you download. That's useful for HTML5 video players.

Is my file uploaded?

No. SubtitleFixer converts TTML to SRT inside your browser, and your file never leaves your device. There is no sign-up.