Format & Minify
HTML Minify
Paste HTML to remove whitespace between tags while leaving text and pre blocks unchanged.
Format & Minify
Paste HTML to remove whitespace between tags while leaving text and pre blocks unchanged.
HTML Minify removes layout whitespace that sits between tags, so a pretty document collapses when it has no significant text. Words, attribute values, comments and character references are not rewritten.
The elements script, style, pre and textarea keep every character inside them. A space that shares a text node with a letter stays. A space that is the only thing between two tags does not.
Swap sends the result to HTML Beautify, which puts elements back on indented lines. Broken markup is reported instead of repaired, and the page does the work locally.
Only whitespace that sits between tags and contains no other characters. It does not change letters, attribute values, comments or the inside of script, style, pre and textarea.
Not when the space is in the same text as the words, as in a sentence inside a paragraph. A space that is the entire text between two tags is layout whitespace and is removed.
Comment text, doctype text and the contents of script, style, pre and textarea are copied unchanged. Whitespace around those tags, outside the raw elements, is still removed.
Within this subset, beautify puts the elements back on indented lines. It will not put back a space that minify removed between two tags, because that space was layout whitespace.
No. Minifying runs in your browser and the text you paste is never uploaded, logged or stored. Google Analytics records page views and feature use, never content.
Indent HTML in your browser with two-space nesting. Void tags stay open and pre, script, style and textarea text stays intact, and your text is never uploaded.
Pretty-print JSON with two-space indent, or minify it to one line.
Indent well-formed XML, or minify it onto one line.
Break a SQL statement onto clause lines, or collapse it to one line.
Indent CSS rules, or minify a stylesheet.
Iternal · AI Blueprint Builder
The AI Blueprint Builder scores each use case across value, feasibility, cost, governance, risk, adoption and readiness before you commit budget. Free to start, about 60 minutes.
Open the AI Blueprint Builder (opens in a new tab)↑↓ to move · ↵ to open · esc to close
aiformatting.app cleans up the text. The AI Blueprint Builder ranks the AI initiatives your team is weighing, scoring each use case across value, feasibility, cost, governance, risk, adoption and readiness before you commit budget.
Free to start · about 60 minutes · iternal.ai
Every tool here stays free, with no account to create. Leave a work email and the team behind aiformatting.app will send the occasional note on practical AI tooling.