← ToolsFormatters
HTML / CSS formatter.
Tidy indented markup or minify it for shipping. Handles inline CSS and void elements.
Client-onlyHTML · CSS
void tags + comments + inline CSS aware
Input162 chars
Output162 chars
<div class="card"><h2>Hello</h2><p>Text with <strong>bold</strong> and <a href="/x">link</a>.</p><ul><li>One</li><li>Two</li></ul><img src="/a.png" alt="a"></div>
auto-updates as you type
🔒 Privacy — runs 100% locally
No uploads · no cookies · works offline after load. View Source if you don't believe it.
How to use.
- Paste markup — it auto-formats as you type.
- Switch to Minify for a ship-ready single line (comments stripped).
- Download the .html or copy it straight into your editor.
Related tools.
Converters
JSX to HTML
HTML to JSX is near-lossless; JSX to HTML covers presentational components. Includes a live render check.
Babel · Preview
Text & CSS
Regex tester
Live JavaScript regex matching with flags, capture-group tables and a cheatsheet. Input-capped for safety.
JS RegExp
FAQ.
Does it handle <style> blocks?
Yes — inline CSS is minified in place in both modes.
Why not Prettier?
Prettier's standalone bundle is ~500KB. This purpose-built formatter covers the daily tidy/minify jobs at a fraction of the weight.