HTML Formatter & Minifier
Beautify or conservatively minify HTML in your browser without rendering or uploading the code.
HTML stays on this device. Maximum input: 1 MB UTF-8. The formatter follows HTML-aware parsing rules from js-beautify; minification is intentionally conservative to reduce accidental semantic changes.
Safe-by-default HTML cleanup
HTML is not XML, and whitespace can matter inside text, <pre>, <textarea>, scripts and styles. Formatting uses an HTML-aware beautifier. Minification therefore removes whitespace only between tags and preserves raw-text blocks. Comment removal is optional and off by default.
What this tool does not do
Ebhor does not execute, preview or fetch the HTML. That avoids running pasted scripts and keeps private templates on your device. The conservative minifier intentionally does not rewrite attributes, inline JavaScript, CSS or text nodes; specialized build pipelines can perform more aggressive production optimization after project-specific testing.
Recommended workflow
Use Format HTML while reviewing or debugging markup. Use Minify HTML for a compact copy when conservative whitespace removal is sufficient. Keep a source-controlled original and test minified output in your own application before deployment.