JSON Formatter/Validator
Format, validate, query, and minify JSON with syntax highlighting and detailed error messages.
Query Syntax
. Root object
.key Property access
.a.b.c Nested properties
[0] Array index
[*] All array elements
Examples
.users[0].name
.items[*].id
.config.settings
About JSON Formatting
JSON (JavaScript Object Notation) is a lightweight data interchange format that's easy for humans to read and write. This tool helps you format messy JSON into readable, properly indented structure.
Features
- Format/prettify JSON with customizable indentation (2 or 4 spaces)
- Minify JSON by removing all unnecessary whitespace
- Validate JSON with detailed error messages including line and column numbers
- Query JSON with jq-like syntax (.key, [0], [*] wildcards)
- Live filtering - results update as you type your query
- Syntax highlighting for easy reading
- Client-side processing - your data never leaves your browser