Troubleshooting••8 min read

How to Remove Formatting and Styling Tags From an SRT File

Learn how to remove SRT formatting and styling tags like <b> and <i> while keeping subtitle text, timing, and sequence numbers intact.

If you have ever opened a subtitle file and found dialogue surrounded by tags like <b>, </b>, <i>, or </i>, you may wonder how to remove formatting and styling tags from an SRT file without ruining your subtitle timing.

The good news is that you can safely strip unwanted formatting tags from an SRT file while keeping every millisecond of your subtitle timestamps, sequence numbers, and dialogue text completely intact.

However, cleaning subtitle markup requires a careful approach. Not every piece of text enclosed in angle brackets is necessarily unwanted formatting. In some videos, characters speak mathematical comparisons, code snippets, or onscreen signs (such as <OPEN> or <EXIT>) that represent legitimate dialogue. Blindly deleting every angle bracket across a file can accidentally erase real words.

In this comprehensive guide, you will learn what styling tags look like inside an SRT file, why they appear, how to remove them safely from small and large files, how to preserve your subtitle synchronization, and how format conversion affects subtitle styling.


What Are Formatting and Styling Tags in an SRT File?

An SRT (SubRip) subtitle file is fundamentally a lightweight plain-text format designed to store sequence numbers, timestamps, and dialogue.

Unlike full HTML web pages or advanced subtitle formats like ASS (Advanced SubStation Alpha), the official SubRip specification does not define a rich styling language. However, by informal industry convention, many video editors and media players support basic HTML-like formatting tags placed directly around words:

1
00:00:01,000 --> 00:00:03,000
<b>Welcome to the tutorial.</b>

2
00:00:03,500 --> 00:00:05,500
<i>This is an important step.</i>

In software that supports these tags, Cue 1 renders with bold text, and Cue 2 renders with italic text.

However, SRT is not an HTML document. You cannot use full HTML elements like <div>, <p>, or CSS stylesheets. When tags appear inside an SRT file, they are simply inline hints for compatible video players.


Why Do Formatting Tags Appear in SRT Files?

Formatting tags can end up in your subtitle files for several common reasons:

  1. Exported from Video Editing Software: Applications like Adobe Premiere Pro, DaVinci Resolve, or Final Cut Pro often export bold titles and speaker emphasis as inline <b> and <i> tags.
  2. Converted from Another Subtitle Format: Converting from formats like WebVTT or ASS frequently carries over inline styling tags into the resulting SRT file.
  3. Manual Subtitle Authoring: Translators and captioners often add <i> tags to denote offscreen narration, telephone voices, or foreign phrases.
  4. Different Player Interpretations: A subtitle file that rendered beautiful italics on desktop VLC might suddenly display raw <i> code when transferred to a smart TV or web player.

If you are seeing raw tags displayed visibly on your screen during video playback, read our in-depth companion article on Why Does My SRT File Show HTML Tags Like <b> and </b>?.


Common Formatting Tags You May See in an SRT File

Here is a quick reference guide to the styling tags most commonly encountered in SRT subtitle files:

Tag SyntaxIntended StylingCommon Subtitle Purpose
<b> ... </b>BoldShouting, loud volume, important warning labels
<i> ... </i>ItalicsOffscreen dialogue, narration, whispers, music lyrics, foreign terms
<u> ... </u>UnderlineEmphasis, book or movie titles in dialogue
<font color="#ff0000">Text ColorDifferentiating multiple speakers in closed captioning
<font face="Arial">Custom FontSpecifying typography (rarely supported in SRT)

Support for these tags varies dramatically between media players. Desktop players like VLC, MPV, and MPC-HC interpret them seamlessly, while basic television software and strict web players often fail to parse them.


How to Remove Formatting Tags From an SRT File Manually

If you have a short subtitle file (such as a 2-minute promo video or commercial) with only a few formatted cues, removing tags manually in a plain-text editor is quick and completely safe.

Follow these step-by-step instructions:

Step 1: Make a Backup Copy

Before opening the file, create a duplicate copy (e.g., video_backup.srt). This ensures you can revert to the original styling if needed.

Step 2: Open in a Plain-Text Editor

Open the SRT file in a code editor like VS Code, Notepad++, or standard Notepad. Avoid rich-text editors like Microsoft Word, which can alter quote marks and spacing.

Step 3: Locate the Formatting Tags

Scroll through the dialogue lines and locate the opening and closing tags (such as <b> and </b>).

Step 4: Delete Only the Markup Characters

Carefully delete the opening tag <b> and closing tag </b>, leaving the dialogue text between them untouched.

Step 5: Preserve Sequence Numbers and Timestamps

