Skip to content
Buy me a coffee
Formatters

Code Formatters & Beautifiers

Format and beautify JSON, XML, HTML and SQL with your preferred indentation, brace style and syntax highlighting.

JSON Formatter & Beautifier

Formats a JSON string or file with the chosen indentation level, creating a colour-highlighted, collapsible tree so you can clearly identify objects, arrays and members.

  • 6 indentation levels: 2, 3, 4 spaces, tabs, compact and JavaScript escaped
  • Collapsible tree view with colour highlights
  • Collapsed or expanded brace style
  • Copy-paste or file upload with encoding selection
Open tool

XML Formatter & Beautifier

Formats an XML string or file with your desired indentation level using a per-element indentation pattern for the best readability.

  • 2, 3, 4 spaces, tabs or compact mode
  • Normalize, trim or preserve text nodes
  • Keeps comments, CDATA and processing instructions
  • Copy-paste or file upload
Open tool

HTML Formatter & Beautifier

Formats an HTML string or file with your desired indentation level. Inline content in elements such as span and div is preserved as valid content.

  • 2, 3, 4 spaces or tabs
  • Preserves inline formatting and pre blocks
  • Colour-highlighted output
  • Copy-paste or file upload
Open tool

SQL Formatter & Beautifier

Formats any SQL query with your desired indentation level, even if the statement is invalid. Change the case of keywords and identifiers to upper, lower or keep them as-is.

  • Supports SELECT, INSERT, UPDATE, DELETE, DDL and more
  • Database agnostic: MySQL, PostgreSQL, SQL Server, Oracle, SQLite…
  • Uppercase, lowercase or untouched keywords and identifiers
  • 2, 3, 4 spaces or tabs
Open tool