Code Minifier and Beautifier
Minify and format JavaScript, TypeScript, HTML, CSS, and JSON.
Where the work runs
JSON, HTML minify, and CSS minify run in your browser. JavaScript minify, TypeScript minify, and beautify go to the server, because they use the OXC minifier and Prettier.
About minify and beautify
This tool compresses or formats source code for common web languages.
JavaScript and TypeScript minify use the OXC minifier. OXC shortens names and removes dead code.
TypeScript minify strips types with Bun first, then minifies the JavaScript with OXC.
Beautify uses Prettier for JavaScript, TypeScript, HTML, and CSS. JSON uses the shared JSON formatter.
This tool does not store your input.