Translates

How to say it in other languages, and what words mean

Spanish

SRT Files: Create, Edit, Translate

· 5 min read · Spanish

In this article
  1. What Is Inside an SRT File
  2. How to Create an SRT File
  3. How to Edit an SRT File
  4. How to Translate an SRT File
  5. Common Problems and How to Fix Them
  6. SRT vs. Other Subtitle Formats
  7. Tools for Working with SRT Files
  8. Frequently Asked Questions

An SRT file is a plain-text subtitle file that contains timed captions for video. The name stands for SubRip Subtitle format, named after the SubRip software that popularized it in the early 2000s. Each subtitle entry has a sequence number, a timecode showing when the text appears and disappears, and the subtitle text itself. SRT files are widely supported by video players, streaming platforms, and editing tools, making them the de facto standard for subtitles and closed captions.

What Is Inside an SRT File

An SRT file is structured in blocks separated by a blank line. Each block contains:

  • Sequence number – a running counter (1, 2, 3…).
  • Timecode – in the format HH:MM:SS,mmm --> HH:MM:SS,mmm (hours:minutes:seconds,milliseconds). The arrow indicates the start and end display times.
  • Subtitle text – one or more lines of text. Multiple lines are separated by a newline.

Example of a single subtitle entry:

1
00:00:01,000 --> 00:00:04,000
Hello, welcome to this video.

The timecode uses a comma before milliseconds (not a period), which is a common source of errors when editing manually.

How to Create an SRT File

You can create an SRT file from scratch using any plain-text editor (like Notepad on Windows, TextEdit on Mac, or VS Code). The process involves:

  1. Write the sequence number.
  2. Add the start and end timecodes in the correct format.
  3. Type the subtitle text.
  4. Leave a blank line between entries.
  5. Save the file with the .srt extension, ensuring the encoding is UTF-8 for proper character support.

However, manual creation is time-consuming. Most people use dedicated subtitle editors like Aegisub, Subtitle Edit, or online tools that let you set timestamps by playing the video and clicking “add subtitle” at the right moment.

How to Edit an SRT File

Editing an SRT file can mean fixing typos, adjusting timing, or changing the text entirely. You can open the file in a text editor and make changes directly, but that requires understanding the format. For precise timing adjustments, use a subtitle editor that allows you to shift all subtitles by a certain offset (e.g., +200ms) or drag individual entries on a timeline.

Common editing tasks include:

  • Correcting spelling – just edit the text lines.
  • Adjusting synchronization – if subtitles appear too early or late, shift the timecodes.
  • Merging or splitting entries – combine two short lines or break a long one.
  • Deleting or adding subtitles – renumber the sequence if you add/remove entries.

When editing manually, always keep the timecode format exact: two-digit hours, minutes, seconds, and three-digit milliseconds, with a comma as the decimal separator.

How to Translate an SRT File

Translating an SRT file means replacing the original subtitle text with another language while keeping the timecodes unchanged. You can do this manually by opening the file and rewriting each text line, but that is tedious for long videos. Better options include:

  • Using a subtitle editor with translation features – tools like Subtitle Edit allow you to load two languages side-by-side.
  • Exporting to a translation memory format – some tools export the text to a spreadsheet or a TMX file, which translators can work on without touching the timings.
  • Machine translation – you can use online services that auto-translate SRT files, but the quality varies and you must review the output for context and cultural nuances.

Important: When translating, keep the line length reasonable. A subtitle that fits in English may be too long in German or Spanish. Break long sentences into shorter lines or adjust the timing if needed, but never change the timecodes unless the translation requires it.

Common Problems and How to Fix Them

Here are frequent issues people encounter with SRT files:

  • Subtitle not showing – the file name must match the video file name (e.g., movie.mp4 and movie.srt) and be in the same folder, or you need to load it manually in the player.
  • Wrong encoding – if you see garbled characters, the file may be saved in a non-UTF-8 encoding. Re-save as UTF-8.
  • Timing off – use a subtitle editor to shift all timecodes by a few hundred milliseconds.
  • Too many characters per line – most players display about 42 characters per line; longer lines may get cut off. Split the text.
  • Duplicate sequence numbers – some players ignore entries with duplicate numbers. Renumber sequentially.

SRT vs. Other Subtitle Formats

SRT is not the only subtitle format. Others include:

  • WebVTT (.vtt) – similar to SRT but supports styling and positioning. Used for HTML5 video.
  • ASS/SSA – advanced subtitles with rich formatting, used in fansubbing and karaoke.
  • TTML – a XML-based format for broadcast and streaming.

SRT is the simplest and most compatible. It lacks formatting options like bold or italics, but that is also its strength – any player can read it. For professional work requiring styling, ASS or WebVTT may be better.

Tools for Working with SRT Files

You don’t need expensive software. Free and open-source tools include:

  • Aegisub – advanced editor with audio waveform, good for timing.
  • Subtitle Edit – supports editing, translation, and conversion between formats.
  • Online editors – websites like Kapwing or Happy Scribe allow browser-based editing, but uploading video may raise privacy concerns.

For video players, VLC Media Player and most smart TV apps support SRT files automatically if named correctly.

Frequently Asked Questions

Can I edit an SRT file in Notepad?

Yes, you can open and edit an SRT file in any plain-text editor. Just be careful to keep the timecode format exact and save the file with UTF-8 encoding to avoid character issues.

How do I change the timing of all subtitles at once?

Use a subtitle editor like Subtitle Edit. Most have a “shift” or “offset” feature where you enter a positive or negative time in milliseconds to apply to all entries.

Why won’t my SRT file play with the video?

Usually because the file names don’t match or the SRT is not in the same folder as the video. Rename the SRT to exactly the same name as the video file, keeping the .srt extension.

Is there a maximum length for a subtitle line?

There is no hard standard, but the common guideline is about 42 characters per line and no more than two lines on screen at once. Longer text is harder to read.

Can I translate an SRT file with Google Translate?

You can copy the text parts into Google Translate, but you must reinsert them into the SRT file manually. Some online tools automate this, but machine translation may produce errors in context and timing.

Are SRT files safe to download?

SRT files are plain text, so they cannot contain executable code. However, a malicious file could be disguised as an SRT but actually be a script. Always download from trusted sources and open with a text editor if unsure.