All Tools View Categories About Contact Privacy

SRT to JSON Converter

Convert SRT subtitles into structured JSON: an array of cues with index, start, end, text, and computed seconds.

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

About SRT to JSON Converter

Subtitles locked in SRT text are awkward to feed into an application. The SRT to JSON Converter turns that timed text into a clean, parseable JSON array — one object per cue — that your code can consume without writing a custom parser.

Each cue captures the index, start, end and text, plus computed startSeconds, endSeconds and durationSeconds so you can sort, filter, and schedule captions directly. Toggle compact output or hide the computed fields to match your schema, then copy or download the result.

Features

  • Structured array: one JSON object per cue.
  • Computed timing: seconds and duration derived for you.
  • Compact option: minified JSON for transport.
  • Field control: include or drop index and computed fields.
  • Always valid: built with JSON.stringify.
  • Private: parsed in your browser.

How to Use

  1. Paste your SRT (sample preloaded so you can test at once).
  2. Adjust options — compact, include seconds, include index.
  3. Click Convert to JSON and copy or download the result.

Examples

Example 1 — Custom player. Feed cues to a web video player that renders JSON captions.

Example 2 — Search index. Build a searchable transcript from subtitle text.

Example 3 — Analytics. Measure average caption duration across a file.

Benefits

  • Developer-ready: drop straight into code.
  • Flexible shape: trim fields to your schema.
  • Lossless text: line breaks preserved in strings.
  • No parser to maintain: we do the parsing.
  • Private: nothing leaves the browser.

Frequently Asked Questions

What does the JSON look like?
You get an array of objects, one per cue, with index, start, end and text fields. By default it also adds startSeconds, endSeconds and durationSeconds for easy sorting, filtering and playback math.
Why convert subtitles to JSON?
JSON is the native data format for apps, websites and scripts. Turning SRT into a clean array lets you render captions in a custom player, search them, or feed them into an API without parsing text.
Can I control the output shape?
Yes. Toggle compact (no indentation) output, and choose whether to include computed seconds and durations. The index field can be omitted if you only need timing and text.
Are multi-line cues preserved?
Yes. Each cue text keeps its internal line breaks as a single string with newline characters.
Is the JSON valid and parseable?
Always. The output is produced with JSON.stringify, so it is guaranteed valid JSON regardless of your subtitle content.