# Convert SRT to VTT

URL: https://neattrim.com/tools/srt-to-vtt

Change an .srt subtitle file into a .vtt file that an HTML5 video player or a streaming platform will accept.

## Why a web player wants VTT and not SRT

SRT is the format most subtitle editors and video platforms export. WebVTT is the format the browser understands. The HTML5 track element for video, and most web players built on it, read only VTT. If you hand one a .srt file, the captions do not appear and there is often no error message.

The two formats look nearly the same, and the differences are what break a manual rename. A VTT file must begin with the word WEBVTT on its own line. The decimal separator in a timestamp is a full stop, not a comma. The cue numbers that SRT requires are optional in VTT, and VTT may carry cue settings, notes and style blocks that SRT cannot hold.

This preset applies those changes in one pass. It reads your SRT, keeps every start and end time, copies the text lines and writes a valid VTT file. Basic italic and bold tags carry over. The conversion runs in the browser, so the subtitle text does not leave your computer.

SRT to VTT only goes one way here. If your player later needs the original format, convert the result back with the VTT to SRT preset.

## Steps

1. **Add the SRT file.** Drop one or several .srt files into the page. If the file has accented or non-Latin text, leave the input encoding on auto.
2. **Check the target is VTT.** The output format is already set to VTT. The converter writes the WEBVTT header line that every VTT file must start with.
3. **Check the timestamp style.** Each timestamp is rewritten from the SRT form 00:01:02,500 to the VTT form 00:01:02.500, with a dot where SRT has a comma.
4. **Save and test the file.** Download the .vtt file and load it as a track in your player. A player that rejects the file usually shows the first bad line.

## Questions

**Can I just rename the .srt to .vtt?**

Renaming does not work. The file would lack the WEBVTT header and would still use commas in its timestamps, so a browser rejects it.

**Do the cue numbers from the SRT file stay?**

They are not needed in VTT, where numbers are optional identifiers. The cue order and timings are unchanged.

**Why do some of my accented letters look wrong?**

That is an encoding problem in the source SRT, which is often saved in a legacy Windows encoding. Set the input encoding by hand if auto-detection picks the wrong one.

**Does this keep line breaks inside a subtitle?**

Yes. A two-line subtitle stays a two-line cue.

**Will the file work on YouTube or Vimeo?**

Most video hosts accept SRT directly and do not need VTT. Convert to VTT when you embed the video in your own page.
