Ctrl/⌘ + S downloads the result
Long lines are wrapped at this width where the language allows it.
Format or minify HTML, CSS, SCSS, Less, JavaScript, TypeScript, JSON, Markdown, YAML, and SQL in your browser. The language is detected automatically, and the result updates as you type.
Paste code into Input, drop a file, or pick a language from Sample.
Choose Format or Minify. The language menu shows what was detected; pick one yourself if it guessed wrong.
Adjust Format options such as Indentation, Line width, Quotes, or SQL dialect, or Minify options such as Shorten variable names.
Copy the output or click the download button. Ctrl/⌘ + S also downloads it.
No. The formatters and minifiers (Prettier, sql-formatter, Terser, and CSSO) load into the page and run on your device, so your code stays in your browser.
Standard SQL, MySQL, MariaDB, PostgreSQL, SQLite, SQL Server (T-SQL), Oracle PL/SQL, BigQuery, Snowflake, Redshift, Spark SQL, Hive, Trino/Presto, DuckDB, ClickHouse, and IBM Db2. You can also set Keyword case to UPPER, lower, or As is.
TypeScript needs compiling to JavaScript before it can be minified, and Markdown has nothing to minify, so those languages are formatted instead.
Only if Shorten variable names is on. It renames local variables and functions; global names stay the same. Keep license comments preserves /*! and @license comments.
Below the editors, with the line and column when the parser reports them. The faulty line is also highlighted in the input.
Yes. Mode, language, and options are saved in this browser's local storage. Your code is not saved.