What is the HTML Formatter, Minifier & Beautifier?
HTML copied from a page or a builder is often one long line. Paste it here and get tidy, indented code that is easy to read and edit.
Choose Minify to remove extra spaces and comments, which makes the file smaller. Code inside style and script tags is formatted as well.
How to use it
- Paste your HTML in the left box.
- The clean version shows on the right.
- Copy it or save it as a file.
Why people like this tool
Prettier powered
The same formatter many teams use.
Fast and private
Runs in your browser, nothing is sent.
Shows the error
Tells you where the code is broken.
Your style
Choose indent size and line width.
What it fixes
- Each tag gets its own line and an indent that shows how the tags are nested.
- Squashed, one-line HTML from a live page becomes readable.
- Long attribute lists are wrapped, so you can see every attribute.
Good to know
In HTML, spaces between inline items like links and words can show up on the page. After you format, look at the page once to be sure it still looks right. Text inside <pre> and <textarea> is not changed.