Code Formatter & Minifier
Input
Result
Beautify JavaScript, TypeScript, CSS, SCSS, HTML, Markdown, YAML and SQL, or minify JS and CSS - with Prettier, in your browser. Your code is never uploaded.
Turn minified or messy code into something readable, or shrink it for production. Paste JavaScript, TypeScript, CSS, SCSS, HTML, Markdown, YAML or SQL - the language is detected as you paste - pick tabs or 2 or 4 spaces, and press Format. JavaScript and CSS can also be minified, with the size saving shown. Formatting uses Prettier, the formatter most editors run, so the result matches what your team's tools produce; SQL is laid out by sql-formatter in the dialect you choose. The formatters load only when you press a button, and your code never leaves the browser.