A Beginner's Guide to Subtitle Files: Formats, Timing, Encoding and Common Tasks
Subtitle files look simple once you understand them, but the first time you open one the structure is not always obvious, and the vocabulary — cues, sidecars, soft and hard subs, encodings, frame rates — can feel like jargon. This guide starts from zero. It explains what is inside a subtitle file, why there are so many formats, where subtitle files come from, what the key terms mean, and which everyday tasks you are likely to run into, with a pointer to the right tool or guide for each.
What a subtitle file actually contains
At its core a subtitle file is a list of entries, and each entry has three parts: a start time, an end time and the text to display between those two moments. Everything else — headers, styles, positioning — is built on top of that basic idea.
1
00:00:01,000 --> 00:00:03,500
Welcome to the tutorial.
2
00:00:04,000 --> 00:00:07,000
First, let's open the project
and check the settings.This is also why subtitle files are tiny: a feature-length film's subtitles are usually a few dozen to a couple of hundred kilobytes, because they only hold text and numbers. And it is why they are plain text rather than a complex binary format, which in turn is why you can open most of them in Notepad.
Why subtitles are usually a separate file
Keeping subtitles apart from the video has real advantages. The same video can have subtitles in a dozen languages without duplicating the much larger video file. Subtitles can be corrected, translated or restyled without touching the video. And viewers can turn them on or off or choose between languages, which would be impossible if the text were drawn into the picture itself.
Subtitles that are drawn into the picture are called hardcoded, burned-in or open captions. They are useful in specific situations, such as social clips watched with the sound off, but they are permanent. Our guide to soft versus burned-in subtitles compares the two approaches in detail.
The common formats, briefly
| Format | Extension | In one sentence |
|---|---|---|
| SubRip | .srt | The simplest and most widely supported format: numbered entries with a time range and text. |
| WebVTT | .vtt | A close relative of SRT designed for web video, with a WEBVTT header and optional styling and positioning. |
| Advanced SubStation Alpha | .ass | A powerful format with named styles, fonts, colors, positioning and effects, common in fansubbing. |
| SubStation Alpha | .ssa | The older predecessor of ASS, with a very similar structure. |
There are others, such as TTML and SBV, but SRT, VTT and ASS/SSA cover the vast majority of what you will meet. If you want a closer look at how they differ, read our comparison of SRT, VTT and ASS.
Where subtitle files come from
- Written by hand: a translator or captioner typing and timing the text, usually in a dedicated subtitle editor.
- Generated automatically: a platform or a speech-recognition tool listens to the audio and produces text with timing. This is quick but needs proofreading.
- Exported from an editing program: a video editor can export the subtitle track of a timeline as an SRT or similar file.
- Extracted from a video: some video files contain embedded subtitle tracks that can be saved as a separate file.
- Downloaded from a platform: many platforms let a channel owner download the captions for their own videos.
Automatically generated subtitles in particular are often a little messy — awkward line breaks, misheard words, wrong names, timing that is close but not exact — which is one of the most common reasons people end up converting, cleaning or re-timing a subtitle file before using it.
A short glossary
| Term | Meaning |
|---|---|
| Cue (or entry) | One subtitle: a start time, an end time and some text. |
| Timecode / timestamp | The time at which something starts or ends, written as hours:minutes:seconds and a fraction. |
| Sidecar file | A subtitle file that sits next to the video file instead of inside it. |
| Soft subtitles | Subtitles that remain text and can be switched on or off by the viewer. |
| Burned-in (hardcoded) subtitles | Subtitles rendered into the picture so they cannot be turned off. |
| SDH | Subtitles for the deaf and hard of hearing, which include descriptions of sounds and speakers as well as dialogue. |
| Forced subtitles | Subtitles shown only for parts of the video where the dialogue is in a different language than the rest. |
| Encoding | The system that maps characters to bytes in a file. UTF-8 is the modern standard; mismatched encodings cause garbled accents. |
| Frame rate | How many pictures per second a video has. A mismatch between the subtitles' frame rate and the video's can cause drift. |
| Characters per second (CPS) | A measure of reading speed: the number of characters divided by how long they are on screen. |
Everyday tasks and the right tool for each
| You want to… | Use |
|---|---|
| Get just the dialogue as text for translation or notes | SRT to TXT or VTT to TXT — and read our guide to extracting clean text. |
| Use an SRT subtitle on a website video | SRT to VTT, then attach the VTT with the HTML track element. |
| Edit a web caption file in a standard editor | VTT to SRT. |
| Make a styled .ass file work in a player that only reads SRT | ASS to SRT or SSA to SRT, remembering that styling is dropped. |
| Review timing or reading speed in a spreadsheet | SRT to CSV — and see our style guide for the formulas. |
| Put subtitles into documentation or notes | SRT to Markdown or VTT to Markdown. |
| Fix accents that show as strange symbols | Re-save the file as UTF-8 — see our encoding guide. |
| Fix subtitles that are late, early or drift | Use a subtitle editor — see our guide to timing and sync problems. |
A first workflow for a new subtitle file
- 1Open the file in a plain text editor and take a look at it. Confirm the text is readable and the timestamps look sensible.
- 2Check the format by its structure, not only its extension: SRT has numbered entries; VTT starts with WEBVTT; ASS has bracketed sections.
- 3If the accented characters look wrong, fix the encoding before doing anything else.
- 4Convert to the format your destination needs.
- 5Play it with the video and check the beginning, the middle and the end for sync.
- 6Keep the original file, so you can always go back to it.
Frequently asked questions
- Which subtitle format should a beginner use?
- SRT. It is the simplest, the most widely supported, and easy to open and edit in any text editor.
- Do I need special software to open a subtitle file?
- No. SRT, VTT, ASS and SSA are all plain text, so a basic text editor opens them. Dedicated subtitle editors are only needed for serious timing or styling work.
- What is the difference between subtitles and captions?
- Subtitles generally assume the viewer can hear the audio and provide a translation or a transcription of the dialogue. Captions, particularly SDH captions, also describe sounds and speakers for viewers who cannot hear. In practice the files and formats are the same.
- Can I make my own subtitles?
- Yes. You can type the entries by hand in a text editor, use a free subtitle editor that shows the video while you time each line, or start from automatically generated text and correct it.