Format & Minify
HTML Beautify
Paste HTML to indent elements by two spaces while leaving void tags and pre text unchanged.
Format & Minify
Paste HTML to indent elements by two spaces while leaving void tags and pre text unchanged.
HTML Beautify puts each nested element on its own line and indents it two spaces. Tag names, attributes, comments and character references are copied as they appear. A void element such as br or img is not given an end tag.
Text inside script, style, pre and textarea is kept byte for byte, including spaces and line breaks. Elsewhere, a run of spaces and line breaks that contains no other characters and sits between tags is layout whitespace: beautify replaces it with the indent.
A truncated tag, an unclosed quote, a mismatched end tag or an element left open is reported at that spot. The tool does not invent tags or rewrite broken markup. A doctype is kept; an internal DTD subset is rejected.
It inserts line breaks and a two-space indent between elements when the only text between those tags is whitespace. Tags, attributes, comments and significant text stay as written.
script, style, pre and textarea. Everything up to the first matching end tag is copied unchanged, including spaces and line breaks. An end tag inside a string still ends the element.
area, base, br, col, embed, hr, img, input, link, meta, param, source, track and wbr do not need one, and none is added. A self-closing slash is kept and that tag is treated as empty. An end tag already present for a void element is a mismatched end tag.
The output is replaced by a problem that names a truncated tag, an unclosed quote, a mismatched end tag, an unclosed element or an unsupported DTD subset. The jump control selects that span and nothing is repaired.
No. Beautifying 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.
Minify HTML in your browser by dropping whitespace between tags. Comments and pre, script, style and textarea text stay, 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.