Developer Studio · 37 tools

Code Formatters

37 free code formatters and converters: SQL in 17 dialects, CSS, XML, YAML, TOML, GraphQL, CSV and JSON, formatted in your browser.

Start here

All code formatters

About Code Formatters

Code Formatters holds 37 tools that tidy code or move data between formats. The SQL Formatter supports 17 dialects and capitalises keywords consistently, the CSS Minifier strips whitespace safely, and the XML Formatter indents documents and reports where they are not well formed. YAML, TOML, GraphQL and SCSS formatting use the same engines many code editors rely on, such as Prettier.

Data converters cover JSON, XML, YAML, TOML, CSV, TSV and Markdown tables, which helps when a config needs to change format or a spreadsheet export needs to become JSON. The formatters are honest about their limits. PHP, Java, C, C++ and C# have no full formatter available in the browser, so those tools re-indent by braces and say so on the result. The Code Diff tool compares two versions and can download a unified .diff file. Everything runs locally.

Frequently asked questions

Which SQL dialects are supported?
The formatter uses the sql-formatter library with 17 dialects, including MySQL, PostgreSQL, SQL Server, SQLite, Oracle PL/SQL and BigQuery. Pick your dialect so its keywords and syntax are handled correctly.
Will minifying CSS break my styles?
The minifier only removes comments and whitespace where CSS syntax makes them meaningless, and keeps strings, url() values and spaces inside calc(). Still test the result on your site.
Why does the Java formatter only fix indentation?
There is no complete Java formatter that runs in a browser. The tool re-indents by braces, which tidies most code, and tells you it is not a full reformat.

Other studios

Start typing to search every tool.

↑ ↓ to moveEnter to openEsc to close