How to Edit an SRT File: Fix Text, Timing and Sync
Published on September 19, 2026
An SRT file is plain text, so you can edit it in any text editor. Fix the words, keep the numbering and timing lines intact, and save as UTF-8. To shift every subtitle earlier or later, use a free subtitle tool like Subtitle Edit or Aegisub instead of changing timestamps by hand.
This guide covers what's inside an SRT, safe text edits, encoding problems, fixing sync, and turning choppy auto-captions into readable lines. If you still need the file, you can download YouTube subtitles as an SRT for any captioned video.
Generate YouTube Transcripts for FREE.
Access all Transcript Languages, with Easy Copy and Clickable Timestamps!
What's inside an SRT file
Each subtitle, called a cue, has four parts:
1
00:00:01,200 --> 00:00:03,900
Welcome back to the channel.
2
00:00:04,100 --> 00:00:07,450
Today we're fixing subtitle timing.
- A sequence number, counting up from 1.
- A timing line, start and end, in the form
hours:minutes:seconds,millisecondswith-->between them. SRT uses a comma before the milliseconds. VTT uses a period. See the glossary entry on timestamps for more on the notation. - One or more lines of text.
- A blank line that ends the cue.
Most "my SRT won't load" problems come from breaking one of these rules: a missing blank line, a period instead of a comma in the timing, or an arrow with the spaces removed.
Editing the text in a plain-text editor
For typos, names and wording, a text editor is all you need.
- Windows: Notepad works. Notepad++ is nicer for long files.
- Mac: TextEdit works if the document is in plain-text mode (Format > Make Plain Text). A code editor such as VS Code avoids the rich-text trap entirely.
- Avoid word processors like Word or Pages for saving. They add formatting and "smart" quotes, and may save in the wrong format.
Safe edits:
- Change the words on the text lines.
- Split a long cue's text over two lines with a line break.
- Delete a cue completely, including its number, timing line, text and the blank line after it.
Edits to avoid by hand:
- Renumbering hundreds of cues. Most players ignore gaps in the numbering, and subtitle tools can renumber for you.
- Shifting timings one by one. Use the sync tools below.
Fixing encoding: always save as UTF-8
If accented letters, curly quotes or non-Latin scripts turn into gibberish like é or �, it's an encoding mismatch. The fix is to save the file as UTF-8:
- Notepad: File > Save As, then set Encoding to UTF-8.
- VS Code: the current encoding shows in the status bar at the bottom. Click it and choose "Save with Encoding", then UTF-8.
- Subtitle Edit: you can choose the encoding when saving.
If the characters are already broken in the file, re-saving won't repair them. Reopen the original with the correct source encoding first (in VS Code, "Reopen with Encoding"), then save as UTF-8. Some older TVs and players only read UTF-8 files with a byte-order mark (BOM). If a player still shows garbled text, try saving as "UTF-8 with BOM".
Fixing timing and sync
Sync problems come in three kinds, and each has a different fix.
| Symptom | Likely cause | Fix |
|---|---|---|
| Every subtitle is early or late by the same amount | The video was trimmed, or an intro was added or removed | Shift all timings by a fixed offset |
| In sync at the start, drifting further off by the end | Frame rate mismatch (for example 23.976 vs 25 fps) | Change frame rate or stretch the timing in a subtitle editor |
| Only a few cues are off | Edits in the middle of the video | Adjust those cues individually |
Shift all timings with Subtitle Edit (Windows, free)
Open the SRT, then use the Synchronization menu and choose the option to adjust all times. Enter the offset, pick whether subtitles should show earlier or later, and apply it to all lines. Subtitle Edit also has a visual sync mode where you match a line near the start and one near the end to the video, which also fixes frame-rate drift.
Shift all timings with Aegisub (Windows, Mac, Linux, free)
Open the SRT and choose Timing > Shift Times. Enter the amount, choose forward or backward, apply it to all rows, then export back to SRT. Aegisub's native format is ASS, so make sure you export or save as SRT at the end.
Test the offset in VLC first
VLC can delay or advance subtitles during playback without changing the file. Open Tools > Track Synchronization and adjust the subtitle track delay, or use the G and H keys to nudge it in 50 ms steps. Once the subtitles line up, note the value and apply that same offset permanently in Subtitle Edit or Aegisub. VLC's setting only affects that playback session.
Timing a few cues by hand
For a small correction, edit the timing line directly. Keep the format exact (00:01:05,300), make sure each cue ends before the next one starts, and give each cue at least a second on screen so people can read it.
Turning auto-caption fragments into readable lines
SRT files from auto-generated YouTube captions use YouTube's own timing, unchanged, with one cue per caption line. Auto-captions are short rolling fragments, so the file has many brief cues and no clean sentences:
12
00:00:31,080 --> 00:00:32,640
so the first thing
13
00:00:32,640 --> 00:00:34,200
you want to do is
14
00:00:34,200 --> 00:00:35,760
open the settings menu
To merge them, keep the start time of the first cue and the end time of the last, then join the text and add punctuation:
12
00:00:31,080 --> 00:00:35,760
So the first thing you want to do
is open the settings menu.
Subtitle Edit can merge selected lines and can merge short lines across a file automatically, which is quicker than doing it by hand for a long video. Afterward, renumber the cues (the tool can do this) and play the file back to check that no merged cue runs too long. How to download YouTube auto-generated captions covers other auto-caption quirks, such as misheard names.
Line length and readability
Common subtitle guidelines, which broadcasters and streaming services broadly follow:
- About 42 characters per line at most.
- Two lines per cue at most.
- Break lines at natural phrase boundaries, not in the middle of a name or right after "the".
- Leave enough time to read. A two-line cue usually needs a few seconds.
When a merged cue gets longer than two lines, split it into two cues and divide the time between them.
A quick editing checklist
- Keep a backup of the original file.
- Fix the text in a plain-text editor or subtitle tool.
- Shift or stretch the timing in Subtitle Edit or Aegisub if sync is off.
- Merge fragments and keep lines under about 42 characters.
- Save as UTF-8 with the
.srtextension (not.srt.txt). - Test in VLC or your editing app before uploading.
When the file is ready, adding an SRT to a video walks through Premiere, DaVinci Resolve, CapCut, VLC and YouTube Studio.
Getting a clean SRT to start from
transcript.you doesn't include a subtitle editor. It gives you the file to edit. With the YouTube subtitle downloader, your first SRT or VTT download is free with a free account. After that, SRT and VTT need a paid plan. TXT, PDF and DOCX are free with a free account. For the full process, see how to download YouTube subtitles, and if you need a different format, SRT vs VTT vs TXT explains the differences.
If you're working with your own video file instead of a YouTube link, video to SRT generates subtitles from the audio with AI (Whisper), and you can then edit them the same way.
FAQ
What program opens an SRT file?
Any text editor, such as Notepad, TextEdit in plain-text mode, or VS Code, can open and edit it. Video players like VLC and editors like Premiere and DaVinci Resolve can load it as subtitles.
Why does my SRT show strange characters?
It isn't saved as UTF-8, or it was opened with the wrong encoding. Reopen it with the correct encoding and save it as UTF-8. Try UTF-8 with BOM for picky players.
How do I make all subtitles appear 2 seconds earlier?
Use Subtitle Edit's option in the Synchronization menu to adjust all times, or Aegisub's Timing > Shift Times, and shift everything back by 2 seconds. Don't edit each timestamp by hand.
Will editing the numbering break the file?
Gaps usually don't matter to players, but keep the numbers present and in order. Subtitle tools can renumber the whole file for you.
Can I edit subtitles on transcript.you?
No. transcript.you gives you the SRT or VTT file. Edit it in a text editor or a free subtitle tool.
Generate YouTube Transcripts for FREE.
Access all Transcript Languages, with Easy Copy and Clickable Timestamps!