PixNudge

HTML formatter and minifier

Beautify messy or minified HTML with proper indentation, or minify HTML by removing comments and unnecessary whitespace while keeping pre, script and style blocks intact.

Input
Result

How it works

  1. 1

    Paste or type your input

    Paste text or code, type a value or open a file. Where a sample is offered, it shows how the tool works.

  2. 2

    Pick the options

    The result updates as you type. Switch modes or change the options to get exactly the output you need.

  3. 3

    Copy or download

    Copy the result to the clipboard with one click or download it as a file.

Why PixNudge

Nothing leaves your browser

Passwords, API keys, tokens, SQL queries and customer data are processed on your device and never sent to a server.

Instant results

There is no upload and no waiting: results appear while you type, even for large inputs.

Free, no sign-up

No account, no limits and no ads inside the tools. Bookmark the page and use it whenever you need it.

Frequently asked questions

Does formatting change how my page looks?

Formatting adds line breaks and indentation between block elements. Browsers ignore that whitespace in most places, and content inside pre and textarea is left untouched.

What does the HTML minifier remove?

Comments (except conditional comments), whitespace between block-level elements and repeated spaces in text and tags. Content of script, style, pre and textarea is kept as is.

Are inline scripts and styles formatted too?

Yes. When formatting, CSS inside style tags and JavaScript inside script tags are indented as well.

More free tools