SMI to SRT.
A SAMI (.smi) file holds captions as <SYNC Start=…> blocks, one or more language tracks in <P Class=…>, and HTML styling inside the text. Pick a file and a track below; the SRT is built and downloaded in your browser. Nothing is uploaded.
The file is read with the File API. Windows-1252 files without a BOM are detected when UTF-8 decoding fails, and the SRT is always written as UTF-8.
Choose a .smi file to begin.
Output preview
No conversion yet.
What the conversion actually does
SAMI was the caption format for Windows Media Player. Unlike SubRip, it does not store an explicit end time: a <SYNC Start=1000> says the following line appears at 1.000 seconds, and it stays on screen until the next <SYNC> for the same Class. A <P Class=ENCC> </P> block is a clear, not a caption. So a converter has to derive end times, strip inline markup such as <i> and <br>, decode HTML entities, and pick one language track. That derived end time is the single biggest source of conversion error.
SAMI files still turn up in real support questions. A Linux Mint Forums thread dated 13 June 2012 asks how to turn a .smi file into .srt for a desktop player. That is a user problem with a date and a link, not a search-volume or ranking measurement.
Measured fixture (English track)
The sample file used for this check has two tracks, six SYNC blocks, inline italics, a <br>, a numeric entity and two clears. These are values read back from the downloaded SRT in a real browser, not estimates. A browser-only SMI converter is not a unique feature, so this page publishes its own measured input, output and failure cases instead of a comparison claim.
| Measurement | Observed value |
|---|---|
| Fixture size / structure | 741 bytes · 6 SYNC blocks · 2 tracks (ENCC, ESCC) · inline <i>, <br>, &, numeric entities, two clears |
| SRT cues written (ENCC) | 3 |
| First timecode | 00:00:01,000 --> 00:00:03,500 |
| Last timecode | 00:00:09,000 --> 00:00:11,250 |
| Downloaded SRT | 169 bytes, valid UTF-8; text, cue count and both timecodes matched the on-page preview exactly |
| Spanish track (ESCC) | 3 cues, 180 bytes; Primera línea y bienvenida and Último a los nueve segundos preserved as UTF-8 |
| Legacy encoding case | 308-byte Windows-1252 file with no BOM: UTF-8 decoding failed on byte 0x93, fell back to Windows-1252, and produced a 115-byte UTF-8 SRT containing “Café” — first cue |
| No-following-SYNC case | 0 cues, 1 explicit warning; no end time invented |
| Malformed case | 0 cues, 3 warnings: missing Start=, unusable next SYNC, and a backwards Start=1500 after Start=2000 |
| 390 px viewport | clientWidth 390 = scrollWidth 390, no horizontal overflow; file input, track selector and buttons visible |
Reproduce the measurement
The four sample SAMI files below are the ones used for the table. Download one, choose it above, pick a track, then compare the downloaded SRT with the preview.
- sample-en.smi — 741 bytes, UTF-8, English and Spanish tracks, inline markup and entities.
- sample-windows1252.smi — 308 bytes, legacy Windows-1252 with no BOM.
- sample-no-following-sync.smi — 125 bytes, a final cue with no defined end time.
- sample-malformed.smi — 248 bytes, a missing Start, an unusable next SYNC and a backwards Start.
Direct answers
Is my SAMI file uploaded to a server?
No. The file is read with the browser's File API, parsed in JavaScript and written to a Blob; the download URL is a local object URL. There is no fetch, no back end and no account. This page also sets a Content-Security-Policy that allows only its own scripts, stylesheet and images.
Why did one of my captions disappear?
Two cases are intentional. A -only SYNC is a screen clear and produces no cue. A final SYNC with no later SYNC on the same track has no defined end time in SAMI; instead of inventing a duration, the tool reports it in the warnings list and leaves it out of the SRT.
Will styling and positioning survive?
No. SRT has no class, font, colour or position fields. Inline <i>, <b> and <font> tags are removed, <br> becomes a line break, and entities such as & are decoded to plain text. If the timing or the wording matters, check the output preview before using it.
Failure boundaries
- No explicit end times. Every cue end is the next SYNC start for the chosen track. If your SAMI relies on a player-specific hold time, the SRT will end the cue early or late.
- Track selection is manual. SAMI can carry several
Classtracks in one file. One SRT holds one track; the other tracks are not merged. - Encoding is guessed only when necessary. UTF-8 with or without a BOM and UTF-16LE with a BOM are read directly; a byte sequence that is not valid UTF-8 is decoded as Windows-1252 and reported. UTF-16BE, exotic code pages and DRM-protected SAMI are not supported.
- Markup is not a subtitle specification. SAMI files in the wild contain non-standard HTML, nested tables and script fragments. These are stripped as plain text, which can leave stray text behind; the preview is the check.
- No OCR and no timing repair. This tool reads text-based SAMI only. It cannot read image subtitles, align captions to audio or fix overlapping SYNC values.