HTML

Unminify HTML

Reformat minified HTML back into a readable, indented document.

Overview

What is a unminify html?

This tool reformats minified or single-line HTML back into a readable, properly indented document - with nested elements clearly indented and tags on their own lines - so you can actually follow the document structure.

Quick start

How to use this tool

  1. 1Paste minified HTML, or upload an .html file.
  2. 2Click Run to reformat it with 2-space indentation.
  3. 3Copy the result or download it as an .html file.
Where it helps

Common use cases

Reading minified HTML output from a build tool or CMS to check its structure
Reformatting HTML copied from a browser's "View Source" or dev tools
Cleaning up inconsistently formatted markup before editing it
Reviewing generated HTML output for correctness before shipping it
Good to know

Frequently asked questions

Does formatting change what the HTML renders as?

No - only whitespace and indentation are added back for readability; the elements, attributes, and content are untouched.

Can it format a full HTML document, not just a fragment?

Yes - it works on anything from a small snippet to a full document with <html>, <head>, and <body>.

Does it validate that the HTML is correct?

No - this reformats structure for readability; it doesn't check for missing tags or invalid nesting the way a dedicated HTML validator would.

Is my HTML sent anywhere?

No - formatting happens entirely in your browser.

quick_facts.json

{

"runs_in_browser": true,

"data_sent_to_server": false,

"signup_required": false,

"price": "free",

"category": "Converters"

}

Related tools

PDF
No signup
PDF Rotate

Rotate PDF pages left, right or upside down. Switch portrait and landscape, preview changes, and download without losing quality.

Open tool
#FF
No signup
Color Converter

Convert colors between HEX, RGB, HSL, and CMYK — online color converter with live preview.

Open tool
⏱
No signup
Timestamp Converter

Convert Unix timestamps to and from human-readable dates.

Open tool