Subtitle guide Workflow guides

How to remove HTML tags from subtitles

Updated

TL;DR — Remove leftover HTML tags from SRT, VTT, or ASS subtitle text while preserving readable captions, cue timing, and upload-safe subtitle structure.

Related tool

Subtitle Cleaner Online

Open Cleaner

Subtitle files sometimes contain leftover tags from editors, transcripts, or copied web text.

Quick answer

Use Subtitle Cleaner to remove common inline tags such as <b>, <i>, <font>, and <span> while keeping subtitle text and timing.

For SRT-only cleanup, use Clean SRT File Online after checking whether the file also needs cue-number, spacing, or timestamp cleanup.

If an upload form rejects the file after tag cleanup, run the result through SRT Validator or WebVTT Validator depending on the final format.

What counts as an HTML tag in subtitles?

Many subtitle files use lightweight markup inside cue text. Some players understand it, but upload forms, transcript tools, and client review systems often want plain caption text instead.

Common examples include:

<b>important line</b>
<i>whispered text</i>
<font color="red">warning</font>
<span class="speaker">Alex:</span> Start here.

When those tags appear as visible text during playback, remove them from the delivery copy. When styling is intentional, keep an original source copy before creating a plain-text version.

When to remove tags

Remove HTML-style tags when:

  • a platform rejects the subtitle file
  • captions show raw tags on screen
  • copied transcript text contains markup
  • subtitle styling should be handled by the player instead
  • you need a clean handoff file for review

Some platforms support limited formatting, but plain captions are usually safer for upload and review.

Clean, convert, or keep styling?

SituationBest next step
Raw <font> or <span> text appears on screenClean the subtitle text and preview the result.
YouTube, Vimeo, or a client portal rejects the fileClean tags first, then validate the output before re-uploading.
The file is SRT and also has bad cue numbers or spacingUse Clean SRT File Online so numbering and blank lines are normalized too.
The file is ASS and styling mattersKeep the ASS source, then create a delivery copy with ASS to SRT Converter if the destination needs plain captions.
Tags are intentional for browser captionsConfirm the target player supports the markup before stripping it.

Step-by-step workflow

  1. Keep a copy of the original subtitle file.
  2. Open Subtitle Cleaner.
  3. Upload or paste the SRT, VTT, or ASS file.
  4. Remove inline HTML-style tags from the subtitle text.
  5. Check that cue timing, cue order, and line breaks stayed intact.
  6. For SRT, run SRT Validator if the upload form still complains.
  7. For VTT, confirm the file still starts with WEBVTT and test with WebVTT Validator.
  8. Export the cleaned file and test it in the destination platform.

Before and after example

Before cleanup:

1
00:00:01,000 --> 00:00:03,000
<font color="yellow"><i>We start now.</i></font>

2
00:00:04,000 --> 00:00:06,000
<span class="speaker">Alex:</span> Keep the timing.

After cleanup:

1
00:00:01,000 --> 00:00:03,000
We start now.

2
00:00:04,000 --> 00:00:06,000
Alex: Keep the timing.

The cue numbers and timestamps stay in place. Only the visible caption text changes.

Common mistakes

Removing tags from the only source copy

If styling matters, keep the original file. Cleanup creates a safer delivery copy, not a full replacement for an edited source.

Treating ASS override tags as HTML

ASS uses a different styling syntax. Convert or clean ASS separately and preview the result.

Ignoring line breaks after cleanup

Removing tags can change how a line reads. Scan the result for awkward line breaks.

Forgetting to validate the delivery format

Tag cleanup does not prove the file is valid SRT or VTT. If the destination still rejects it, validate structure, timestamps, and encoding before trying another upload.

Frequently asked questions

How do I remove HTML tags from subtitles?

Use Subtitle Cleaner to strip inline tags such as <font>, <span>, <b>, and <i> while keeping cue text and timestamps in place.

Will removing tags change subtitle timing?

No. Removing HTML tags should clean caption text only. After cleanup, still preview the file to confirm cue timing and line breaks stayed intact.

Should I remove all subtitle styling tags before upload?

Remove tags when the destination shows raw markup, rejects the file, or requires plain captions. Keep a source copy if styling matters for later editing.

Can I remove HTML tags from SRT, VTT, and ASS files?

Yes. SRT and VTT often contain HTML-like tags, while ASS may contain override tags. Clean the delivery copy and validate the result before upload.

Use the Subtitle Cleaner Online

Clean subtitle files online by removing HTML tags, fixing spacing, and keeping SRT, VTT, or ASS timing intact. No signup, no upload, and everything runs locally in the browser.

Open Cleaner