Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Create an SRT File on Mac

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To create an SRT file on a Mac, open TextEdit in plain-text mode, type your subtitle lines with the correct numbering and timestamps, then save the file with the .srt extension. This guide walks you through the exact steps, common pitfalls, and fixes.

What You'll Need

  • A Mac running macOS (any recent version works).
  • TextEdit (built-in, no download needed).
  • The video file you want subtitles for, so you can sync timestamps.
  • Optional: a media player like VLC or IINA to test the SRT file.

Step-by-Step

  1. Open TextEdit. Go to Applications > TextEdit, or search for it with Spotlight (Cmd+Space).
  2. Switch to plain text mode. In TextEdit, go to Format > Make Plain Text (or press Shift+Cmd+T). This removes all formatting, which is essential for SRT files.
  3. Create the subtitle structure. Each subtitle block must have three parts: a sequential number, a timestamp line, and the subtitle text. For example:
    1
    00:00:01,000 --> 00:00:04,000
    Hello, welcome to this video.
        
    Leave a blank line between each block.
  4. Add your subtitles. Type the number, the timestamp, the text, then a blank line. Repeat for each subtitle. Make sure the numbers go up sequentially (1, 2, 3...).
  5. Format timestamps correctly. The timestamp format is hours:minutes:seconds,milliseconds. Use a comma (not a period) before milliseconds. Example: 00:00:05,500. The arrow is --> with spaces around it.
  6. Save the file. Go to File > Save (or press Cmd+S). In the save dialog, name your file with the .srt extension, e.g., myvideo.srt. In the File Format or Plain Text Encoding dropdown, choose UTF-8 (if available). Then click Save.
  7. Check the file. In Finder, locate the saved file. If it shows as a document with the .srt extension, you're good. If it shows as .txt, you may need to change the extension manually (see Troubleshooting).
  8. Test with your video. Place the SRT file in the same folder as your video, with the same base name (e.g., movie.mp4 and movie.srt). Open the video in VLC or IINA, and the subtitles should load automatically. If not, use the player's subtitle menu to add the file manually.

Common Mistakes

  • Using rich text: Forgetting to switch to plain text can add invisible formatting that breaks the SRT file.
  • Wrong timestamp separator: Using a period instead of a comma before milliseconds (e.g., 00:00:01.000 instead of 00:00:01,000) is a frequent error.
  • Missing blank lines: Forgetting the blank line between subtitle blocks can cause players to merge them.
  • Incorrect numbering: Skipping a number or starting at 0 can confuse some players.
  • Saving as .txt: TextEdit may append .txt if you don't type .srt explicitly, or if the file format isn't set correctly.

Tips

  • Use a dedicated subtitle editor: For long videos, consider free tools like Subtitle Edit (Windows-only) or Aegisub (cross-platform). But for quick edits, TextEdit works fine.
  • Keep timestamps realistic: Ensure the end time is after the start time, and that subtitles don't overlap between blocks.
  • Use the same name as the video: This helps media players auto-detect the subtitle file.
  • Check encoding: If you see garbled characters, re-save the file with UTF-8 encoding.
  • Preview with QuickTime: QuickTime Player can also load SRT files via the Subtitles menu, but VLC is more reliable for testing.

Troubleshooting

If the file saves as .txt instead of .srt: In TextEdit, go to Preferences > Open and Save, and check "Add ".txt" extension to plain text files". Uncheck that, then save again. Alternatively, after saving, right-click the file in Finder, choose Rename, and change the extension to .srt (confirm if prompted).

If subtitles don't appear in the player: First, make sure the file is named exactly like the video (e.g., video.mp4 and video.srt) and in the same folder. If that doesn't work, manually load the file via the player's subtitle menu (in VLC: Subtitles > Add Subtitle File).

If timestamps are off: Double-check the format: HH:MM:SS,mmm. Also, ensure there are no extra spaces before or after the arrow. A common mistake is using a hyphen instead of an arrow.

If the file has garbled text: Re-save the file with UTF-8 encoding. In TextEdit's save dialog, click the Options button (or the gear icon) and select UTF-8 from the encoding list.

Frequently Asked Questions

Can I use Pages or Microsoft Word to create an SRT file?

It's possible but not recommended. Both add formatting that can corrupt the SRT. If you must, export as plain text (.txt) and then rename to .srt, but TextEdit is simpler.

What is the exact timestamp format?

The format is hours:minutes:seconds,milliseconds with a comma before milliseconds. Example: 00:01:30,500. The arrow is --> with spaces.

How do I add subtitles to a video on Mac?

Once you have the SRT file, name it the same as the video and place it in the same folder. Most players (VLC, IINA, QuickTime) will auto-load it. If not, use the player's subtitle menu to add it manually.

Can I create SRT files with special characters like emojis?

Yes, but ensure the file is saved as UTF-8. Some older players may not display emojis correctly, but most modern ones handle them fine.

How do I sync subtitles to a specific part of the video?

Play the video and note the exact time (hours:minutes:seconds) when a line should appear. Use that as the start timestamp. Then note when it should disappear for the end timestamp. You can also use a subtitle editor to adjust timing visually.

Is there a limit to the number of lines in an SRT file?

No, but each subtitle block should be short (usually 1-2 lines) so viewers can read comfortably. The SRT format has no built-in limit.