Code Beautifier and Minifier
Format and minify HTML, CSS, JavaScript and SQL online with a choice of indentation and SQL dialect. Free, no sign-up, code stays in your browser.
Format and minify HTML, CSS, JavaScript and SQL online with a choice of indentation and SQL dialect. Free, no sign-up, code stays in your browser.
Beautify messy code or minify it for production in one place. The tool formats and minifies HTML, CSS, JavaScript and SQL, lets you pick 2 spaces, 4 spaces or tabs, and supports 14 SQL dialects. It shows how much smaller the result is. Free, no sign-up, and your code never leaves your browser.
No. Formatting and minification run entirely in your browser, so your code is never uploaded.
Standard SQL plus PostgreSQL, MySQL, MariaDB, SQLite, SQL Server (T-SQL), Oracle PL/SQL, BigQuery, ClickHouse, Snowflake, Redshift, Spark, DuckDB, Trino. You can also choose whether keywords are written in upper case, lower case or left as they are.
JavaScript is minified with Terser. You can turn compression and shortening of variable names (mangle) on or off; comments marked with /*!, @license or @preserve are kept.
It removes ordinary comments and collapses extra whitespace while leaving the content of pre and textarea untouched. Inline styles and scripts inside the page are minified too; conditional comments are preserved.