Search for a command to run...
Tidy JavaScript with indentation, wrapping, and spacing options.
Pick spaces or tabs; choose 2, 4, or 8-space indentation.
Wrap long lines for readability; pick presets or set a custom width.
Trim inconsistent leading whitespace while keeping block structure.
Dedent closing braces and indent after opening braces or cases.
Strip whitespace at line ends before formatting.
Collapse repeated blank lines to the chosen maximum.
Prefer breaks at commas or brackets when wrapping long lines.
Indent wrapped lines further when inside parentheses or brackets.
Insert consistent spaces around math/comparison operators.
What
A JavaScript formatter prettifies JS/TS code into a readable, consistent layout.
Cases
Format minified code for debugging
Clean up snippets before review
Standardize indentation and spacing
How To
A step-by-step guide to formatting JS/TS code for readability.
Paste your JavaScript/TypeScript snippet into the input.
Choose indentation, wrapping, and whitespace rules.
Run formatting and copy the output.
Knowledge
FAQ