Example input/output
Input: function hello(){return "world"}
Output:
function hello() {
return "world";
}
How it works
This tool applies language-appropriate formatting rules to your code. For JSON, it uses JSON.parse/stringify. For other formats, it applies indentation and whitespace normalisation rules. Processing runs in your browser.
Common use cases
- Format minified JavaScript or CSS for readability
- Pretty-print SQL or HTML before code review
- Clean up auto-generated code that lacks consistent indentation