JavaScript Beautifier
Pretty-print JavaScript using two or four spaces and download the formatted source.
javascript-beautifierLOCAL WORKSPACE
Enabling local controls…
How to use this tool
Paste or open local text, review the result, then copy or download it.
When not to use it
Uses JavaScript syntax without executing it. JSX, TypeScript and custom parser extensions are outside this format.
Read the guide →