JSON Validator
Checks whether JSON is valid and reports the exact line, column and reason for the first error…
Formats, indents and validates JSON with precise error positions, key sorting and a collapsible tree view.
The JSON Formatter formats, indents and validates JSON with precise error positions, key sorting and a collapsible tree view. It runs as plain JavaScript inside the page, which means there is no upload step, no queue and no size limit imposed by a server — the only limit is your own device.
| Error reporting | Line and column number of the first syntax error, with the offending snippet quoted |
|---|---|
| Tolerant mode | Optionally strips // and /* */ comments and trailing commas, which JSONC and many config files use but strict JSON forbids |
| Size handling | Comfortable with several megabytes; everything runs locally so nothing is uploaded |
Checks whether JSON is valid and reports the exact line, column and reason for the first error…
Strips all whitespace from JSON to produce the smallest valid output, showing the bytes saved.
Converts a JSON array of objects into CSV, flattening nested keys and handling missing fields…
Turns CSV or TSV into a JSON array of objects, with type detection for numbers and booleans.
Converts JSON into well-formed XML with a configurable root element and array item naming.
Parses XML and converts it to JSON, preserving attributes and handling repeated elements as…
Converts JSON to clean YAML with correct indentation, quoting and multi-line string handling.
Parses YAML and outputs equivalent JSON, with support for anchors, lists and nested maps.
Escapes a string for safe embedding inside JSON, and unescapes a JSON string back to plain text.
Runs a JSONPath expression against your JSON and shows the matched values live.