Code Formatter
Format, validate, and minify JSON, JavaScript, TypeScript, HTML, CSS, XML, YAML, SQL, or Markdown in one place. Choose the language, set indent style (spaces or tabs) and size, then paste code for instant formatting with clean indentation and error feedback.
Format or minify JSON, JavaScript, TypeScript, HTML, CSS, XML, YAML, SQL, or Markdown. Choose a language, set indent style and size below, then paste code. Invalid input will show an error.
Input
Output
Indent:Size: