Developer Tools

Code Formatter

Format HTML, CSS, JavaScript, TypeScript, Python, JSON, SQL, and Markdown code.

About the code formatter

Run Prettier on JavaScript, TypeScript, CSS, HTML, JSON, YAML, or Markdown to get consistent formatting. The same formatter the major IDE plugins use under the hood.

Frequently asked questions

Will it change my code logic?

No, it only changes whitespace and quote style. Output is functionally identical to input.

Can I configure tab width and quote style?

Yes, the options panel exposes the standard Prettier settings: tab width, single vs double quotes, semicolons, trailing commas.