JSON Formatter

Format and validate JSON with pretty printing. Paste minified or invalid JSON to format with 2-space indentation or see validation errors.

JSON Formatter tool

How to use

  1. Paste or type JSON

    Enter your JSON in the text area. It can be minified, unformatted, or pasted from an API response.

  2. Format or validate

    Click Format to pretty-print with 2-space indentation. Click Validate to check syntax without changing the output.

  3. Copy or clear

    Use Copy to copy the formatted result. Use Clear to reset both input and output.

Examples

  • Minified JSON

    Paste minified JSON to get readable output.

    Input
    {"name":"ToolDock","tools":["json","uuid","base64"]}
    Output
    {
      "name": "ToolDock",
      "tools": ["json", "uuid", "base64"]
    }

Frequently asked questions

Does the formatter send my JSON to a server?
No. Formatting and validation run entirely in your browser. Your data never leaves your device.
What indentation does the formatter use?
The formatter uses 2 spaces for indentation. This is a common standard for JSON in configs and APIs.

You might find these useful too.