Skip to main content

Exports and subtitle files

How do I edit an SRT file without breaking it?

Short answer

Edit the text and keep the structure: each caption is a number, a timing line such as 00:00:01,000 --> 00:00:03,500 and one or two lines of text, with a blank line between captions. Don't change the arrow or the commas, keep every start time before its end time, and save as plain UTF-8. A subtitle editor checks these for you, so the file still imports into YouTube, LinkedIn or your editing app.

3 min read

What's inside an SRT file?

1
00:00:01,000 --> 00:00:03,500
Welcome back to the channel.

2
00:00:03,600 --> 00:00:06,200
Today we're fixing subtitle files.

Each caption, or cue, has three parts: a number, a timing line with a start time, an arrow and an end time, and the text. A blank line separates cues. The times are hours, minutes, seconds and milliseconds, with a comma before the milliseconds.

Can I edit an SRT file in Notepad or TextEdit?

Yes, for small text changes. Keep these rules:

  • Edit only the text lines, unless you're deliberately fixing a time.
  • Keep the blank line between cues.
  • Save as plain text in UTF-8 with the .srt extension. In TextEdit, choose Format, then Make Plain Text first.

Timing changes are easier and safer in a subtitle editor, which shows each cue as a row.

Why won't my SRT file import?

ProblemExample
Wrong timestamp format00:00:01.000 (a period) or 0:01,000 (missing hours)
Missing blank lineTwo cues run together
Empty cueA timing line with no text
End before start00:00:05,000 --> 00:00:04,000
Overlapping cuesA cue starts before the previous one ends
Wrong encodingYouTube requires plain UTF-8 (YouTube Help)
Wrong extensionThe file is saved as captions.srt.txt

How do I fix strange characters?

Characters such as é instead of é mean the file was saved in an older encoding and read as UTF-8, or the other way round. Open it in a text editor that lets you choose the encoding, find the one that shows the text correctly, and save it again as UTF-8.

How to do it in CaptionBolt

For quick fixes, CaptionBolt's free Subtitle Editor shows an SRT or VTT file as rows you can edit, checks it before you download it and keeps the file in your browser.

  1. Upload or paste the file and click Load captions.
  2. Edit the text and times in each row, or use Add cue, Sort and Clean cues.
  3. Click Validate to catch broken timestamps, empty cues, reversed times and overlaps.
  4. Choose the export format (SRT, VTT, TXT or ASS) and download it.

The editor doesn't change a file's encoding, so fix strange characters first. If the captions came from CaptionBolt, edit them in the Text Editor instead and download a fresh SRT on Pro or Max. For more detail, see how to edit SRT files without breaking timing.

When another approach is better

  • You need to time captions against the audio waveform. Use a desktop subtitle editor with a waveform view.
  • You need the file in another language. CaptionBolt doesn't translate; use a translation tool or service.
  • Can I upload an SRT file to TikTok, Instagram, YouTube or LinkedIn?

    YouTube, LinkedIn and Facebook accept SRT files; TikTok and Instagram don't take a subtitle file and generate their own captions instead. For TikTok, Reels and Shorts you also post elsewhere, burn the captions into the video so they look the same everywhere, and keep the SRT for YouTube and LinkedIn, where viewers can turn captions on and off.

  • How do I add an SRT file to my video?

    Decide whether viewers should be able to turn the captions off. To keep them optional, upload the SRT next to the video on YouTube, LinkedIn or Facebook, or add it as a subtitle track in a player or video file. To make them permanent, burn the SRT into the picture with HandBrake, FFmpeg or an editing app. TikTok and Instagram don't accept subtitle files, so burn the captions in for those.

  • How do I burn styled ASS subtitles into a video with FFmpeg?

    Use FFmpeg's ass or subtitles video filter, which draws the subtitles onto every frame with libass: ffmpeg -i input.mp4 -vf ass=captions.ass -c:a copy output.mp4. The ASS file keeps its fonts, colors, position and animation, but the fonts must be installed or passed with the fontsdir option. Burning re-encodes the video, so keep a copy of the original.

  • How do I convert an SRT file to VTT, or VTT to SRT?

    Change three things: VTT files start with a WEBVTT line, use a period before the milliseconds instead of a comma, and can carry cue settings and notes that SRT doesn't support. A converter does this in seconds without touching the text or timing. Renaming the file isn't enough. Use VTT for web players and HTML5 video; use SRT for LinkedIn, Facebook and most editing apps.

Your first captioned short starts with one upload.

Free to start. No card needed.