JavaScript & TypeScript Formatter
Format JavaScript, TypeScript, JSX and TSX with Prettier, with syntax errors pointed out. Code is never run.
Offline prerequisites
The installed app shell does not prepare every operation. Choose the resources you need, prepare while online, then recheck before disconnecting. Downloads below are approximate bundled sizes; network transfer can differ.
This tool has no separately downloaded codec/model prerequisite in this build. Its app code must still be installed, and browser APIs, file limits and supported formats still apply.
Checking this build’s offline resources…
Tab moves to the next control. Ctrl+] or Command+] inserts a tab.
About this tool
Format JavaScript, TypeScript, JSX or TSX with Prettier: choose semicolons, quotes, trailing commas, arrow function brackets, indentation and line width.
Syntax errors are pointed out at their line and column, so the formatter doubles as a quick syntax check.
Code is parsed into a syntax tree and printed again. It’s never run, so it’s safe to paste code you don’t trust.