Open main menu
Home
Jobs
Exam Results
Admit Card
Govt PYQ
Interview Q&A
Tools
Games
Real-Time
News
HTML Formatter
Format, beautify, or minify your HTML code with proper indentation for nested tags.
Input HTML
Formatted HTML
Format
Minify
Clear
How to Use
Paste your HTML code into the input text area on the left.
Click
Format
to beautify the HTML with proper indentation, or click
Minify
to compress it.
Review the result in the output text area on the right.
Click
Copy to Clipboard
to copy the formatted or minified HTML.
Use the
Clear
button to reset both fields and start over.
Features
Automatic indentation for nested HTML tags
Recognizes void/self-closing elements (br, img, input, etc.)
Preserves content inside script, style, pre, and textarea tags
Minification removes comments and collapses whitespace
Handles HTML comments, doctype declarations, and attribute quotes