Do not delete or modify: - The sequence numbers (e.g., 1, 2, 3) - The timestamp lines (00:00:01,000 --> 00:00:03,000) - The blank lines between cues

Step 6: Save and Test

Save the file as plain text with the .srt extension using UTF-8 encoding. Test the cleaned file in your video player.

Before and After Example:

BEFORE (With formatting markup):
1
00:00:01,000 --> 00:00:03,000
<b>Welcome to our channel.</b>

2
00:00:03,500 --> 00:00:06,000
<i>Please subscribe for updates.</i>

AFTER (Cleaned plain text):
1
00:00:01,000 --> 00:00:03,000
Welcome to our channel.

2
00:00:03,500 --> 00:00:06,000
Please subscribe for updates.

Notice that the sequence numbers, timestamps, and dialogue words remain identical. Only the markup characters were removed.


How to Remove <b>, <i>, and Other Tags From Many Subtitles

If you have a movie, documentary, or extensive course with hundreds of subtitle lines, manual editing is too slow.

Here are the safest ways to clean tags in bulk:

Method 1: Specific Find and Replace in Text Editors

The safest bulk method in any text editor (Notepad, VS Code, Notepad++) is to search for specific known tags one at a time: 1. Open Find and Replace (Ctrl+H). 2. In Find, enter <b>. Leave Replace empty → click Replace All. 3. In Find, enter </b>. Leave Replace empty → click Replace All. 4. Repeat for <i>, </i>, <u>, and </u>.

This targeted method guarantees that you will never accidentally delete legitimate dialogue characters.

Method 2: Dedicated Subtitle Editors

Subtitle editing programs include automated formatting strippers: - Subtitle Edit: Open the SRT file → select all cues (Ctrl+A) → right-click → choose Remove formatting → select which tags to strip (bold, italic, colors, or all) → click OK → Save. - Aegisub: Load the subtitle and use style cleaner utilities to strip inline override tags.

Method 3: Dedicated Browser Tools

If you need clean transcripts without timestamps or styling, use our free SRT to Text Converter. It strips all tags, cue numbers, and timecodes, leaving pure dialogue in seconds.

The Danger of Blindly Using Regular Expressions (<.*?>)

Many online tutorials suggest using a global regex find-and-replace like <[^>]+> to wipe all tags instantly.

While convenient, be cautious with broad regex replacement:

10
00:00:20,000 --> 00:00:22,000
The sign on the door says `<OPEN>`.

If you apply a generic regex to this cue, <OPEN> will be erased completely, turning the subtitle into:
The sign on the door says .

If you use regex patterns, always inspect the file on a backup copy or use specific patterns targeting known tags:
</?(b|i|u|font)( [^>]*)?>


How to Remove SRT Tags Without Changing Subtitle Timing

A major concern for video creators is whether stripping formatting tags will cause subtitles to fall out of sync with spoken audio.

Removing formatting tags does not affect subtitle timing.

Here is why:

  • Video players determine display timing exclusively from the timestamp line (HH:MM:SS,mmm --> HH:MM:SS,mmm).
  • Formatting tags exist strictly on the dialogue text line.
  • Deleting <i> and </i> changes only the visual appearance of the characters; it does not shift start times or end times by even one millisecond.

If your subtitles were synchronized before cleaning, they will remain synchronized afterward. If you are experiencing genuine audio lag or drift, read our guide on How to Fix SRT Subtitles Out of Sync.


What If the Tags Are Showing as Visible Text?

If your media player displays literal <b>Hello</b> on screen instead of Hello, this is almost always a player compatibility issue rather than a damaged file.

Common causes include:

  • Smart TV Built-in Players: LG webOS, Samsung Tizen, and older television USB media players often lack HTML tag parsing for SRT subtitles.
  • Video Editing Software: Some NLE timelines import SRT text literally, burning tags onto the video.
  • Malformed Markup: A missing closing tag (like <b>text without </b>) can cause the player to print the raw code.

In these situations, removing the tags is the most effective solution to ensure clean, readable subtitles across all playback devices.


Should You Remove Formatting Tags Before Converting SRT to VTT?

Before converting your subtitles to WebVTT (.vtt), decide whether you want to preserve or eliminate styling:

  • If you want bold and italics on the web: Do not remove the tags! WebVTT natively supports <b>, <i>, and <u> tags. When you convert using our free SRT to VTT Converter, the tool preserves your styling tags while updating the header and timestamps to valid WebVTT syntax.
  • If you want plain text captions: Strip the tags from the SRT file first, then run the conversion.

Remember: simply renaming a file from .srt to .vtt does not convert its internal structure. Read Can You Convert SRT to VTT Just by Renaming the File? to understand why proper conversion matters.


What About Converting SRT to ASS?

