What is a .sub file?
Subtitle File (MicroDVD or VobSub) · Video · Various · n/a
A .sub file holds subtitles, but in two different forms. It is either a plain-text MicroDVD file that times lines by video frame, or a binary VobSub picture stream that always comes with a matching .idx file. What opens it depends on which kind you have.
What is a .sub file used for?
The MicroDVD kind is plain text, where each line is timed to frame numbers in curly braces, like {100}{200}Hello. You can read and edit it in a text editor.
The VobSub kind is different: it stores subtitles as images (ripped from DVDs) and never travels alone, it always has a partner .idx file that indexes it. You need both files together, in the same folder, for a player to show them.
To tell them apart, open the .sub in a text editor. If you can read the lines, it is MicroDVD; if it looks like binary junk and there is a .idx beside it, it is VobSub.
Either way, players like VLC display .sub subtitles with a video, and subtitle tools can convert them to the simpler, more portable SRT.
How to open a .sub file
The .sub format opens in the following apps, grouped by operating system. If one app does not work, try another from the same list.
Windows
- Text editor (MicroDVD)
- VLC / players (both; VobSub needs its .idx)
- Subtitle Edit
macOS
- TextEdit (MicroDVD)
- VLC / IINA
Linux
- Text editor (MicroDVD)
- VLC / mpv
Web
- Convert to SRT or VTT first
How to convert a .sub file
You can convert a .sub file to SRT, VTT using a conversion tool or the export menu of an app that opens it.
.sub file signature (magic bytes)
Programs recognise a .sub file by the bytes at the start of the file, not by its name. These are the signatures for SUB.
| Hex signature | Offset | Note |
|---|---|---|
| (no fixed signature) | 0 | no single signature; a .sub is either MicroDVD text or a binary VobSub stream paired with a .idx file |
See the full magic-numbers reference for every format.
Frequently asked questions
What is a .sub file?
A .sub file holds subtitles, but in two different forms. It is either a plain-text MicroDVD file that times lines by video frame, or a binary VobSub picture stream that always comes with a matching .idx file. What opens it depends on which kind you have.
How do I open a .sub subtitle file?
Play it alongside the video in VLC. If it is the VobSub kind, keep the matching .idx file in the same folder, since the two work as a pair. If it is MicroDVD text, you can also open and edit it in any text editor.
Why is my .sub file unreadable, or why does it need an .idx?
Because it is the VobSub type, which stores subtitles as images rather than text, so it looks like binary in an editor and relies on a companion .idx file to index it. Keep the .sub and .idx together and load them in a player like VLC.
Related formats
Sources
Details on this page were checked against authoritative references: