HTML Unminify

Reformat minified or messy HTML into indented, readable markup.

ctrl + enter

About this tool

Reading a one-line page source is painful. HTML Unminify uses the js-beautify HTML formatter to re-indent markup, including inline scripts and styles, so you can review a scraped page, debug a template or diff two versions of a site. Pair it with the Web Sniffer to fetch and then format any page.


How to use it — quick steps

  1. 01

    Enter the minified html

    Type or paste the minified html in the field above. Nothing is uploaded. Use Ctrl + V to paste.

  2. 02

    Adjust the options

    Pick the settings that fit your case; the defaults work for most people. Changes apply instantly.

  3. 03

    Press "Unminify HTML"

    Press "Unminify HTML" or Ctrl + Enter. The result appears below in an instant. Results can be copied.


Key features of this tool

  • Nothing leaves your browser

    The processing is plain JavaScript that runs on your device: the text you paste is never uploaded to our servers or to anyone else.

  • Instant results

    Results appear the moment you press the button, even for long inputs, and every block has copy and download actions.

  • Works everywhere

    No installation, no account and no limits: the tool works on desktop and mobile, in any modern browser, as often as you like.


Frequently asked questions

Does it fix invalid HTML?

It indents what it can parse; broken nesting is reproduced as is. Validate with a dedicated validator if needed.

Are inline scripts and styles formatted?

Yes, embedded CSS and JavaScript blocks are indented along with the markup.

Are my files or data uploaded?

No. The tool is plain JavaScript that runs in your browser; the files or data you provide here are never uploaded to our servers.


Popular tools


From APIVoid, the team behind IPVoid

Enhance your threat detection capabilities

APIVoid provides threat intelligence APIs to automate security workflows, with simple pricing and a 30-day free trial to start, no card required.

What you get with APIVoid

  • IP reputation and blacklist checks
  • Domain and URL reputation scoring
  • DNS lookups and propagation
  • SSL certificate and TLS details
  • Website screenshots and page info
  • Email address verification
  • 30+ cybersecurity APIs
30-day free trial