HTML Toolkit
Beautify, minify or strip HTML to plain text, then copy or download the result
- 100% Free
- Files stay private
- Works in your browser
HTML input
Paste the markup you want to beautify, minify, or strip to plain text.
Everything runs in your browser. Your HTML never leaves this page. Minify preserves conditional comments; strip removes scripts and styles before flattening to text.
How it works
Paste your HTML
Paste or type your markup into the HTML input box, or press the Paste button to bring it in from your clipboard.
Pick a mode and run it
Select Beautify, Minify or Strip tags, then press the button of the same name to re-indent, shrink or flatten it to plain text.
Copy or download the result
The output appears below as Beautified HTML, Minified HTML or Plain text. Press Copy or Download to keep it.
Beautify tangled HTML, minify it for production, or strip the tags out to grab the plain text, three jobs in one place. HTML Toolkit handles each mode instantly in your browser so you never have to reach for three separate utilities.
What Is HTML Toolkit?
HTML Toolkit is a free, three-in-one utility for working with raw HTML. Beautify re-indents your markup so nested elements line up and become readable; Minify strips comments and collapses whitespace to shrink the file while deliberately keeping conditional comments intact; and Strip Tags pulls out every element to leave just the plain text content. It runs entirely in your browser, so the markup you paste is never uploaded and stays on your own machine.
Who Benefits from This Tool
- Front-end developers: minify a template before deployment, then beautify it later when it needs editing.
- Email developers: keep conditional comments alive while minifying, since Outlook relies on them to render correctly.
- Content editors: strip tags from a copied web page to paste clean text into a document or CMS field.
- SEO specialists: extract the visible text from a page to check word count and reading flow without the markup noise.
- QA engineers: reformat a minified page from production to trace which element is breaking a layout.
- Students learning HTML: beautify dense source to see how tags nest inside one another.
Key Features
- Beautify mode: re-indents your markup so nested tags line up and the structure is easy to follow.
- Minify mode: removes comments and collapses whitespace to produce a smaller, deployable file.
- Conditional-comment safety: minifying keeps <!--[if ...]> conditional comments that email clients depend on.
- Strip Tags mode: discards every element and returns only the plain text content.
- One-click copy: send the processed output to your clipboard without manual selection.
- Download output: save the beautified, minified, or stripped result straight to a file.
How to Use
- Paste your HTML into the input box.
- Pick a mode: Beautify to indent, Minify to shrink, or Strip Tags to get plain text.
- Review the output that appears from your chosen mode.
- Click Copy to grab the result, or Download to save it as a file.
- Switch modes or paste new markup to run it again.
Common Use Cases
- Minifying an HTML email while preserving the Outlook conditional comments it needs.
- Beautifying a minified page so you can locate and fix a misaligned <div>.
- Stripping tags from an article to count words or paste clean copy into a document.
- Shrinking a static landing page's HTML before uploading it to a host.
- Cleaning up messy markup copied from a page builder that exported inconsistent indentation.
Tips and Best Practices
- Keep a beautified working copy and ship the minified version. Editing minified HTML by hand is error-prone.
- For email templates, always minify here rather than with a generic tool so conditional comments survive.
- Use Strip Tags to pull reading text, but review the result. Scripts and hidden content may leave stray characters.
- Beautify inherited markup first to spot unclosed or duplicated tags before you change anything.
- Minify as the last step, once your edits are done, so comments and spacing help you while you work.
Limitations and Notes
HTML Toolkit reformats and cleans the markup you paste. It does not validate your HTML, close broken tags, or run any embedded scripts, so a malformed document stays malformed after processing. Strip Tags removes elements but is not a sanitizer; it should not be relied on to make untrusted HTML safe to render elsewhere. Everything happens locally in your browser and nothing is sent to a server, which keeps even private or proprietary markup on your device.
FAQs
No. Unlike generic minifiers, this tool keeps conditional comments such as <!--[if mso]> intact while stripping the rest of the whitespace and comments. Those conditionals are what Outlook needs to render correctly.
It removes every HTML element and gives you back only the text content between the tags. It is meant for grabbing readable copy, not for cleaning HTML you intend to render again.
You can run Beautify on minified HTML to restore readable indentation, but any comments removed during minifying are gone. Keep a separate copy of the commented source if you need those notes.
No. It formats, compresses, or strips whatever you paste but does not validate structure or fix broken tags. An unclosed element going in will still be unclosed coming out.
No. All three modes run entirely in your browser, so your HTML never leaves your device. Nothing is stored or sent to a server.
Use Strip Tags to pull out the plain text, then count the words in the result. Removing the markup first gives you a clean reading of the actual content.