The JSON Converter checks whether a JSON text is valid and shows errors with line, column and a plain-language explanation. You can format the text for reading, minify it, or output it as CSV, YAML or a JSON string. A tree view with search shows the path to any value. All data stays in your browser; nothing is sent to a server.
Paste the text into the input box or load a file. A badge right below shows “Valid” or “Error”. For an error, the tool gives line and column, marks the spot and explains the cause.
Common causes are a comma after the last item, single instead of double quotes, comments, or unquoted keys. A non-breaking space from copy and paste can also break it. The tool points to the exact position.
Yes, for unambiguous cases: comments, trailing commas, single quotes, unquoted keys and True/None/NaN. NaN, None, undefined and Infinity become null, which changes data and is reported. Ambiguous problems such as a missing comma are not repaired, only marked.
Choose the CSV output type. The JSON must be an array of objects; if it sits inside an object, the tool finds the longest array. Nested objects become columns like a.b. Separator and header row can be set.
No. YAML is output only, and XML is not offered at the moment. The input is always JSON.
No. Processing and display happen in the browser; there is no server call, no storage and no cookie. The link button copies settings only, never the data.
Click the node in the tree view. The path appears as JSONPath, JavaScript or JSON Pointer, e.g. $.users[0].name, and can be copied. Search helps with large documents.
Up to 5 MB of text and 1000 levels of nesting. Larger input is rejected or cut off with a notice. In the tree, large nodes first show 200 entries.
JSON (JavaScript Object Notation) is a text-based data format described in RFC 8259. It has only six elements: objects in curly braces, arrays in square brackets, strings in double quotes, numbers, the values true and false, and null. Keys are always strings in double quotes. Comments, a comma before the closing bracket, single quotes, NaN, Infinity, undefined, leading zeros and hex numbers are not allowed. Whitespace means only space, tab and line break.
Many errors come from confusing JSON with JavaScript objects, Python dictionaries or configuration files that allow comments. Browser messages such as “Unexpected token” differ between browsers and do not always locate the problem clearly. This tool therefore uses its own parser following RFC 8259 and shows line, column and cause in plain words. For valid JSON it also warns about duplicate keys, a BOM or very large integers.
Large numbers are a known pitfall: JavaScript uses 64-bit floating point, so integers above 2^53−1 (9,007,199,254,740,991) are rounded when parsed. The tool keeps numbers and strings exactly as typed when formatting, but if the receiver rounds them, the only remedy is to send them as strings.
For CSV conversion the tool follows RFC 4180: fields containing the separator, a quote or a line break are wrapped in quotes. If you open CSV in Excel, consider the option to defuse formulas, because strings beginning with =, +, − or @ may be executed as formulas there. The download with a BOM makes Excel read umlauts correctly. YAML is output only; strings that would otherwise be read as numbers or booleans are quoted.
Paths to values can be copied in three notations: JSONPath (RFC 9535), as a JavaScript expression, or as a JSON Pointer (RFC 6901). Some APIs deliver JSON as text inside JSON; the tool can open such double-encoded values as JSON of their own.
The message gives line and column (from 1; a line break counts once, also for \r\n), marks the character and shows the lines around it. “Go to error” jumps there in the input box. Browser messages like “Unexpected token” differ from browser to browser — this page has its own parser so position and cause look the same everywhere. For a missing comma the position is the next entry, for a superfluous one it is the comma itself.
Fixes what people and other languages like to write: comments, trailing commas, 'single' quotes, unquoted keys, True/False/None, NaN/undefined, non-breaking spaces and line breaks inside strings. NaN, None, undefined and Infinity become null — that changes data and is counted in the message. Anything ambiguous (missing comma, missing bracket) is not repaired; the page shows the position instead.
JSONPath (RFC 9535) like $.users[0].name, with special characters $['a b']. JavaScript like data.users[0].name — “data” is the variable holding the parsed JSON. JSON Pointer (RFC 6901) like /users/0/name; “~” becomes ~0 and “/” becomes ~1; the whole document is the empty pointer. The path of the selected node stays when you switch notation.
JavaScript uses 64-bit floating point: integers above 9,007,199,254,740,991 (2^53−1) are silently rounded. Here every number and string stays exactly as typed (1.0 stays 1.0, 1E5 stays 1E5, \u00e9 stays \u00e9). If the receiver rounds anyway, the only fix is to send the number as a string. Notes appear under the input.
Output only. Strings are written without quotes only where they are surely read as text (start with a letter, contain letters, digits, spaces, _ . / -, are not yes/no/null/on/off …). Everything else is quoted — in YAML that is the same notation as in JSON. Numbers like 1e5 are numbers in YAML 1.2; older parsers (YAML 1.1) read them as text.
Turns text into a JSON string: " and \ get a backslash, line break becomes \n, tab \t, control characters \u00XX. Useful to embed JSON in JSON or in code. “Unescape” removes the escaping; the surrounding quotes are optional there.
Up to 5 MB of text, nesting up to 1000 levels. Large documents are shown in portions in the tree (first 200 entries per node). Nothing leaves the browser; there is no server call, no storage and no cookie. The link button copies settings only, never the data.
RFC 8259 (JSON), RFC 9535 (JSONPath), RFC 6901 (JSON Pointer), RFC 4180 (CSV), YAML 1.2.2. The parser is tested against JSON.parse on a catalogue and random mutations; YAML output against PyYAML, CSV against Python's csv module.
Keyboard: Alt+K copies the output · Alt+S jumps to search · in the tree ↑ ↓ move, → opens, ← closes, Home/End jump, Enter selects.
Die Werkzeuge auf dieser Website werden als kostenloses Hobbyangebot bereitgestellt und dienen ausschließlich zur Information und privaten Nutzung. Für die Richtigkeit, Vollständigkeit oder Eignung der Ergebnisse für einen bestimmten Zweck wird keine Gewähr übernommen. Vor Verwendung der Ergebnisse — insbesondere bei finanziellen, rechtlichen oder sicherheitsrelevanten Entscheidungen — sind diese eigenverantwortlich zu prüfen. Eine Haftung für Schäden aus der Nutzung ist ausgeschlossen, soweit dies gesetzlich zulässig ist.