Make minified or messy JavaScript readable.
The code is parsed and printed again using Prettier's rules: consistent indentation, line breaks at a sensible width, spacing around operators and tidy chained calls. JSX and modern syntax such as optional chaining and async functions are supported.
Choose two or four spaces or tabs, single or double quotes, and whether to add semicolons. If the code has a syntax error, the message shows the line and column so you can find it quickly.
No. Formatting restores layout only. Names shortened by a minifier cannot be recovered.
Use the TypeScript Formatter, which understands types, interfaces and generics.
No. Formatting runs locally using a JavaScript build of the formatter.