Skip to main content
dubinity

Developer & Web

HTML Formatter

Indent messy or minified HTML so you can read it, with a preview of how it renders.

  • Runs in your browser
  • Works on mobile
  • In: HTML
  • Out: HTML
Loading the tool…

Your files and text are processed on your own device, inside this page. Nothing is uploaded to Dubinity or stored, and closing the tab discards it. How privacy works

About HTML Formatter

Re-indents HTML, including embedded CSS and JavaScript, wraps long lines where you ask it to, and keeps the contents of pre and textarea exactly as they are.

The preview renders the result in a sandboxed frame with scripts disabled, so you can check you are looking at the right page without running anything from it.

How to use it

  1. 1Type or paste your text, or open a file.
  2. 2Choose any options - the result updates as you type.
  3. 3Copy the result or download it as a file.

Questions

Was this tool helpful?

All developer tools
  • HTML Minifier

    Shrink HTML safely: collapse whitespace, drop comments and minify inline CSS and JavaScript.

    HTML
    Runs in your browserOpen tool
  • CSS Formatter

    Indent and tidy CSS, SCSS or LESS so a minified stylesheet becomes readable again.

    CSS · SCSS · LESS
    Runs in your browserOpen tool
  • JavaScript Formatter

    Indent and format JavaScript or TypeScript, including minified bundles, with a choice of brace style.

    JavaScript · TypeScript · JSON
    Runs in your browserOpen tool
  • HTML to Markdown Converter

    Turn a web page's HTML into clean Markdown, with simple tables converted rather than dropped.

    HTML
    Runs in your browserOpen tool
  • JSON Formatter

    Format and indent JSON, or minify it, with exact error positions and big numbers kept as written.

    JSON
    Runs in your browserOpen tool
  • Password Generator

    Create strong random passwords with the character rules a site demands, and see the real entropy.

    NONE
    Runs in your browserOpen tool