How to use JavaScript Formatter
How do I use it?
- Input
- JavaScript
- Settings
- Operation
- Indent
- Remove comments
- Omit optional semicolons
- Run
- Format
How it works and examples
const x={one:1} becomes const x = { one: 1 };.
Input limits
- Each text field can contain up to 400000 UTF-16 code units.
- Choose Minify to remove formatting whitespace, then copy or download the result.
- Supports standard JavaScript syntax. Parsing and formatting happen in your browser.