Skip to content
UniKit

Subtitle format converter

Convert between SRT, VTT, LRC and ASS: everything is parsed into a millisecond timeline and re-serialised, with whole-file time offset, style tag cleanup and repair of GBK/Big5 mojibake.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Paste subtitle content (SRT / VTT / LRC / ASS)

Positive delays everything, negative advances it; timestamps pushed below 0 are clamped to 0. Range ±86400 seconds.

Takes the bytes back via Latin-1 and decodes them with the chosen encoding — for subtitles whose GBK bytes were read as Latin-1/UTF-8.

Converted subtitles

Parses the timeline, optionally strips style tags and shifts everything by the offset, then re-serialises into the target format. LRC lines without an end time use the per-line duration; the stats list the formats, cue count, total duration and whether encoding repair fired.

Paste subtitle content to see the converted result

What this tool does

  • Turn a downloaded SRT into the VTT that web players expect, or downgrade an ASS effects subtitle to a plain SRT — timeline and style handling all happen locally.
  • The whole subtitle track runs two seconds late: enter +2 to shift every timestamp at once; use a negative value to advance, and timestamps pushed below zero are clamped to 0 instead of failing.
  • When a player shows mojibake such as “ä½ å¥½”, repair the encoding as GBK / Big5 and export proper Chinese.

Example

Input

1
00:00:01,000 --> 00:00:03,500
你好 <i>世界</i>

2
00:00:04,000 --> 00:00:06,000
第二句

Output

WEBVTT

00:00:01.000 --> 00:00:03.500
你好 世界

00:00:04.000 --> 00:00:06.000
第二句

The example detects the source format automatically and targets VTT: the comma milliseconds of SRT become dots, the cue index is dropped, tags such as <i> are stripped by default and empty blocks are discarded. The stats report the detected format, cue count, duration and offset.

Frequently asked questions

Which conversions are supported?

Any direction between SRT, WebVTT, LRC and ASS (the source can be left on auto-detect). Detection rules: content starting with WEBVTT → VTT; containing [Script Info] or Dialogue: lines → ASS; lines shaped like [mm:ss.xx] without --> → LRC; everything else is parsed as SRT. Failure to detect raises “could not detect the subtitle format”.

What does the offset actually change?

Only the timeline: every start and end time is shifted by the same number of seconds (negative allowed), values below zero are clamped to 0, and the range is ±86400 seconds. No new styling is generated — existing style tags (<i>, {\an8}, [b] …) are simply stripped when that option is on.

LRC has no end times — how are they computed?

An LRC line carries a single timestamp, so converting to SRT / VTT / ASS needs an end time: the next line’s start becomes this line’s end, and the final line uses the per-line duration (2 seconds by default, adjustable between 0.2 and 60).

How does the mojibake repair work?

Each code point is turned back into its original byte via Latin-1, then decoded with the chosen encoding (GBK / Big5 / auto = GBK). If the decoded text contains U+FFFD or the input already has non-Latin-1 characters, nothing is changed and the “encoding repair” stat stays “not needed”. A wrong encoding is never guessed — the tool reports what that encoding produced.

Are subtitles uploaded?

No. Parsing, shifting and serialising all happen in browser memory with no network requests, and the exported file is generated by the browser itself.

Keywords:srtvttasslrc

Related tools