Skip to content

Local / Advanced Tools · Code formatting

Code Formatter & Minifier

Format XML and HTML, or minify CSS and JavaScript, in one place. Minification runs in an isolated worker.

  • Runs in your browser
  • Nothing is uploaded
  • 4 tools in one

Loading Code Formatter & Minifier…

How this tool works

Processing
Processing happens in your browser. No AI, no account and no upload to VAIDIKX servers.
Limits · Format HTML
Text: 200,000 characters per field. Operations impose tighter limits where needed. Calculations reject unsupported expressions and non-finite results.
Limits · Format XML
Text: 200,000 characters per field. Operations impose tighter limits where needed. Calculations reject unsupported expressions and non-finite results.
Limits · Minify CSS
Text: 200,000 characters per field. Operations impose tighter limits where needed. Calculations reject unsupported expressions and non-finite results.
Limits · Minify JavaScript
Text: 200,000 characters per field. Operations impose tighter limits where needed. Calculations reject unsupported expressions and non-finite results.
Privacy
Browser processing only. The package does not persist input, files, results, or secrets.

What you can use it for

  • Make minified HTML or XML readable before you edit it.
  • Shrink CSS or JavaScript for a quick snippet or embed.
  • Check that an XML file is well-formed.

Example: One long line of HTML comes back indented, one element per line.

Questions about Code Formatter & Minifier

What does it use under the hood?

Prettier for HTML, a local XML parser (DTDs are rejected), CSSO for CSS and Terser for JavaScript. Minifying runs in an isolated worker.

Is my JavaScript executed?

No. Terser minifies the source without running it.

Is my code uploaded?

No. Everything runs in your browser, up to 200,000 characters per field.

← All tools