Free Online JSON Parser
Validate, fix, format, explore and convert JSON, right in your browser
JSON Input
1
Indent
JSON Viewer
JSON Parser FAQs
A JSON parser reads a piece of JSON (JavaScript Object Notation) text, checks that it follows the JSON rules and turns it into structured data. This tool also shows the data as a tree, explains any errors and can repair, reformat and convert it.
Your JSON is checked as you type. If something is wrong, the status line under the editor shows the line and column with a plain-English explanation, such as a missing comma or an unclosed bracket. Click Go to error to jump to it, or Fix JSON to repair common mistakes automatically.
Fix JSON repairs the mistakes people make most often: comments, single quotes, curly quotes, unquoted property names, trailing or missing commas, Python-style
True, False and None, NaN and Infinity, hex numbers, unclosed or mismatched brackets, line breaks inside text, and JavaScript or JSONP wrappers. It lists what it changed, and Undo takes you back.
Formatting (also called pretty printing) adds line breaks and indentation so people can read the structure; choose 2 spaces, 4 spaces or tabs. Minifying removes every unnecessary space and line break to make the data as small as possible for sending or storing.
Yes. Everything happens in your browser. Your JSON is never uploaded to our servers, so API keys and personal data stay on your device. The only thing remembered is your indentation choice.
Yes. Click Open file or drop a
.json file onto the input box; files up to 50 MB are supported. Download saves the result using the original file name, and the Convert window can save CSV, YAML and TypeScript files.
Yes. The tree view only builds the levels you open and shows long lists 500 items at a time, so large files stay responsive. Live checking pauses for inputs over 3 MB; press Parse to check them. Very large files depend on your device's memory.
Type in the search box above the tree. Matching keys and values are highlighted, the tree opens to show each one, and you can step through them with the arrow buttons, Enter or Shift+Enter.
Click any line in the tree. Its path is shown under the tree, for example
$.team[0].name, and you can copy the path or the value itself with one click. This is handy when writing code or JSONPath queries.
Yes. Use the Convert menu. CSV turns a list of objects into rows (if the list sits inside an object, such as an API response, that list is used), with nested objects as dot-separated columns. YAML gives a configuration-friendly version of the same data. TypeScript creates interfaces from your data and marks fields that are missing from some items as optional.
Transform can sort keys A to Z or Z to A, trim spaces from the start and end of text values, change text values to UPPERCASE or lowercase, remove null or empty values, flatten nested objects into dot-separated keys, and escape or unescape JSON as a string. Keys and numbers are never changed by trim or case changes.
Escape turns your JSON into a single quoted string, with quotes and line breaks escaped, so it can be placed inside code or another JSON value. Unescape does the reverse, which is useful for JSON copied from logs that looks like
{\"name\":\"value\"}.
The JSON standard (RFC 8259) requires property names and text values to be in double quotes (
" "). Single quotes (' ') are not valid JSON and cause a parsing error; Fix JSON can convert them for you.
It means a character appears where JSON does not allow it, often a trailing comma, a missing comma, a comment or an unquoted word. This tool replaces the browser's technical message with a plain explanation and the exact line and column.
Press Ctrl+Enter (Cmd+Enter on Mac) in the editor to parse. In the tree, use Tab to move between lines, Enter to open or close, and the left and right arrow keys to collapse or expand. In the search box, Enter and Shift+Enter move to the next and previous match.
JSON is usually preferred for web APIs because it is lighter and maps directly to objects in most programming languages. XML is still common in older systems and in documents that need complex schemas.