Beautify HTML, CSS, JavaScript, TypeScript, JSX, Angular, XML, PHP, Java, SQL, YAML or Markdown: pick the language, paste, copy.
Guide
Paste code
Code · Runs in your browser.
Set the style
Copy it
You get formatted code.
Code formatter beautifies HTML, CSS, JavaScript, TypeScript, JSX, Angular templates, XML, PHP, Java, SQL, YAML and Markdown with Prettier (and sql-formatter for SQL). Pick the language, paste your code and copy the result; indentation, quotes and SQL keyword case are adjustable.
Next: Code minifier · Code validator · JSON formatter & validator
More in Developer