Convert TTML to SRT
Turn TTML (Timed Text) subtitles from broadcasters and streaming services into SubRip.
How to convert TTML to SRT
Open your .ttml file
Drop one file into the box above, or click to browse. .ttml, .dfxp, .xml and .itt all open here. The file is read by your browser and never uploaded.
Check the preview
The Conversion box shows how many subtitles were read and what changes. If some paragraphs couldn't be timed, their line numbers are listed, so you can look at them in the original file.
Download the .srt file
Save the converted file. It keeps the original name with the new extension, so
episode.ttmlbecomesepisode.srt.
How TTML describes a subtitle
<tt xmlns="http://www.w3.org/ns/ttml"
xmlns:tts="http://www.w3.org/ns/ttml#styling">
<head>
<layout>
<region xml:id="top" tts:origin="10% 5%" tts:extent="80% 15%"/>
</layout>
</head>
<body>
<div begin="00:10:00.000">
<p begin="3.12s" end="5.48s">Is this seat taken?</p>
<p begin="6s" end="8.9s" region="top">
<span tts:fontStyle="italic">PLATFORM 9</span>
</p>
</div>
</body>
</tt>
Nested times. The div starts at ten minutes. Its first paragraph starts 3.12 seconds after that, at 00:10:03.120. TTML allows that nesting at every level, so a file can be built from chapters that each count from zero. The converter adds the offsets up for you.
Five ways to write a time. 00:00:03.120 is a clock time, 00:00:03:03 counts frames, and 3.12s, 3120ms and 31200000t are offsets in seconds, milliseconds and ticks. The frame rate and tick rate come from the ttp: attributes on the root, and TTML's defaults apply when they're missing.
Spans and styles. A <span> styles part of a line. Its style can be written on it directly, as here, or by naming a style from the header. Styles can also come from the region or from a block around the paragraph.
Regions. origin and extent draw a box on the screen, and displayAlign says whether text sits at its top or its bottom. The converter works out where the text ends up. If that is the top half of the picture, the line starts with {\an8} in the .srt.
The same subtitles in SubRip
1
00:10:03,120 --> 00:10:05,480
Is this seat taken?
2
00:10:06,000 --> 00:10:08,900
{\an8}<i>PLATFORM 9</i>
The nesting is gone and each subtitle carries its full time. Italics become <i>, and the top line keeps its place with {\an8}, which VLC, MPC-HC, Kodi and most TVs follow.
When to convert TTML
TTML is the right format for delivering subtitles to a broadcaster or a streaming service. It is the wrong one for most other jobs. Home players, TVs, phone apps, editing programs and upload forms almost all expect SubRip, and many don't read TTML at all. Convert when you want to:
- watch a film with its subtitles in VLC, Plex, Jellyfin or on a TV;
- edit, translate or re-time the subtitles in an ordinary subtitle editor;
- upload the subtitles to a platform that only takes .srt.
If you need WebVTT for a website instead, convert to SRT here, then use Convert SRT to VTT.
Tips
Profiles don't matter. IMSC, EBU-TT-D and SMPTE-TT files are TTML at heart, and the converter reads them like any other TTML file.
Check frame-based files. When a file counts frames, its times depend on the frame rate in its header. Compare the last subtitle with the end of the video. If the file is Apple iTT, Convert ITT to SRT explains how its time code is read.
Times off by the same amount. If every line is a few seconds early or late, the file was made for a version of the video with a different start. Fix it with Shift Subtitle Timing.
Going the other way. To deliver a SubRip file as TTML or DFXP, use Convert SRT to TTML. For Apple, use Convert SRT to ITT.
Frequently asked questions
What is TTML?
TTML, Timed Text Markup Language, is the W3C standard for subtitles and captions. It is XML, and it can describe styles, colours and screen regions as well as text and times. Broadcasters, streaming services and professional subtitling software use it to exchange subtitles, often in a profile such as IMSC, EBU-TT-D or SMPTE-TT.
Are TTML, DFXP and iTT the same thing?
They are the same family. DFXP was the first name of TTML 1.0, and many files still carry that name. Apple's iTT is TTML with Apple's own rules, timed in frames. IMSC and EBU-TT are profiles that limit TTML to what players need. This page reads all of them.
Which TTML features does the converter understand?
Every time format TTML allows (clock times, frames, ticks and offsets), times inherited from the body and div blocks, styles set directly on the text or through named styles and regions, line breaks, and xml:space. Lines whose region sits at the top of the picture are marked {\an8} in the .srt.
Is anything lost when converting TTML to SRT?
Words, line breaks and times are kept. Italic, bold and underline become SubRip tags. Colours, fonts, background boxes, exact positions, ruby text and animation have no place in SubRip and are left out.
My file has no times on its paragraphs. Can it still be converted?
Yes, as long as the block around them is timed. A paragraph without times of its own lasts as long as its div. Paragraphs with no time anywhere can't be placed, so they are skipped and listed as warnings, and the rest of the file still converts.
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.
Related tools
Shift Subtitle Timing
Subtitles too early or too late? Move every line by any number of seconds.
Open toolConvert SRT to TTML
Turn SubRip subtitles into TTML (Timed Text) for broadcasters, streaming platforms and web players.
Open toolConvert DFXP to SRT
Turn .dfxp subtitles downloaded from Netflix, Amazon or a streaming site into SubRip for any player or TV.
Open toolConvert ITT to SRT
Turn Apple iTunes Timed Text (.itt) subtitles into SubRip, with time code read at the file's frame rate.
Open tool