CueConvertBrowser-only tool

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>&nbsp;</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 &nbsp; 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.

MeasurementObserved value
Fixture size / structure741 bytes · 6 SYNC blocks · 2 tracks (ENCC, ESCC) · inline <i>, <br>, &amp;, numeric entities, two &nbsp; clears
SRT cues written (ENCC)3
First timecode00:00:01,000 --> 00:00:03,500
Last timecode00:00:09,000 --> 00:00:11,250
Downloaded SRT169 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 case308-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 case0 cues, 1 explicit warning; no end time invented
Malformed case0 cues, 3 warnings: missing Start=, unusable next SYNC, and a backwards Start=1500 after Start=2000
390 px viewportclientWidth 390 = scrollWidth 390, no horizontal overflow; file input, track selector and buttons visible
Diagram showing a SAMI SYNC block with Start=1000 and Start=3500 producing one SRT cue from 00:00:01,000 to 00:00:03,500
Original diagram built from the measured SAMI input and the downloaded SRT output.

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.

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 &nbsp;-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 &amp; are decoded to plain text. If the timing or the wording matters, check the output preview before using it.

Failure boundaries