← Back to all browser tools
BROWSER TOOL / 16

Format JSON.
Find the mistake.

Pretty-print, validate, or minify JSON before pasting it into an API request, config file, or codebase. Everything runs locally.

How do I format JSON online? Paste your JSON and choose Format JSON or Minify. Processing happens locally in the browser, so API payloads and configs are never sent to a server.

JSON formatter

Formatting and minification keep numbers and strings as written, including large integers. No JSON is uploaded.

How to format JSON online

  1. Paste your JSON — choose Format JSON or Minify to validate and format it.
  2. Check the validation result — a line and column point to the exact syntax error if something is wrong.
  3. Copy the result — keep the pretty version, or use the minify option to strip whitespace.

When you reach for this

Good to know

Everything runs locally in your browser. Formatting changes whitespace outside strings while preserving original numbers, string escapes, property order and duplicate keys. Common invalid-JSON traps: trailing commas, single quotes, unquoted keys, and comments (none are valid JSON). For stricter checks, use the JSON validator, or convert with JSON to CSV.

Working with a search API response? Our tested DeepSeek Search and Fetch Python guide shows the returned fields and the invalid-count error we reproduced. Remove credentials before pasting a response into a shared document.

Advertisement
QUICK ANSWERS
What does a JSON formatter do?

It parses valid JSON and adds indentation so nested objects and arrays are easier to read and debug.

What does minify mean?

Minified JSON removes unnecessary whitespace, which is useful when sending a compact request or storing a smaller config.