Developer tool

Code Beautifier

Re-indent common JSON, JavaScript, CSS, HTML, XML, and SQL snippets.

Runs in your browser
Code Beautifierworks locally
Result

How to use this code beautifier

  1. Paste the source text or code, then choose the conversion or formatting mode.
  2. Review the formatted output and any syntax message. Check syntax, escaping, and edge cases against the source before using the result in a live project.
  3. Check the output against the source, then copy or download the finished result.

About this code beautifier

Code Beautifier helps you re-indent common JSON, JavaScript, CSS, HTML, XML, and SQL snippets. The input and result appear together for easy comparison.

You can also use it to check source text for structural or syntax problems.

Example

Paste compressed JSON, JavaScript, CSS, HTML, XML, or SQL, choose its language, and compare the indented result with the source.

Common uses

  • re-indent common JSON, JavaScript, CSS, HTML, XML, and SQL snippets
  • check source text for structural or syntax problems
  • prepare a clean version for testing or reuse