HTML → Text Converter (Remove Tags & Clean Line Breaks)
Extract readable text from pasted HTML. Paragraphs and lists keep natural line breaks, script/style are always removed, and entity decoding is optional.
Formatting Options
Note: <script> and <style> are always removed.
Open formatting options
Remove HTML tags and extract clean text
Strip HTML tags
Remove markup and keep the readable body text only.
Paragraph & list line breaks
Treat <p>/<br>/<li> as natural line breaks.
Script/style excluded + entity toggle
script/style are always removed, and entity decoding is optional.
Тарзи истифода
Paste HTML into the input area or load a file.
Choose line break rules and how to handle links/images.
Click Convert, then copy or download as .txt.
Намуна
<article>
<h2>Headline</h2>
<p>Paste HTML to convert.</p>
<ol>
<li>Step 1</li>
<li>Step 2</li>
</ol>
<p>Details at <a href="https://example.com">official site</a>.</p>
</article>
Headline Paste HTML to convert. • Step 1 • Step 2 Details at official site.
Headline Paste HTML to convert. Details at official site. • Step 1 • Step 2
Headline Paste HTML to convert. 1. Step 1 2. Step 2 Details at official site.
Conversion rules
Line breaks and exclusions follow these rules.
Elements converted to line breaks (standard)
- <br>
- <p>...</p>
- Headings: <h1>–<h6>
- Lists: <li> (adds a marker)
- Blocks: <div>, <section>, <article>, <header>, <footer>, <blockquote>
Elements that often add blank lines
- </p>, </section>, </article> (combined with max line breaks)
Always excluded
- <script>...</script>
- <style>...</style>
- <noscript>...</noscript>
List formatting examples
- <ul><li>Item</li></ul> → • Item
- <ol><li>Item</li></ol> → 1. Item (detailed mode)
Notes & tips
Client-side only
Your input stays in the browser and is never uploaded.
script/style removed
For safety and readability, script/style are always stripped.
Table export choices
TSV is the default, with space or single-line options available.
Action-safe margin (%)
Line breaks look odd
<p>, <br>, and <li> are converted to line breaks. Try changing the line break rule (standard/minimal/detailed) and the max line breaks setting.
Are script/style kept?
No. <script> and <style> are always removed for safety and readability.
What happens to entities like &?
You can choose to decode or keep entities. Turn on Decode HTML entities to convert & into &.
I want fewer breaks and spaces
Use Minimal line breaks, enable Collapse consecutive spaces, and set max line breaks to 1 or 2.
Can I keep URLs too?
Set Link handling to “Text + URL” to keep context and URLs together.