All Tools View Categories About Contact Privacy

XML to SRT Converter

Convert an XML subtitle document back into SRT (SubRip). Each <cue> becomes a numbered subtitle with HH:MM:SS,mmm timing.

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

About XML to SRT Converter

You stored captions as XML and now need SRT. The XML to SRT Converter reads each <cue> and rebuilds a numbered SubRip file.

For every cue it takes <start> and <end> (normalizing either comma or period timecodes to HH:MM:SS,mmm), unescapes the <text>, numbers the subtitle in order, and writes the standard --> timing line. Cues without an index are numbered automatically. Paste your XML and convert.

Features

  • Cue parsing: extracts blocks resiliently.
  • Timestamp normalization: HH:MM:SS,mmm output.
  • Unescaping: XML entities restored.
  • Auto-numbering: sequential indices.
  • Valid SRT: blank-line-separated cues.
  • Private: parsed in your browser.

How to Use

  1. Paste your XML (sample preloaded).
  2. Click Convert to SRT and copy or download.
  3. Use the .srt in any player or editor.

Examples

Example 1 — Back to SRT. An XML export needs to play in a standard player.

Example 2 — Edit pass. Move captions into an SRT editor.

Example 3 — Round-trip. Restore SRT created earlier from this tool.

Benefits

  • Round-trips with the SRT to XML tool.
  • Forgiving: tolerant of minor markup issues.
  • No manual numbering: done for you.
  • Lossless text: entities restored.
  • Private: stays in the browser.

Frequently Asked Questions

What XML shape is expected?
A document with one or more <cue> elements, each containing <start>, <end> and <text> (and optionally <index>). This matches the output of the SRT to XML tool.
Are timing formats flexible?
Yes. Start and end may use HH:MM:SS,mmm or HH:MM:SS.mmm; both are normalized to SRT style.
Is the text unescaped?
Yes. XML entities like &lt; and &amp; are converted back to characters so the caption reads correctly.
What if a cue lacks an index?
Cues are numbered sequentially by document order, which is what SRT requires.
Will invalid XML break it?
The parser uses resilient matching, so well-formed cue blocks are extracted even if other parts of the document are messy.