Working With EBU STL Subtitle Files: Header, Characters, Timing and Conversion
What is inside an EBU Tech 3264 .stl file, how its character tables and frame timecodes work, and how to convert subtitles to SRT, WebVTT or TTML and back.

Working With EBU STL Subtitle Files: Header, Characters, Timing and Conversion
EBU STL is the subtitle exchange format of European television. Broadcasters, subtitling houses and archives have swapped .stl files since the early 1990s, and many still ask for them. The format is binary, so a text editor shows nonsense, and web players do not read it. Converting between STL and the web formats is a routine job for anyone who handles broadcast subtitles.
Inside an STL file
The file opens with a 1,024-byte header called the General Subtitle Information block. It holds a disk format code such as STL25.01, which fixes the frame rate at 25 frames a second, a character table number, a language code, programme and episode titles, the maximum characters per row, the number of subtitles and a start-of-programme timecode. After the header come 128-byte Text and Timing Information blocks. Each holds a subtitle number, in and out timecodes in hours, minutes, seconds and frames, a vertical position in teletext rows, a justification code and up to 112 bytes of text. Longer subtitles continue in extension blocks.
The text uses control codes rather than tags: 0x80 and 0x81 turn italics on and off, 0x8A is a line break and codes 0 to 7 change the teletext colour. In the usual Latin table, ISO 6937, an accented letter is two bytes, the accent first and then the letter.
Worked example
The EBU STL Subtitle Converter opens with episode 3 of a programme called Harbour Lights from Northwind Media. It has four subtitles: "Where were you last night?" from 1.2 to 3.8 seconds; a two-line subtitle ending "Waiting for the café to open."; "Nobody waits that long." in italics; and "Señora Núñez did, every Sunday." from 10.5 to 13.2 seconds.
Saved as STL at 25 fps, the file is exactly 1,536 bytes: the header plus four blocks. The é in café is written as the acute accent byte followed by e, and the ñ in Señora as the tilde byte followed by n. The two-line subtitle sits on row 20 and the single lines on row 22, all centred.
Open that STL again and the times are no longer quite what you typed. Each frame lasts 40 milliseconds, so 4.1 seconds, which falls halfway between frames, is stored as frame 102 and reads back as 4.08. 9.9 becomes 9.92 and 10.5 becomes 10.52, while 1.2, 3.8, 7.0, 7.4 and 13.2 land exactly on frames and stay put. The accents come back intact, and the italic line keeps its tags. As WebVTT the one-line cues get line:95% and the two-line cue line:86%.
Converting in each direction
From STL you can save SRT for most editors and media players, WebVTT for web video, and TTML for streaming platforms that want XML. In the other direction, open an SRT or VTT file, choose 25 or 30 frames a second, and save a new STL with an ISO 6937 header. Before saving, the cue table flags subtitles that end before they start, overlap the previous one or have a line longer than the limit you set, 40 characters to begin with.
Common mistakes
- Forgetting the start-of-programme offset. Many broadcast files start at 10:00:00:00; tick the subtract TCP option before opening the file so the first subtitle starts near zero.
- Choosing the wrong frame rate when writing STL. A 30 fps file played as 25 fps drifts further out of sync with every minute.
- Expecting colours in SRT. Teletext colours and boxing are read but not carried into the web formats; italics are.
- Converting a Cyrillic or Greek SRT straight to STL. A new file uses the Latin ISO 6937 table, so open the original STL when you need its ISO 8859 table kept.
- Expecting TTML to carry the language. It is always tagged as English, so change the xml:lang attribute if your platform checks it.
- Skipping a check in the real playout system. Positions are approximated outside teletext.
Files are converted inside the browser and nothing is uploaded.


%20Generator&c=%23991b1b&k=documents)
