All Tools View Categories About Contact Privacy

TTML to SRT Converter

Convert Timed Text Markup Language (TTML) subtitles to SubRip (SRT). Extracts timed <p> elements, converts period timecodes to comma format, restores line breaks and XML-escaped text.

Runs entirely in your browser — no data is uploaded or stored.

About TTML to SRT Converter

You received subtitles as TTML — an XML document full of <p begin="..." end="..."> elements, namespace declarations and styling hints. It validates perfectly in a broadcast pipeline, but the player, editor or encoder you actually need only speaks SRT. You need the plain version.

The TTML to SRT Converter pulls every timed <p> out of the XML, converts the period timecodes back to SRT commas, turns <br/> into real line breaks and restores XML-escaped characters (&amp; to &, &lt; to <). Emphasis tags like <i> are kept so the text still reads correctly. The spoken wording is untouched — only the wrapper is stripped.

Features

  • Element extraction: reads every <p begin end> regardless of namespace.
  • Timestamp remap: TTML HH:MM:SS.mmm becomes SRT HH:MM:SS,mmm.
  • Line breaks: <br/> restored to separate SRT lines.
  • Entity restore: &amp;, &lt;, &gt; decoded back to &, <, >.
  • Emphasis kept: <i>/<b> tags preserved for SRT-aware players.
  • Auto renumber: clean sequential cue numbers added.
  • Private: runs entirely in your browser, no uploads.

How to Use

  1. Paste your TTML into the box (sample data is preloaded so you can test instantly).
  2. Click Convert to SRT — the flattened SRT appears on the right.
  3. Copy or download the .srt and use it in any SRT tool.

Examples

Example 1 — Player compatibility. A set-top box plays SRT but not TTML; convert and the captions show.

Example 2 — Editor import. Your editor only reads SRT, so you flatten the delivered TTML before editing.

Example 3 — Hard-sub encoding. The burner expects SRT; conversion makes the XML usable.

Benefits

  • Universal output: SRT opens in virtually every subtitle tool.
  • No manual unwrapping: XML parsing and unescaping handled for you.
  • Text preserved: wording, breaks and emphasis stay exact.
  • Fast: convert a full file in one click.
  • Private: subtitle text never leaves the browser.

Frequently Asked Questions

Why convert TTML back to SRT?
TTML is great for delivery and broadcast pipelines, but most everyday players, editors and hard-sub tools only accept SRT. Flattening it to SRT makes the subtitles usable everywhere.
How are the timestamps changed?
TTML uses period timecodes like 00:00:01.000. The converter maps them to SRT comma format 00:00:01,000 automatically.
What happens to line breaks and tags?
TTML <br/> becomes a real line break, and XML entities like &amp; are restored to & and &lt; to <. Emphasis tags such as <i> are kept so the text still renders italic in SRT-aware players.
Does it handle namespaces and styling attributes?
Yes. The parser reads the begin and end attributes regardless of namespace prefixes and ignores styling attributes it does not need, focusing on timing and text.
Will the wording stay the same?
Yes. Only the XML wrapper and timestamp delimiter change; the spoken text is preserved exactly.