Forgly

JSON Formatter & Validator

Beautify, minify, and validate JSON. Everything runs locally in your browser.

Try an example:

What does this tool do?

This JSON formatter takes raw or minified JSON and reformats it with consistent indentation so it's easy to read. It also validates the input — if the JSON is malformed, you get the exact parser error. Use Minify to strip whitespace for a compact, production-ready string.

What is JSON?

JSON (JavaScript Object Notation) is a lightweight, text-based data format used everywhere in web APIs, configuration files, and data exchange. It represents data as key–value pairs and arrays, and is both human-readable and easy for machines to parse.

Format vs. minify

  • Format (beautify) — adds 2-space indentation and line breaks for readability and debugging.
  • Minify — removes all unnecessary whitespace to reduce size for transport or storage.

Common JSON errors this catches

  • Trailing commas after the last element.
  • Single quotes instead of double quotes around keys/strings.
  • Missing commas or brackets.
  • Unquoted keys.

Is my data safe?

Yes. All formatting and validation happens entirely in your browser — your JSON is never uploaded to any server.

Frequently asked questions

What's the difference between beautify and minify?

Beautify adds indentation and newlines so JSON is easy to read; minify strips all whitespace to produce the smallest valid JSON for transport.

Is it free and private?

Yes — it's completely free with no limits, and all processing happens locally in your browser.