Code Formatter

Format and minify JSON, JavaScript, TypeScript, HTML, CSS and more with Prettier

Code Formatter

Format and minify JSON, JavaScript, TypeScript, HTML, CSS and more with Prettier

About JSON Formatter and Code Formatter

JSON Formatter and Code Formatter pretty-print and minify code with Prettier directly in your browser. It supports JSON, JSON5, JavaScript, TypeScript, HTML, CSS, SCSS, Markdown, YAML, GraphQL, and more, so you can clean up snippets without installing anything.

How to use

Format JSON or any supported snippet in seconds:

  • Paste your JSON, JavaScript, TypeScript, CSS, HTML, Markdown, YAML, or GraphQL into the editor.
  • Choose the language. JSON Formatter and JSON Minify pages select JSON for you.
  • Click Format for readable output or Minify for compact JSON and code.

Private by design

Your code never leaves your browser - Prettier runs locally with no server round-trip.

JSON Formatter

Format, validate, and pretty-print JSON in your browser. No upload needed.

Options
Indent