Subtitle Timing Editor with Waveform
Operator: Abdulla Al Fahad. How tools are built and checked
Subtitles go wrong in three ways: they appear before the words are spoken or after, they stay up too briefly to read, or they are too long for the screen. Fixing the first by ear means replaying the same line twenty times. With a waveform in front of you the speech is visible, so a cue can be dragged until its edges sit on the start and end of the words.
Open an SRT, WebVTT or SBV file, add the video or audio it belongs to if you have it, and every cue appears as a box under the waveform, as a row in a list and, for a video, as text on the picture while it plays. Each cue shows its reading speed and is flagged when it breaks a limit you can change.
Key features
- A zoomable waveform of up to 60 minutes, drawn only for the stretch on screen, with cue boxes you drag to move and resize
- Typed start and end times in minutes and seconds, and the text of every cue editable in a list
- Split at the playhead, merge with the next cue, add a cue at the playhead, delete, and 100 steps of undo and redo
- Shift all cues, shift the selected cue and everything after it, or stretch the whole file between two reference times
- Warnings for reading speed, line length, line count, cues too short or too long, and overlaps, with limits you set
How cues, warnings and re-timing work
Subtitle files up to 5 MB are read as SRT, WebVTT or SBV; formatting tags are removed on loading and a file with no timing line is refused. The video or audio is optional: without it you edit times by typing, with it you also get playback and the waveform.
Saving writes SRT or WebVTT from the cues that have text, in time order. Blank lines inside a cue are collapsed, since a blank line would end the cue in the file, and an arrow in the text is written as a plain hyphen and greater-than sign so it cannot be read as a timing line. WebVTT output escapes the characters that file format treats as markup.
How it works
Reading speed is the number of characters in the cue, without its line breaks, divided by the seconds it is on screen. A limit of 17 characters per second, the default, means that a 77-character cue needs at least 4.53 seconds. The line limit counts the longest line, 42 characters by default, and the cue limits are 0.8 and 7 seconds with a maximum of two lines. All five are yours to change.
Splitting places the break at the playhead and divides the text at the space nearest the matching share of its characters: a cue split a quarter of the way in breaks the text a quarter of the way along. Stretching maps the first cue's start to a time you give and the last cue's start to another, and every time in between moves along the straight line through the two, so a file that drifts steadily is put right in one step.
Common use cases
- A director's cut drops a 45-second scene at 41:10, and the subtitles still follow the old cut: select the first cue after the gap, type -45 in Move by, and use the button that moves the selected cue and all after it. The cues before the cut stay where they are.
- Interview subtitles exported from a speech recogniser, with long cues of 80 characters on one line: the line-length warning finds them and Split at the playhead breaks them at the pauses you can see in the waveform.
- A cue that cannot be shortened: an 85-character quote needs 5 seconds at 17 characters per second, so the cue is extended to the next cue's start and the overlap flag confirms it fits.
How to use this tool
- Drop the subtitle file, then the video or audio it belongs to; the waveform appears after a short decode.
- Press Space to play, watch the cue boxes pass under the playhead and click a cue to select it.
- Drag a box to move it, drag its dark edges to resize it, or press [ and ] to set the selected cue's start and end to the playhead.
- Read the amber notes under cues that are too fast or too long, and edit the text or the times.
- For a steady drift, open Shift and re-time and type where the first and last cue should start.
Example
A film's subtitles: first cue at 10.0 s, a middle cue at 2,700.0 s, the last cue at 5,400.0 s, each 2 s long
The first cue should start at 7.6 s and the last at 5,396.0 s. Re-time every cue.The cues after Re-time every cue
First: 7.600 to 9.599 s. Middle: 2,696.801 to 2,698.801 s. Last: 5,396.000 to 5,397.999 s.
The scale is 0.999703, so every second of the old file is 0.9997 of a second in the new one.
A cue of 77 characters shown for 2.0 s reads at 38.5 characters per second and is flagged.Tips for best results
- Zoom until a cue box is about as wide as your thumb before fine-tuning its edges; at the default zoom a pixel is a sixtieth of a second.
- For a handful of late cues, play the clip and press [ at the instant a line begins and ] when it ends; the selected cue takes the playhead's time, which is quicker than dragging once the waveform is zoomed in.
- Check the amber cues last. Fixing times first often removes the reading-speed warnings, because a cue that was cut short is given its time back.
Common pitfalls
A video the browser cannot play still lets you edit by typing times and see a waveform, but the playhead has nothing to follow. Re-encode the file to MP4 with H.264 and AAC to get playback.
The waveform is drawn from the audio at 8 kHz mono. It is exact enough to see speech and silence, not to see a single click.
Common errors and how to fix them
- "1:75" is not a time, so the start of cue 3 was left as it was
- Seconds after a colon must be under 60. Type seconds (12.5), minutes and seconds (1:05.5) or hours too (1:02:03.5); the field keeps its old value until you do.
- This does not look like an SRT, WebVTT or SBV subtitle file: no timing line was found
- Open the file in a text editor; a file saved as a Word document or a PDF is not a subtitle file. Export again as .srt or .vtt.
- Place the playhead inside the cue, away from its edges, and use a cue with more than one word
- Move the playhead into the middle of the cue before pressing Split; a one-word cue cannot be split, and the playhead must be at least 0.1 seconds inside either edge.
Best practices
- Keep the cue at or under two lines of 42 characters unless the target platform says otherwise, and set the limits to its rules before you start so the warnings are the ones you need.
- Save a copy before a large shift, then compare: undo goes back 100 edits in this tab but is lost when it closes.
The shortcuts
With no text box focused: Space plays or pauses, the left and right arrows seek 1 second (5 with Shift), [ and ] set the selected cue's start and end to the playhead, N adds a cue at the playhead, S splits the selected cue there, M merges it with the next, Delete removes it, and Ctrl or Cmd+Z and Shift+Ctrl+Z undo and redo. Focused buttons and fields keep their usual keys.
Frequently asked questions
How do I put the finished subtitles on the picture?
Burn Subtitles into Video on this site draws an SRT, VTT or SBV file onto the frames of a video; open it with the file you save here. This page edits and times the text but does not change the video.
Can it make the subtitles from nothing?
It starts an empty list and lets you add cues at the playhead by hand. For a first draft from speech, the Auto Subtitle Generator on this site transcribes the audio; its result can be saved and opened here.
Why does the page ignore italics and colours in my file?
Formatting tags are stripped when the file is read, so the cue text is plain. Saved files therefore carry no styling; add it again in the tool that will use the file.