Code Minifier and Beautifier

Minify and format JavaScript, TypeScript, HTML, Vue, CSS, SCSS, JSON, Markdown, YAML, GraphQL, and SQL.

Mixed · Partial offline
Where the work runs
Every format action runs in your browser. HTML, CSS, and JSON minify also run in your browser. JavaScript and TypeScript minify run on the server with the OXC minifier.

About minify and beautify

This tool compresses or formats source code for common web languages.

Format runs prettier/standalone in your browser. Each parser plugin loads when you select its language, so the page stays small. Vue files use the vue parser of the Prettier HTML plugin.

SQL is not a Prettier language. SQL format uses sql-formatter. JSON format uses the shared JSON formatter.

The indentation and the quote choice stay in your browser storage. Minify ignores both.

HTML, CSS, and JSON minify run in your browser. CSS minify uses CSSO. JavaScript and TypeScript minify use the OXC minifier on the server. OXC shortens names and removes dead code. TypeScript minify strips types with Bun first, then minifies the JavaScript.

The result shows the raw byte count of the output, the gzipped byte count, and the change against the input. Gzip runs over the output bytes, so the count is exact.

A drop of a file into the input editor loads the code and names the download. The tool minifies app.js to app.min.js and formats app.min.js to app.pretty.js. It never writes to your file.

This tool does not store your input.