Developer

JavaScript & TypeScript Formatter

Format JavaScript, TypeScript, JSX and TSX with Prettier, with syntax errors pointed out. Code is never run.

JavaScript

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.

esc
  • Opens in its own window, like any app
  • Works without an internet connection
  • Starts instantly from your home screen or dock

Look for the install icon at the right end of your browser’s address bar, or open the browser menu and choose Install Interformat.