.TTML File Extension

Timed Text Markup Language Subtitles File

Developer W3C
Popularity
4.3  |  3 Votes
 

What is a TTML file?

A TTML file is a subtitles file saved in the Timed Text Markup Language (TTML) format, which is an extension of the .XML format. It is meant to be played as a subtitles track alongside an accompanying video. Each TTML file contains plain text information that specifies its subtitles' style, timing, and text.

More Information

Screenshot of a .ttml file in Microsoft Visual Studio Code
TTML file open in Microsoft Visual Studio Code

The World Wide Web Consortium (W3C) created the TTML format to serve as a uniform standard for XML-based subtitles. Each TTML file contains a fixed set of header and body elements used to play subtitles and specify metadata about those subtitles. For example, each TTML file includes a <styling> element that specifies its subtitles' text style and a <language> element that specifics its subtitles' language.

The actual subtitles a TTML file contains are found in its <body> section. Each line of the file's subtitles is written as a separate paragraph (<p></p>), with an accompanying start and end time written in HH:MM:SS:SSS format.

Because TTML is a widely-accepted format, many video players, platforms, and streaming services include support for TTML-based subtitles. For example, YouTube users can upload TTML subtitles alongside their videos.

How to open a TTML file

You can open a TTML file and edit the subtitles it contains in GitHub Atom (multiplatform), Microsoft Visual Studio Code (multiplatform), or any other text or source code editor. Source code editors, like Atom and Visual Studio Code, include syntax highlighting and other features that make editing TTML files easier.

You can use a TTML file to add subtitles to a video in VideoLAN VLC media player (multiplatform). To do so:

  1. Begin playing the video with which you want to use your TTML file.
  2. Select Subtitle → Add Subtitle File....
  3. Navigate to and open your TTML file.
Open over 400 file formats with File Viewer Plus.Free Download

Programs that open TTML files

Verified by FileInfo.com

The FileInfo.com team has independently researched the Timed Text Markup Language Subtitles file format and Mac, Windows, and Linux apps listed on this page. Our goal is 100% accuracy and we only publish information about file types that we have verified.

If you would like to suggest any additions or updates to this page, please let us know.