Subtitle Converter

TXT to JSON Subtitle Converter

Quickly convert Plain Text subtitles to Structured JSON locally in your browser. Timelines and subtitle content are never uploaded.

1

Choose conversion formats

Select the source and target subtitle formats

2

Add subtitle content

Paste content or choose a file

UTF-8 text supported0 characters

What happens when converting TXT to JSON?

Plain Text content is parsed into a unified millisecond timeline before being exported as Structured JSON. Valid timing and subtitle text are preserved.

JSON output gives every subtitle start_ms, end_ms, and text fields for further programmatic processing.

TXT has no timeline, so every non-empty text line is assigned five seconds by default.

About TXT and JSON subtitle formats

Learn what each file format is, how it is structured, where it is commonly used, and what to consider during conversion.

Source file format

TXT · Plain Text

TXT is a plain-text file rather than a dedicated subtitle format with a standardized timeline. It usually stores subtitle, dialogue, or lyric text without information about when each line appears.

File structure
TXT has no fixed subtitle syntax and generally contains one or more lines of text. Individual files may include paragraphs, speaker names, or other manually arranged information.
Common uses
TXT is commonly used for video transcripts, dialogue editing, translation and proofreading, lyric extraction, and passing subtitle content to text-processing or AI tools.
Conversion notes
Exporting to TXT removes every timestamp. When converting TXT to a timed subtitle format, this tool treats each non-empty line as one cue and assigns it five seconds by default.

Target file format

JSON · Structured JSON

JSON, or JavaScript Object Notation, is a structured data-interchange format rather than one industry-standard subtitle specification. Explicit fields can represent timing, text, and extensible metadata.

File structure
This tool uses a JSON object containing a cues array. Each cue has start_ms, end_ms, and text fields representing the start time, end time, and subtitle text.
Common uses
JSON is useful for subtitle software development, API exchange, batch processing, data analysis, automation, and preserving structured subtitle data for later programmatic or AI processing.
Conversion notes
Subtitle JSON schemas vary between applications. This tool can read subtitle arrays and objects containing cues or subtitles arrays, and it exports a consistent cues structure.