codr.tools
Tools

Formatters that take a minified API response, a one-line query or a hand-edited config and lay it out with consistent indentation, or put it back on one line. The JSON, XML and GraphQL formatters parse the input first, so a syntax error is reported with its line and column instead of producing broken output. The SQL formatter covers 20 dialects, from PostgreSQL and MySQL to BigQuery and Snowflake, and formats a query without checking it against a schema. Parsing and formatting run in your browser, and nothing is uploaded.

4 tools

  • Format, minify and validate JSON in your browser, with syntax errors explained by line and column, repeated keys listed, and number literals kept exactly as written.

  • Pretty-print, minify and check XML in your browser, with well-formedness errors reported by line and column, and comments, CDATA sections, processing instructions and mixed content all kept intact.

  • Format and beautify SQL in your browser across 20 dialects, from PostgreSQL and MySQL to SQL Server, BigQuery and Snowflake, with your own indent width and keyword case, plus a minifier that puts a query back on one line.

  • Pretty-print and minify GraphQL in your browser, from queries, mutations and fragments to schema definition language, parsed by the reference implementation with syntax errors reported by line and column.