Skip to content
QZTools

HTML formatter

Turn minified or messy HTML into clean, well-indented code.

Everything runs in your browser. Nothing you type or paste is sent to a server.

How to use the HTML formatter

  1. 1

    Paste your HTML code.

  2. 2

    Choose the indentation.

  3. 3

    Copy or download the formatted HTML.

About this tool

Great for reviewing templates, code copied from the browser inspector or HTML emails.

The code is only reformatted as text: nothing runs and no resources load.

Frequently asked questions

Will it change how my page works?

No. Only spaces and line breaks between tags change.

Does it format embedded CSS and JavaScript?

Yes, <style> and <script> contents are indented too.