List of code formatting tools

JSON Formatter / Beautifier

Formats a JSON string/file with your desired indentation level creating an object tree with color highlights. You can now clearly identify object constructs (objects, arrays and members). The JSON tree that is created can be navigated by collapsing the individual nodes one at a time if desired.

Features
  • Formats your JSON string/file with choice 6 indentation levels: 2 spaces, 3 spaces, 4 spaces, compact mode, JavaScript escaped and tab separated
  • Creates a tree representation of the JSON objects for easy navigation
  • Color highlights the different construct of your JSON objects
  • Supports copy-paste or file upload

HTML Formatter / Beautifier

Formats a HTML string/file with your desired indentation level. The formatting rules are not configurable but I think it provides the user with the best possible output.

Features
  • Formats the HTML with 4 indentation levels: 2 spaces, 3 spaces, 4 spaces and tab separated
  • Color highlights the different construct of your HTML document
  • Supports copy-paste or file upload

XML Formatter / Beautifier

Formats a XML string/file with your desired indentation level. The formatting rules are not configurable but it uses a per-element indentation pattern giving the best readability.

Features
  • Formats the XML with 4 indentation levels: 2 spaces, 3 paces, 4 spaces and tab separated
  • Color highlights the different construct of your XML document
  • Supports copy-paste or file upload

SQL Formatter / Beautifier

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

This SQL beautifier is especially useful for SELECT statements, but can also handle INSERT, UPDATE and DELETE statements. It was built to be agnostic of the database that is targeted and should support MySQL, Microsoft SQL Server, Oracle and other SQL ANSI databases.

Features
  • Formats the SQL with 4 indentation levels: 2 spaces, 3 paces, 4 spaces and tab separated
  • Formats the SQL regardless of the validity of the statement
  • Change the case of keywords or identifiers to upper case, lower case or keep them as-is
  • Database agnostic
  • Supports SELECT, INSERT, UPDATE and DELETE statements
  • Supports copy-paste or file upload