Convert SRT to VTT with a single cURL command — the fastest way to test the API or script a conversion from bash, CI, or cron. cURL ships with macOS and most Linux distros, so there's nothing to install.
Convert SRT to VTT
curl -X POST https://api.example.com/api/v1/convert \
-H "Authorization: Bearer your_api_key" \
-F "[email protected]" \
-F "from=srt" \
-F "to=vtt" \
-o movie.vtt
-F "[email protected]" uploads the local file as the file field; -o movie.vtt writes the response body (the converted file) to disk.
See the response headers
curl -i -X POST https://api.example.com/api/v1/convert \
-H "Authorization: Bearer your_api_key" \
-F "[email protected]" \
-F "from=srt" \
-F "to=vtt"
-i prints the response headers, including X-Cue-Count (number of cues written), X-Avg-Cps (average characters per second), and the Content-Disposition attachment header.
Tip: a
200returns the converted file; a400returns a JSON error naming the problem. Add-F "casing=title"or-F "shift_ms=-500"to shape the output in the same request.
Convert between any formats
- Convert SRT to VTT →
- Convert VTT to SRT →
- Convert ASS to SRT →
- Convert SRT to ASS →
- Convert ASS to VTT →
- Convert VTT to ASS →
- Convert SRT to TXT →
Next
- Convert SRT to VTT with Python →
- Convert SRT to VTT with Node.js →
- Full API reference →
- Free subtitle tester → — no signup required