Format & Minify
JavaScript Minify
Paste JavaScript to strip comments and extra whitespace.
Format & Minify
Paste JavaScript to strip comments and extra whitespace.
JavaScript Minify removes line comments and block comments, then collapses whitespace outside strings, templates and regular expressions. A space stays only where two words or numbers would otherwise merge, or where joining two marks would change an operator such as + + into ++.
The inside of a quote, a template literal or a regular expression is not changed, and locals are not renamed. A newline between two words becomes a single space, so write a semicolon when a line break is the only thing ending a statement.
This is a whitespace formatter, not a full JavaScript parser. It does not understand TypeScript types, JSX or every regular-expression edge. A less-than sign that might start a JSX tag is left alone.
It removes // and /* */ comments and collapses whitespace outside strings, templates and regular expressions. It does not rename locals or rewrite the text inside quotes.
A space stays between two identifiers or numbers, and between marks that would join into a different token, such as + next to + or / next to /. Other spaces are removed.
No. Minify turns that line break into a space, so return and the next word become one statement. Add a semicolon after return if you need the line break to end the statement.
No. Minifying runs in your browser and the JavaScript you paste is never uploaded, logged or stored. Google Analytics records page views and feature use, never content.
Reindent JavaScript with two-space braces. Strings, templates and regular expressions stay intact. Runs in your browser; 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.
Indent HTML elements, or minify markup without changing text.
Break a SQL statement onto clause lines, or collapse it to one line.
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.