If your goal is to upgrade plain subtitles into richly styled captions with custom fonts, colors, outlines, and screen positions, converting to ASS (Advanced SubStation Alpha) is the ideal choice.

However:

  • Do not strip formatting tags if you plan to convert to ASS. ASS can translate <b> and <i> into native ASS override tags ({\b1} and {\i1}).
  • If you strip the tags first, the converter will have no styling information left to work with.

To learn how styling is translated between these formats, read our complete guide on How to Convert SRT to ASS Without Losing Subtitle Formatting.


How to Prevent Formatting Tags From Causing Problems

To prevent styling headaches in your future video projects:

  • Always Keep an Untouched Master File: Save your original formatted SRT as a master archive before creating plain-text versions for television or web players.
  • Test in Your Target Playback Environment: Check subtitles on the actual hardware (smart TV, mobile device, or streaming player) your audience will use.
  • Use Dedicated Subtitle Software: Use subtitle editors that validate tags and alert you to unclosed brackets.
  • Choose the Right Format Early: If your project requires heavy styling, use ASS from the start. If you need simple web captions, use WebVTT.

Clean, Format, and Convert Subtitles with SRTConverters

Whether you need to strip styling tags, convert subtitle formats, or create transcripts, SRTConverters provides free, client-side browser tools:

  • Convert SRT to WebVTT: Translate your subtitle files while preserving styling with our SRT to VTT Converter.
  • Convert WebVTT to SRT: Convert web captions back to desktop SubRip format using our VTT to SRT Converter.
  • Upgrade to Styled ASS: Transform simple subtitles into advanced styled files with our SRT to ASS Converter.
  • Convert ASS to Clean SRT: Strip complex override styling tags back to simple SRT using our ASS to SRT Converter.
  • Extract Pure Plain Text: Remove all tags, timestamps, and sequence numbers instantly with our SRT to Text Converter.
  • Generate Timed Subtitles: Convert raw text scripts into timestamped SRT cues using our TXT to SRT Converter.
  • Explore our complete collection of subtitle conversion utilities in the SRTConverters Tool Suite.

Frequently Asked Questions

How do I remove <b> and </b> from an SRT file?

You can open the SRT file in a plain-text editor and use Find and Replace to search specifically for <b> and </b>, replacing them with nothing, or run the file through a dedicated subtitle text cleaner.

How do I remove italic tags from SRT subtitles?

Search for <i> and </i> in your text editor and replace them with an empty string, or use a subtitle editor like Subtitle Edit to batch-strip italic formatting while leaving timestamps untouched.

Can I remove SRT formatting without changing timestamps?

Yes. Removing styling tags modifies only the text lines within subtitle cues. The cue sequence numbers, start timestamps, end timestamps, and timing separators remain completely unchanged.

Why are HTML tags visible in my subtitles?

HTML tags appear literally when a media player or smart TV lacks an internal subtitle markup parser, or when an editor imports the file as raw plain text rather than formatted captions.

Are <b> and <i> tags supported in every SRT player?

No. While VLC, MPV, and MPC-HC support basic inline tags, many smart TV players, mobile video apps, and web players do not support markup in SRT files and will display the raw tags on screen.

Can I remove all HTML tags from an SRT file at once?

Yes, using targeted regular expressions or dedicated subtitle tools. However, avoid blind search-and-replace that strips all angle brackets, as you might accidentally delete legitimate dialogue containing characters like < or >.

Should I remove formatting before converting SRT to VTT?

Only if you want plain text. WebVTT natively supports <b>, <i>, and <u> tags, so a quality converter like our SRT to VTT Converter can preserve those formatting styles automatically.

Will removing SRT tags delete my subtitle text?

Not if done carefully. When you target specific tags like <b> and <i>, only the markup characters are removed, leaving the actual dialogue words completely intact.

Can formatting tags cause subtitle display problems?

Yes. Unclosed tags (like a missing </b>) or unsupported tags can cause some subtitle parsers to glitch, drop lines, or display ugly raw code across the video image.

Should I keep a backup before removing subtitle formatting?

Always. Stripping formatting tags is irreversible. Keeping an untouched master copy ensures you can restore original bold, italic, or color styling if needed in the future.


Final Thoughts

Removing formatting and styling tags from an SRT file is one of the easiest ways to ensure maximum compatibility across smart TVs, basic media players, and video editing timelines.

By targeting specific tags like <b> and <i> rather than blindly erasing all angle brackets, you can clean your subtitle files safely without risking your dialogue text or altering your subtitle timestamps.

Whenever you need to clean, convert, or format subtitle files, use the free browser-based tools in the SRTConverters Tool Suite for fast, 100% private subtitle processing.