Skip to content

Code Beautifier

Format JavaScript, JSON, CSS and HTML with custom indent and brace styles.

Loading tool…

Runs locally in your browser. Your files are never uploaded.

About this tool

Messy code is hard to read and debug. This tool cleans up your source files by applying consistent indentation and spacing rules. You can choose between tabs or spaces and set the exact indent size to match your team's style guide.

How to use it

  1. Paste your JavaScript, JSON, CSS or HTML code.
  2. Set the indent size and choose tabs or spaces.
  3. Click beautify to see the formatted output.