Text & code / LING.TOOLS

JSON formatter

Validate, pretty-print or minify JSON, optionally sort object keys and locate syntax errors in pasted data.

Input & settings

01
Configure tool input
Processed in your browser. Your input is never uploaded or saved.

Result

02

Ready when you are

Set up your input and run the tool. Your result will appear right here.

Private · Instant · Local

GUIDE & CONTEXT

About this tool

Turn compact API responses into readable JSON or remove unnecessary whitespace before sharing. Key sorting makes object-heavy data easier to compare, while array order stays meaningful and is preserved. Standard JSON does not support comments, trailing commas, undefined or non-finite numbers.

How to use it

  1. Paste a complete JSON object, array or scalar value.
  2. Choose formatted or compact output, indentation and optional key sorting.
  3. Run the formatter. If parsing fails, use the reported error location to repair the input.
Example

Input {"b":2,"a":1} becomes {"a":1,"b":2} when compact output and key sorting are selected.

↑ ↓ navigate · Enter openEsc close