Hardcoded Subtitle Extractor (Burned-In Subtitles to SRT)

Some videos carry their subtitles inside the picture, so no player can switch them off or export them. Mark the strip where the text sits, and this extractor reads it frame by frame with OCR, joins the repeated readings into timed lines and gives you an editable SRT or VTT file.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Open the video

    Choose an MP4, WebM or MOV file that plays in your browser.

  2. 2
    Mark the subtitle strip

    Drag a box around the area where the subtitle lines appear and scrub to a frame with text.

  3. 3
    Tune the text mask

    Pick the text colour and move the level until the preview shows clean black letters, then test OCR.

  4. 4
    Extract

    Choose the language and the sampling interval and press Extract subtitles.

  5. 5
    Correct the cues

    Tap a cue number to see its frame, fix the text and times, join or delete cues.

  6. 6
    Save

    Pick SRT, VTT or another format and save the file.

About this tool

Hardcoded (also called burned-in or open) subtitles are painted into the video frames before the file is made. Downloads from social sites, old TV rips, screen recordings of lectures and many foreign-language clips come this way. Translators, editors and teachers often need the text as a real subtitle file, to translate it, fix it, make it searchable or show it in a different style. This tool does the slow part for you. Open the video, drag a box around the subtitle area, and choose the text colour: white, yellow, any bright colour, or dark text on a light band. A live preview shows exactly what the OCR engine will see, black letters on white, so you can tune the level slider until the letters are solid and the background is clean. The outline test keeps only bright pixels that sit next to a dark edge, which removes most sky, shirts and signs. Then the video is sampled at the interval you pick. Only frames whose text area really changed are read, so a 20-minute clip needs a few hundred OCR reads rather than thousands. Readings that match closely are merged into one cue, the most frequent reading wins, and the cue gets its start and end time from the first and last frame in which the text was seen.

Getting a clean result

The strip matters most. Make it just tall enough for two lines of text and leave out logos and channel bugs. If the subtitles change position (top for signs, bottom for speech), run the extraction twice with two strips and combine the files in the subtitle converter. White text with a black outline is the easiest case. For yellow subtitles choose Yellow; for text in a box choose Dark text or switch the outline test off. Use Test OCR on a few frames before the full run.

Timing

With a 0.25 second interval, cue times are accurate to about a quarter of a second, which is fine for most viewing. A 0.1 second interval is more precise and four times slower. After the run you can change how strict the merging is and drop very short cues without reading the video again.

Languages

English and Bengali are part of this site. Other languages, from Spanish and French to Arabic, Hindi, Chinese, Japanese and Korean, download a recognition file of 1 to 3 MB from jsDelivr the first time.

Limits

OCR is not perfect: expect to correct names, rare words and letters such as l, I and 1. Handwritten or stylised fonts, karaoke colour wipes, scrolling text and subtitles over bright busy backgrounds give more errors. The video has to play in this browser (MP4 with H.264 or WebM work everywhere); convert other formats first. Italics and colours are not detected.

Worked example

A teacher has a 12 minute 30 second documentary clip with white burned-in English subtitles at the bottom. She marks a strip over the bottom 18 percent of the frame, keeps White with the outline test, and samples every 0.25 seconds from 0 to 750 seconds: 3,001 samples. The text area changed in 412 of them, so the engine reads 412 crops, about 4 minutes on a laptop. Merging at 75 percent similarity gives 186 cues. She joins two cues that were split by a flash frame, fixes 9 misread words, deletes one cue that came from a sign, and saves an SRT of 185 cues that she then translates.

Quick facts

Frequently asked questions

Why can my video player not turn these subtitles off?

Because they are part of the picture itself, like a caption painted onto a photo. Soft subtitles are a separate track that players can hide; burned-in ones can only be read back from the image, which is what OCR does.

How long does the extraction take?

It depends on the interval and how often the text changes. Seeking and checking a frame takes a few milliseconds; each OCR read takes about half a second. A typical 10 minute clip at 0.25 seconds finishes in 3 to 6 minutes on a laptop and takes longer on a phone.

Can it remove the subtitles from the video?

No. It only reads the text. Removing burned-in text means repainting the pixels behind it, which is a different job; cropping the strip off or covering it with a box are the simple options.

Why are some cues split in two?

A single frame where the text faded, a flash or a camera cut can break a run of identical readings. Lower the merge setting a little and press Merge again, or use the Join button on the cue in the table.

Is my video uploaded for the OCR?

No. The frames are drawn from the video element in this tab and read by Tesseract running in a web worker on your device. Only the recognition data for the chosen language is downloaded.

Which output format should I choose?

SRT is understood by almost every player, editor and upload form. Choose VTT for web players and YouTube, ASS if you want to style the text in Aegisub, or any of the other formats in the list.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages