Developer Tools / JavaScript · TypeScript · HTML

Code Formatter

Format JavaScript, TypeScript, HTML, CSS and Markdown with Prettier.

Your input is processed in this browser tab. It is not sent to our server or saved by this app.

01 Your input

Limit: 200,000 UTF-8 bytes; operation-specific limits apply.

Upload a text file

Loading tool…

02 Your result

BROWSER ONLY

Your result will appear here.

Ready when you are.

Add your input and run the tool.
Your result will appear here.

How to use it

  1. Enter your input, or load an example to try the tool.
  2. Press the primary action. Ctrl+Enter also runs the tool.
  3. Copy or download the result.

Good to know

Source is parsed and formatted, never executed. Formatting is not type checking or a security review.

Need something else? Explore the toolbox →