Skip to main content
>_devtools

JSON Schema Formatter

Format and minify JSON Schema with canonical keyword order, so schemas diff cleanly and read top to bottom.

What this does

Paste a JSON Schema to format it with a stable keyword order, or minify it for compact storage. Sorting and indentation options apply as you edit.

Example

Input:
{"properties":{"name":{"type":"string"}},"type":"object"}

Formatted schema:
{
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    }
  }
}

Limits and behavior

  • The document must be valid JSON.
  • Formatting changes whitespace and keyword order but preserves schema values.