Data & formats
JSON workbench
Make data easier to read and reuse. Format, minify and validate in one place.
Ready when you are
01
Add your contentPaste text or try a sample
02
Choose an actionClear options. Predictable results.
03
Take it with youCopy, download and carry on
Using this tool
Format API responses, minify configurations or validate syntax; inspect nested objects and arrays in the preview.
Actions: Format · Minify · Validate
Example
Strict JSON with two-space indentation and sorting disabled.
Example action and settings
Action: Format Indent: 2 spaces Input syntax: Strict JSON · Preserve number lexemes Sort object keys recursively: Off
Input / action
{"a":1,"items":[true,null]}Result / expected behavior
{
"a": 1,
"items": [
true,
null
]
}Available options: Indent · Input syntax · Sort object keys recursively
Scope and limitations
- Strict JSON preserves numeric tokens, key order and string escapes. JSON5 uses JavaScript number semantics. Formatting is limited to 200 nesting levels; large content is paged but processed in full.
Common mistakes
- Strict mode rejects single quotes, comments and trailing commas. Editing one segment does not delete the other segments.
Related tools
JSON structural diff JSON to YAML
Privacy and browser support
Input is processed in this browser. Do not use real keys or active sensitive credentials as demonstration data. Device features require browser support and your permission.