JavaScript Formatter
Indent and organise JavaScript code so that it can be reviewed easily.
Workspace · JavaScript Formatter
El código no se ejecuta: solo se transforma como texto.
How to use it
Paste the code, URL or data you want to process.
Select the format or action available in the tool.
Check the result and copy it into your editor or configuration file.
Examples
Compact function
A block of minified code is expanded with line breaks and indentation.
Review
Use the result to locate blocks and keys.
What you need to know
The formatter works with the syntax and does not execute the code. It is not a replacement for ESLint or Prettier, and it does not correct semantic errors. Please check the result if you are using very recent syntax.
Frequently Asked Questions
Related tools
Other tools that can help with similar tasks.
HTML Formatter
Indents and formats HTML to make it easy to read.
CSS Formatter
Format CSS code with well-indented rules, properties and curly brackets.
JSON formatter and validator
Formats, validates and organises JSON with error detection.
