Paste the original JSON
Add text exactly as received or open a local .json file.
Strict local JSON validator
Check whether JSON is valid and get a precise location when it is not. The validator never silently repairs your source.
Valid object root · 6 lines · 143 B
01 — 03
The validator keeps your source intact and reports the first standards-level parsing error it finds.
Add text exactly as received or open a local .json file.
Check the document with the browser's standard JSON parser without conversion or cleanup.
Use the reported line, column, and nearby source line to correct the original document.
EXAMPLES & SYNTAX
The parser preserves JSON values while changing only the representation required by this tool.
{
"site": "jsonminify.org",
"enabled": true,
"items": [1, 2]
}Valid JSON — 4 lines, 3 properties{"name":"value"}Keys and string values require double quotes.
[1, 2, 3]Items keep their original order.
true · false · nullThese tokens are lowercase and are not quoted.
space · tab · line breakOptional outside strings; meaningful inside quoted strings.
WHY JSONMINIFY.ORG
Validation is separate from formatting so a successful result means the submitted source is valid JSON.
Your input remains unchanged whether validation succeeds or fails.
Errors include a line, column, source excerpt, and pointer when the browser provides a position.
Comments, trailing commas, undefined values, and JavaScript object syntax are rejected.
COMMON USE CASES
Syntax validation is a fast first step whenever JSON crosses a boundary between people, applications, or environments.
Check a request body before sending it so syntax errors are separated from authentication, routing, or server-side validation failures.
Confirm that a generated or manually edited configuration file is syntactically complete before importing it into another system.
Locate malformed JSON in package metadata, translation files, manifests, fixtures, or generated build artifacts.
Validate JSON received in email, tickets, logs, or integrations before using it in a script or development tool.
JSON REFERENCE
Syntax validation answers whether text can be parsed as JSON. It does not prove that the data is correct for a particular application.
Standard JSON uses double quotes for object keys and string values. Single quotes and unquoted keys belong to JavaScript object syntax, not JSON.
JSON has no comment syntax, and the final item in an object or array cannot be followed by a comma. Remove these before validating again.
Objects and arrays are common, but a string, number, boolean, or null can also be a complete valid JSON document when the receiving system permits it.
A valid document may still be missing required properties or contain values of the wrong business type. Those rules require a separate schema or application-level check.
FAQ
Understand what a valid result means and why some JavaScript-like input is rejected.
It uses the browser's native JSON parser, which accepts standard JSON values and rejects JavaScript-only syntax.
No. It keeps the original source and reports the error so you can decide how to correct it.
Standard parsers stop at the first blocking syntax error. Fixing it can reveal a later issue on the next run.
No. The JSON is parsed locally in your browser and is not included in analytics events.