Pretty-print JavaScript, JSX, TypeScript and TSX with Prettier.
WebRuns in your browser
About this tool
Format JavaScript, JSX, TypeScript or TSX with Prettier. The code is parsed and printed back out and is never run. Very large inputs can take a few seconds because formatting runs on the page itself.