ToolEmpire

JSON Formatter

Format or validate JSON with 1, 2, or 4-space or tab indentation.

Inputs

Results

// invalid JSON: Unexpected end of JSON input

About this tool

Paste JSON to get it pretty-printed with 1, 2, or 4-space or tab indentation. Invalid JSON is reported with the parser's exact error and position.

How to use

  1. 1Paste your JSON into the input — it can be minified or already pretty-printed.
  2. 2Choose the indent: 1, 2, or 4 spaces, or Tab.
  3. 3Read the formatted JSON in the output; the header shows how many lines the result occupies.
  4. 4If you see an invalid JSON message, fix the first reported error and try again.

Frequently asked questions

Related tools