Files · verktøy

SRT- og VTT-undertekstkonverterer

Åpne en SRT- eller VTT-undertekstfil, velg format, og forskyv eventuelt tidene for alle tekstsegmentene.

Kjøres i nettleseren. Ingen opplasting.

Works in your browser. Your files stay on your device.

Om verktøyet

SRT- og VTT-undertekstkonverterer sem complicação.

For standardfiler beholder konvertereren rekkefølgen på tekstsegmenter, tekst over flere linjer og millisekundpresisjon. Kontroller resultatet i mediespilleren; uvanlige undertekstutvidelser beholdes kanskje ikke.

Veiledning

Slik bruker du SRT- og VTT-undertekstkonverterer

The SRT and VTT Subtitle Converter turns a subtitle file from SubRip (.srt) into WebVTT (.vtt), or the other way round. You can also move every cue earlier or later by a number of milliseconds. The file is read in your browser and you get text to check and download. It does not translate, fix wrong words, or sync subtitles to a video by itself.

Slik gjør du

  1. Choose a file ending in .srt, .vtt or .txt. The file is read in your browser and is not sent to a server.
  2. Pick the output format, WebVTT (.vtt) or SubRip (.srt).
  3. If the subtitles are early or late, type a shift in milliseconds. A positive number moves every cue later, a negative number moves it earlier, and 1000 is one second. Leave 0 for no change.
  4. Press Convert subtitles, read the text in the box, then press Download subtitle. Playing the file in your video player is the real check.

Eksempler

SRT to VTT with no shift

Du skriver inn
Format
vtt
Tidsforskyvning ms
0
Fil
1 | 00:00:01,000 --> 00:00:03,500 | Hello there.
Du får
Tekst
WEBVTT, en tom linje, deretter 1 | 00:00:01.000 --> 00:00:03.500 | Hei der.

The converter adds the WEBVTT header and swaps the comma before the milliseconds for a dot. Cue numbers, order and multi-line text stay as they were.

Kjørt med verktøyets egen kode.

Moving every cue 1.5 seconds later

Du skriver inn
Format
vtt
Tidsforskyvning ms
1500
Første tekstblokk
00:00:01,000 --> 00:00:03,500
Du får
Første tekstblokk
00:00:02.500 --> 00:00:05.000
Andre tekstblokk
00:00:05.500 --> 00:00:07.500

Both the start and the end of each cue gain 1500 ms. A second cue that began at 4 seconds and ended at 6 seconds therefore becomes 5.5 and 7.5 seconds.

Kjørt med verktøyets egen kode.

VTT to SRT drops what SRT cannot hold

Du skriver inn
Format
srt
Tidsforskyvning ms
0
Tekstblokk
00:00:01.000 --> 00:00:03.500 align:start | <v Ann>Hello <i>there</i>.
Du får
Tekstblokk
1 | 00:00:01,000 --> 00:00:03,500 | Hello <i>there</i>.

The speaker tag and the align:start setting are removed. The italic tag stays. Notes and cue names in the VTT file are dropped too, and cues are numbered from 1.

Kjørt med verktøyets egen kode.

A shift that pushes a cue before zero

Du skriver inn
Format
srt
Tidsforskyvning ms
-1500
Første tekstblokk
00:00:01,000 --> 00:00:03,500
Du får
Feil
The time shift would make a cue invalid.

One second minus 1.5 seconds would be below zero, so the whole conversion stops and nothing is output. Use a smaller negative shift or fix the early cue first.

Kjørt med verktøyets egen kode.

Når det er nyttig

  • Turn an SRT file into WebVTT so a web page can load it as a captions track for an HTML video.
  • Turn a WebVTT file back into SRT for a player or editor that only reads SubRip.
  • Fix subtitles that are a steady half-second or two seconds early or late by shifting all cues.
  • Look at the cue timing and text of a file in plain text before you send it on.

Begrensninger

  • Only SRT and WebVTT are read and written. A file with another timing format, or with a cue whose timing line cannot be read, stops the conversion with an error.
  • The shift is one fixed number for the whole file. It cannot stretch the timing to fix subtitles that drift out of sync over the length of a film.
  • A negative shift that makes any cue start before zero rejects the entire file. WebVTT features that SRT lacks, such as notes, styles, regions, cue names, settings and voice tags, are removed when you convert to SRT.
  • The text is read as UTF-8. A file saved in another character encoding can show wrong letters, and the code I read shows no file-size limit message, so very large files depend on your browser.

Tips

  • Keep your original file and download the converted one under a new name, so you can go back if something looks off.
  • Work out the shift from one clear line: note when a sentence is said and when its cue appears, then use the difference.
  • After converting, play the first and last cues in your video player, since players differ in what they accept.

Kilder

Vanlige spørsmål

Sobre SRT- og VTT-undertekstkonverterer.

What is the difference between SRT and VTT?

SRT, or SubRip, is a plain text format with numbered cues and a comma before the milliseconds. WebVTT starts with the word WEBVTT, uses a dot before the milliseconds, and can carry extra items such as notes, styles and cue settings. The W3C WebVTT specification defines the second format.

Which way does the timing shift go?

A positive number adds time to every cue, so the subtitles appear later. A negative number takes time away, so they appear earlier. The unit is milliseconds, which means 1000 equals one second and 2500 equals two and a half seconds.

Why do I see "The time shift would make a cue invalid"?

After the shift, at least one cue would start before 00:00:00.000, or its end would not come after its start. The tool refuses the whole file rather than hiding the problem. Try a smaller shift, or remove the early cue in a text editor first.

Does the converter keep italics and other formatting?

Text is carried across as it is when you go from SRT to VTT. From VTT to SRT, simple tags such as italic stay, while voice, class, language and ruby tags, karaoke timestamps and the extra settings on the timing line are removed because SRT has no place for them.

Is my subtitle file uploaded anywhere?

No. The page says your files stay in your browser, and the conversion code runs in a browser worker on your device. The download link is made from the text on the page, so nothing needs to be sent to a server.

Can it fix subtitles that slowly drift out of sync?

No. It adds the same amount to every cue. If the subtitles are right at the start and wrong at the end, the file was made for a different frame rate or cut, and you need a tool that stretches or re-times the whole file.

What if the converted text shows strange characters?

The file was probably saved in an encoding other than UTF-8, which is how the tool reads it. Open the original in a text editor, save it again as UTF-8, and convert that copy. Then compare a few lines with accents or non-Latin letters.

Hvordan bruker du Undertekstkonverterer?

Åpne en SRT- eller VTT-undertekstfil, velg format, og forskyv eventuelt tidene for alle tekstsegmentene.

Lastes dataene mine opp til en server?

Nei. Behandlingen skjer i nettleseren din, og opplysningene dine lastes ikke opp.