JSON Formatter and Validator
Validate JSON, show the first error's line and column, and pretty-print with 2-space indentation. Includes tree view, search, JSONPath and 5 MB file import.
Drop or select one JSON file, up to 5 MB.
Input is processed automatically using the selected mode.
Output
Selected path
—Extract with JSONPath
Enter JSONPath to extract matching values as an array.
Examples: $ · $.users[0].name · $.users[*].name · $..name · $.users[?@.age >= 18].name
Enter valid JSON first.
Input is processed only in your browser and is never sent to or stored on a server. Large integers and decimals may change due to JavaScript number precision.