Subtitle Converter Online
Convert SRT, WebVTT, ASS / SSA, SBV and TTML subtitles, shift or resync timings, change frame rate, fix old Vietnamese encodings and check line length.
Result
Press “Run” to see the result.
Send a subtitle file (subtitle text, a raw body or a file upload) and choose to: srt, vtt, ass, sbv, ttml, json (cues with start / end in ms) or text (plain transcript). The input format is detected automatically. Files in Windows-1258, TCVN3 (ABC) or VNI-Windows — common for old Vietnamese subtitles — are converted to Unicode (encoding=auto, or force it).
Retiming: shift (+1.5s, -500ms, 00:00:02,000), fps_from / fps_to (23.976 ↔ 25), and sync with two points to stretch a whole file that drifts. fix_overlaps, wrap (re-break lines at max_chars, balancing two lines), strip_tags and remove_empty clean the cues; merge with a second file (merge_mode interleave or append) and split_at (two parts, rebased to zero) combine or cut files.
Every response includes checks: overlaps, cues shorter than min_duration_ms (833) or longer than max_duration_ms (7000), reading speed above max_cps (20 characters per second), lines over max_chars (42) and more than max_lines (2), the usual Netflix / YouTube style limits. format=file returns the converted file for download.
Use this in your code
curl -X POST "https://apibox.io.vn/v1/subtitles" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"subtitle":"1\n00:00:01,000 --> 00:00:03,500\nXin chào các bạn\n\n2\n00:00:03,400 --> 00:00:06,000\nHôm nay chúng ta học về phụ đề\n","to":"vtt","shift":"+2s"}'const res = await fetch('https://apibox.io.vn/v1/subtitles', {
method: 'POST',
headers: {
Authorization: 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
"subtitle": "1\n00:00:01,000 --> 00:00:03,500\nXin chào các bạn\n\n2\n00:00:03,400 --> 00:00:06,000\nHôm nay chúng ta học về phụ đề\n",
"to": "vtt",
"shift": "+2s"
}),
});
const data = await res.json();
console.log(data);import requests
res = requests.post(
"https://apibox.io.vn/v1/subtitles",
headers={"Authorization": "Bearer YOUR_API_KEY"},
json={"subtitle": "1\n00:00:01,000 --> 00:00:03,500\nXin chào các bạn\n\n2\n00:00:03,400 --> 00:00:06,000\nHôm nay chúng ta học về phụ đề\n", "to": "vtt", "shift": "+2s"},
timeout=30,
)
print(res.json())<?php
$ch = curl_init('https://apibox.io.vn/v1/subtitles');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_HTTPHEADER => ['Authorization: Bearer YOUR_API_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => '{"subtitle":"1\\n00:00:01,000 --> 00:00:03,500\\nXin chào các bạn\\n\\n2\\n00:00:03,400 --> 00:00:06,000\\nHôm nay chúng ta học về phụ đề\\n","to":"vtt","shift":"+2s"}',
]);
$response = curl_exec($ch);
print_r(json_decode($response, true));API documentation → Get a free API key
FAQ
How do I fix a file that drifts more and more?
Use sync with two points: the time of an early cue and the time it should be, and the same for a late cue. All cues are stretched linearly between them.
Are ASS styles kept?
When converting ASS to ASS the original [Script Info] and styles are kept and each cue keeps its style name. Override tags such as {\i1} are removed from the text.
What is the maximum size?
Up to 20,000 cues per file, within your plan’s upload size.