How to Edit an SRT File: Text Editors, Subtitle Edit and Timing Fixes
How to edit an SRT subtitle file: the format explained, editing in Notepad, TextEdit or VS Code, Subtitle Edit and Aegisub for timing, plus fixes for overlaps, encoding and line length.
An SRT file is plain text, so you can edit it in Notepad, TextEdit or VS Code: each subtitle is a sequence number, a time range written as 00:01:02,500 --> 00:01:05,000, and one or two lines of text. Fixing a misheard word is a matter of typing over it. Timing is where a dedicated editor earns its place: Subtitle Edit (Windows) and Aegisub (Windows, Mac, Linux) show the audio waveform, shift whole files by an offset and flag overlapping cues. This guide covers the format, both kinds of editor, and the errors that break subtitles most often.
What is inside an SRT file
Open any .srt in a text editor and you see blocks like this:
1
00:00:01,000 --> 00:00:03,400
Welcome back to the channel.
2
00:00:03,600 --> 00:00:07,200
Today we're looking at three ways
to transcribe an interview.
Four rules make a valid block:
- A sequence number on its own line, counting up from 1.
- A time range: start, a space,
-->, a space, end. Times arehours:minutes:seconds,millisecondswith a comma before the milliseconds. (VTT uses a dot; see SRT vs VTT.) - One or two lines of text.
- A blank line before the next block.
That is the whole format. Anything else, such as <i> tags for italics or <b> for bold, is supported by some players and ignored by others.
Editing the text in a plain editor
For wording fixes, a text editor is faster than any subtitle app.
- Windows: right-click the file, Open with, Notepad. Or Notepad++ or VS Code if you have them.
- Mac: open TextEdit, then Format > Make Plain Text before saving, or it will add formatting. VS Code and BBEdit work too.
- Linux: gedit, Kate, VS Code.
Use Find and Replace for anything that recurs: a product name transcribed three different ways, a speaker's name, "gonna" to "going to" if your style asks for it. Keep the structure intact: never delete the blank line between blocks, and never put a blank line inside a block's text, because players treat a blank line as "next subtitle".
If the file came from a transcription tool, correcting the words before downloading is easier, because the audio plays next to the text. Audiotexta's editor lets you click any line, hear it, fix it and re-export the SRT; the subtitle generator guide shows the workflow.
Editing timing with Subtitle Edit or Aegisub
Hand-editing timestamps works for one or two cues. For anything systematic, use a subtitle editor that shows the video.
Subtitle Edit (Windows, free, open source) opens the SRT next to the video and an audio waveform. The functions you will use most:
- Synchronization > Adjust all times to shift every cue earlier or later, for instance when subtitles were made from an export that had a different intro.
- Synchronization > Change frame rate when a 25 fps file plays on a 23.976 fps video and drifts slowly out of sync.
- Tools > Fix common errors to remove overlaps, fix too-short durations and merge short lines.
- Drag cue edges on the waveform to retime a single line.
Aegisub (Windows, Mac, Linux, free) does the same with a slightly older interface: Timing > Shift Times for offsets, the audio view for precise retiming, and strong styling features if you later burn subtitles in.
VLC is useful for testing: while playing a video with the SRT loaded, press G and H to shift the subtitles 50 ms at a time until they match, note the offset, then apply it in Subtitle Edit or Aegisub.
Common errors and how to fix them
| Problem | Cause | Fix |
|---|---|---|
| Accented letters show as garbage | File not saved as UTF-8 | Save As with UTF-8 encoding |
| A subtitle never appears | End time before start time, or missing blank line | Check the block's times and spacing |
| Two subtitles flash together | Overlapping time ranges | Run Fix common errors or retime by hand |
| Subtitles drift out of sync | Frame-rate mismatch | Change frame rate in the editor |
| Text cut off on the right | Lines too long | Break at about 42 characters |
Other details worth checking before you publish:
- Minimum duration. A cue shorter than about one second is unreadable. Merge it with its neighbour.
- Maximum duration. Seven seconds is a sensible cap; longer than that and viewers think the subtitles froze.
- Line breaks at sense boundaries. Break after a clause, not in the middle of a name or a number.
- Two lines maximum. Three-line subtitles cover the picture and are hard to read on phones.
- Numbering gaps. Most players ignore the sequence numbers, but some strict ones do not; Subtitle Edit renumbers with one click.
Converting while you are at it
If the platform you publish on wants a different format, convert after editing rather than before, so you fix the text once. Free in-browser converters handle the usual cases without uploading the file anywhere: SRT to VTT for web players, SRT to TXT for a plain transcript without timestamps, and SRT to CSV for a spreadsheet of cues. The reverse, VTT to SRT, is what you want for a transcript downloaded from Teams or Zoom.
Editing subtitles for short video
Captions for TikTok, Reels and Shorts follow stricter rules than a documentary: shorter lines, two or three seconds per cue, positioned away from the app's buttons. If that is your use case, the captions for short video guide has the safe zones and styling, and the same SRT editing applies before you burn the text in.
A workflow that avoids most editing
The least painful SRT is the one that needed few corrections. Three things help: clear audio, the right language setting, and reviewing the transcript in the tool that produced it before downloading. Audiotexta's free plan transcribes files up to 30 minutes, three a day, without an account, and exports SRT and VTT with timestamps already segmented into readable cues; longer files and DOCX or PDF exports need Unlimited.
Editing an SRT is mostly typing over wrong words and nudging a few timestamps. Open it in a text editor for the words, Subtitle Edit or Aegisub for the timing, save as UTF-8, and test it in VLC. If you still need the file in the first place, generate it with the subtitle generator and do the corrections while the audio is playing next to the text.
How to edit an SRT file
- Open the file in a text editor. Right-click the .srt file and open it with Notepad, TextEdit (plain text mode) or VS Code. Every subtitle is a number, a time range and one or two lines of text.
- Fix the text. Correct misheard words, names and numbers. Keep each line under about 42 characters and each subtitle to two lines.
- Fix the timing. Adjust start and end times in the format hh:mm:ss,mmm with a comma. For a whole-file shift or overlaps, use Subtitle Edit or Aegisub, which show the audio waveform.
- Save as UTF-8. Save with the .srt extension in UTF-8 encoding so accented characters display correctly, then test the file in VLC or the player you publish on.
Frequently asked questions
What program opens an SRT file?
Any plain-text editor: Notepad on Windows, TextEdit on a Mac, VS Code anywhere. For timing work, free subtitle editors such as Subtitle Edit (Windows) and Aegisub (Windows, Mac, Linux) show the video and audio next to the text.
Can I edit an SRT file on my phone?
Yes, with any text editor app that opens .srt files, though timing by hand on a phone is slow. For more than a few fixes, do it on a computer or edit the subtitles in the transcription tool before downloading.
How do I shift all subtitles by a few seconds?
In Subtitle Edit use Synchronization > Adjust all times; in Aegisub use Timing > Shift Times; in VLC you can test an offset with the G and H keys during playback before fixing the file.
Why do my subtitles show strange characters?
Encoding. The file was saved in a legacy code page rather than UTF-8. Reopen it, choose UTF-8 in Save As, and the accents and non-Latin characters display properly.
What is the maximum line length for subtitles?
Common broadcast guidance is around 42 characters per line and two lines per subtitle, shown for one to seven seconds. Platforms do not enforce this, but viewers notice when it is ignored.
Try Audiotexta free
Upload a file or paste a link and get a transcript in minutes.