JavaScript Formatter
Turn compact or messy JavaScript into readable code.
Your result will appear here…
How to use this tool
Enter or paste the information requested by the tool.
Adjust the available options if necessary.
Run the tool, then review, copy or download the result.
For example, paste a small code or data sample before using the result in your project.
JavaScript Formatter
Paste JavaScript to automatically organize indentation, blocks and line breaks. Formatting runs locally in your browser and your source code is not uploaded.