JSON Minifier
Validate JSON and strip all whitespace and line breaks into a single line. Copy the result or download it as result.json.
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.