Utilorca

JSON formatter

JSON formatter by Utilorca (utilorca.com): free, no sign-up, runs in your browser. Paste JSON to make it readable, check its syntax or remove whitespace. Formatting works on the original text, so long numbers, object member order and string escapes stay intact.

Paste one JSON value, up to 500,000 characters. The syntax follows RFC 8259.

Private by design: your files are processed on your device and never uploaded.

How to use it

  1. Paste one JSON value or load the example.
  2. Choose 2 spaces, 4 spaces or a tab and click Format. Use Minify for compact output or Validate to check the syntax.
  3. Copy the output, or use the error location when shown to find the part that needs fixing.

Questions and answers

Is my JSON uploaded?

No. Formatting and syntax validation run in your browser. The tool does not send the text to a server.

What happens if an object has the same key twice?

Both members stay in the text. Different applications can handle duplicate keys differently, so use unique keys when sharing JSON.

Can I format an array or a single number?

Yes. A JSON document can be an object, array, string, number, true, false or null. Paste one top-level value at a time.

Common questions and fixes

How do I fix an invalid JSON syntax error?

Paste the JSON and click Validate. If a line and column are available, start there and scan backward for the missing quote, comma or bracket. A common example is {"id": 1,}, where the comma must go because there is no next member.

Step by step
  1. Paste the text as received, including its line breaks.
  2. Click Validate and inspect the indicated position. For an unexpected closing bracket or brace, check the previous token.
  3. Fix one error at a time and validate again before formatting.

How do I minify JSON without changing strings?

Paste the JSON and click Minify. This removes JSON whitespace between tokens, such as the spaces around a colon. The two spaces in a value like "New York" and an escape like \n inside a quoted value remain as typed.

Step by step
  1. Paste the full JSON document.
  2. Click Minify and compare a string that contains spaces or an escaped line break with the original.
  3. Copy the compact output for the system that requires one line.

How do I keep large integers exact when formatting JSON?

Use a formatter that keeps the number as written in the input. A parse and reserialize workflow using JavaScript’s Number can change 9007199254740993 to 9007199254740992. This tool changes whitespace and copies the number token exactly. For IDs exchanged with Number-based apps, consider a string if the receiving schema accepts it.

Step by step
  1. Paste the original JSON text and locate the ID.
  2. Click Format, then check the digits in the output against the input.
  3. If you control the data schema, agree with the receiving app on strings for IDs that may exceed the safe integer range.