Code & data

HTML, CSS & JavaScript formatter

Format HTML, CSS, JavaScript, TypeScript, and XML with proper parsers. Choose indentation and get readable code with helpful syntax errors.

Free to useNo sign-upOn your device
Opening your workspace…

How to use it

  1. 01

    Select the language and paste a code snippet.

  2. 02

    Choose indentation and format the code.

  3. 03

    Review syntax errors or copy the formatted output.

A few useful answers

Is this a minifier?

No. This tool formats code for readability. JSON minification is available in the JSON formatter.

Does the formatter run my code?

No. The parser formats source text without evaluating your JavaScript.