HTML Strikethrough Generator
Wrap text in HTML s or del tags with escaped output and live preview in the browser.
The HTML Strikethrough Generator helps you wrap plain text in semantic or presentational strikethrough tags. It escapes special characters so the result is safe to paste into templates, CMS blocks, or HTML email. You can choose between <s> and <del>, preview the rendered effect, and copy the markup instantly.
When to use <s> versus <del>
<s> represents content that is no longer accurate or relevant but is kept for reference (for example, an old price next to a sale price). <del> marks text that has been removed from a document, often paired with <ins> for replacements. Both render with a default strikethrough in browsers; pick the tag that best matches your meaning for accessibility and SEO.
How this tool works
- Type or paste the text you want struck through.
- Choose
<s>or<del>. - Choose a single wrapper for the whole block, or one tag per non-empty line.
- Copy the generated HTML from the output panel or download it as a file.
Escaping and safety
Angle brackets, ampersands, and quotes in your input are escaped so they appear as text inside the tag instead of being interpreted as extra HTML. That reduces accidental broken markup when you paste user-provided or messy content.
Example
Input (two lines, “each line” mode):
List price: $120
Sale price: $89
Example output with <s>:
<s>List price: $120</s>
<s>Sale price: $89</s>
Frequently Asked Questions
Does this tool send my text to a server?
No. Conversion runs entirely in your browser; nothing is uploaded for strikethrough wrapping.
Can I use this for Markdown instead of HTML?
Markdown uses ~~text~~ for strikethrough in many flavors. This tool outputs HTML only; use a Markdown editor if you need ~~ syntax.
Why does my preview look different from my site?
Browsers apply default styles to <s> and <del>. Your site’s CSS may override line height, color, or decoration. The preview shows unstyled default rendering.
What happens to empty lines in “per line” mode?
Empty lines are preserved in the output as blank lines without wrapping an empty tag around them.