UTILITIES NEWBIE

Digital tools

JSON validator

Check whether a document fits this tool’s strict JSON syntax and value limits before using it elsewhere.

Input

Import a local text file

0 UTF-16 code units

Optional local draft

Saving stores a plaintext draft in this browser on this device. Do not save secrets or use this on a shared device. Nothing is saved or loaded automatically. Reset does not delete a saved draft; use Delete local draft.

No draft has been loaded.

Output

Syntax is not a field rule. Full explanation follows.
Quantity 3: number. Text explanation

Two synthetic records differ in the quantity type: a number three and a string containing the word three. Both pass this strict parser. A receiving application may require a numeric quantity, which is a separate schema or business rule not checked by this page.

Check a JSON document without confusing syntax with meaning

Define what this check can establish

The JSON Validator checks one complete input value with the site's strict JSON parser. Paste a synthetic document and choose Validate JSON. A successful result reports that the input passed this parser. It does not produce a corrected document, fetch a schema or confirm that the fields satisfy an external service. The most important first decision is whether you need a syntax check or an application-specific validation step.

An object, array or supported scalar can be a JSON value. A top-level null or boolean is not automatically invalid just because it is not a record. A receiving API may impose a different requirement, such as an object with particular fields. That requirement belongs to its contract. Keep the distinction visible so a syntax success is not presented as proof that the receiving application will accept the same payload.

This page is not a JSON Schema validator. There is no schema input that defines required properties, allowed categories, business ranges or relationships between values. A field can be syntactically valid while holding the wrong type for your workflow. The validator also cannot confirm that a name is real, a total is correct or an identifier belongs to an account. Those questions need separate evidence.

Use harmless test values while learning the controls. The tool does not need actual customer information to demonstrate braces, arrays, types or errors. Keep the original source intact when investigating a failed input. Editing it repeatedly until a success appears can hide which assumption changed, and may turn a useful diagnostic into a different document with no connection to the original issue.

Compare a syntactic success with a business error

Checked synthetic input

{"qty":3,"ready":false}

Exact observed output

Valid JSON.

Start with a synthetic object containing a quantity of three and a ready flag set to false. Run the check and review the successful status. The educational figure separates that syntax result from the additional question of whether those fields are suitable for a particular application. The page has checked the JSON representation, not approved a transaction, inventory change or other real-world action.

Now change the quantity to a string containing the word three. That object can still pass this validator. It demonstrates the boundary clearly: JSON permits string values, while a hypothetical destination may require a numeric quantity. The second success is not evidence that the two documents mean the same thing. Review the expected type in the actual destination contract before changing or submitting a record.

For a failure example, add a comma immediately before the closing object brace. The strict parser rejects the trailing comma. Remove it only after understanding the syntax issue; the validator does not apply an automatic repair. Comments and unquoted object keys are also outside this input contract. A JavaScript object literal is not automatically interchangeable with a JSON document even when it looks familiar.

A useful comparison keeps three observations separate: the original failing source, the exact edit and the new validation result. Copy output or Download output on this page transfers the status text rather than a repaired source document. Do not mistake that artifact for the original JSON. If you need a compact or formatted document, use the corresponding existing operation and review its actual output separately.

Read strictness and limits accurately

Duplicate object keys are rejected by this implementation. The check compares decoded names, so an escaped spelling and an ordinary spelling of the same name do not create independent fields. Resolve the intended source data rather than arbitrarily keeping the first or last entry. This policy prevents silent ambiguity here, but does not establish how every other JSON consumer will handle the same duplicate-key input.

Numeric integers outside JavaScript's safe-integer range and nonfinite numeric results are rejected. A long identifier may need to remain a quoted string if its data model is textual. That choice should preserve the intended type, not merely force an invalid numeric fixture through the checker. Other fractional values still follow JavaScript number behavior; a successful validation does not guarantee exact decimal mathematics or unrestricted precision.

The input ceiling is one hundred thousand UTF-16 code units, with at most ten thousand parsed values and forty nesting levels. These limits explain why a document can fail this tool even if another implementation permits a larger or deeper value. The limits are not a recommendation to test with private or production-scale material. Use a smaller representative fixture when diagnosing an unfamiliar shape or error.

The import control separately limits a local text file to one hundred thousand bytes. File bytes and UTF-16 string length differ for many characters. An accepted file selection is not a successful validation; the contents still need to be checked. A filename ending in a JSON extension also does not prove that the text follows the required grammar or the site's additional duplicate and numeric policies.

A local processor startup deadline and a processing deadline bound the browser operation. Cancel or a timeout is not a validation success. The source remains available for a deliberate next step. Optional local drafts are explicit plaintext browser storage, and Reset does not remove a previously saved draft. Use the dedicated draft control when removal is intended, and avoid saving secrets or working casually with shared-device drafts.

Place syntax evidence in a larger review

One practical workflow is checking a hand-edited configuration before sending it to its own application. First establish syntax, then inspect required fields, types and allowed values using that application's documentation or schema. A status from this page is useful evidence for the first step only. It cannot replace the destination's validation or a review of what the configuration actually does.

Another use is narrowing a parser disagreement. Reduce a non-sensitive fixture while preserving the feature that triggers the error, such as a duplicate decoded key or a large numeric integer. Record this tool's stricter policy beside the result. Avoid claiming that one consumer is universally right or that every rejected document is invalid under every possible JSON profile. Implementation limits and application contracts can differ.

Error locations use UTF-16 positions in the tool's diagnostics. Treat the indicated region as a place to investigate, not an instruction to delete a character blindly. A missing delimiter earlier in the text can affect what the parser encounters later. Recheck the smallest deliberate correction and retain the original so the cause can be explained to another person.

Validation is also not a safety or privacy certificate. A syntactically accepted value can still contain sensitive information, misleading content or a request that another system should reject. Use synthetic inputs for examples, preserve the site's actual privacy disclosures and review the receiving context independently. A good final note states which parser contract passed, which application checks remain and exactly which document was examined.

Format reference (local parser policies are described separately): RFC 8259 JSON format reference.

Worked examples

Input and settings

{"enabled":true,"count":3}

Expected output

Valid JSON.

Both property names are quoted and the boolean and number are valid JSON values. A successful syntax check does not establish that these fields satisfy your application’s rules.

Related tools

JSON Formatter & Beautifier · JSON minifier · JSON string to JSON document

Find a tool

Type a tool name, such as JSON or percentage.

Quick links

Browse by category

All tools