Home › Developer Tools › JSON Viewer

JSON Viewer

Paste or upload JSON and explore it as a collapsible tree. Search keys and values, see every type and count, and click any node to copy its path as JavaScript or JSONPath. Nothing leaves your browser.

Last updated:

    Paste or upload JSON to see it as a tree.

    JS path–
    JSONPath–
    ValueClick any node in the tree
    Advertisement

    How to use the JSON Viewer

    1. Paste your JSON into the box, or press Upload JSON (or drop a .json file onto the box).
    2. Explore the tree: click the small arrows to open objects and arrays, or use Expand all and Collapse all.
    3. Click any node to select it. Its path is copied to your clipboard in the format chosen under “Click copies”, and both path styles plus the value are shown below the tree.
    4. Search for a key or value. Matches are highlighted and opened in the tree; use the arrow buttons or Enter to jump between them.
    5. Fix errors fast: if the JSON is invalid you get the line, column and a caret pointing at the exact character.

    JSON data types at a glance

    Every value in a JSON document is one of six types. The viewer labels each node with its type so you can spot a number stored as a string or an unexpected null at a glance.

    TypeExampleNotes
    object{"id": 7, "name": "Ada"}Unordered set of key/value pairs. Keys must be double-quoted strings.
    array[1, 2, 3]Ordered list. Items are addressed by index starting at 0.
    string"hello\nworld"Double quotes only. Escapes: \" \\ \/ \b \f \n \r \t \uXXXX.
    number-12.5e3No leading zeros, no NaN or Infinity, no hex.
    booleantrue / falseLowercase only.
    nullnullAn explicit empty value.

    JS path vs JSONPath: worked example

    Take this document: {"books": [{"title": "Forest Trails", "in stock": true}]}. Clicking the title and in stock nodes gives:

    NodeJS pathJSONPath
    Rootdata$
    First bookdata.books[0]$.books[0]
    Titledata.books[0].title$.books[0].title
    Key with a spacedata.books[0]["in stock"]$.books[0]['in stock']

    Dot notation is only valid when a key looks like an identifier (letters, digits, _ or $, not starting with a digit). Any other key, including ones with spaces, dashes or that start with a number, switches to bracket notation automatically.

    Common JSON errors and how to fix them

    Error shownTypical causeFix
    Trailing comma is not allowed[1, 2, 3,]Delete the last comma.
    Expected a property name in double quotes{name: "Ada"} or {'name': "Ada"}Wrap keys in double quotes.
    Strings must use double quotes{"a": 'x'}Replace single quotes with double quotes.
    Expected ',' or '}' after property valueMissing comma between two pairsAdd a comma after the previous value.
    Unescaped control character in stringA real line break or tab inside a stringUse \n or \t instead.
    Unexpected character after the end of the JSON valueTwo documents pasted together, or a stray bracketWrap them in an array or remove the extra text.

    Frequently asked questions

    What is a JSON viewer?

    A JSON viewer turns raw JSON text into an interactive tree so you can open and close objects and arrays, see what type every value is and find data quickly, instead of scrolling through a long block of text.

    How do I get the path to a value in JSON?

    Click the node in the tree. The tool shows its JavaScript path, such as data.books[0].title, and its JSONPath, such as $.books[0].title, and copies the format you chose. Keys with spaces or symbols use bracket notation, for example data["in stock"].

    What is the difference between a JS path and JSONPath?

    A JS path is the code you would write in JavaScript to reach the value from a variable (here called data). JSONPath is a query syntax that starts at $ and is used by tools such as jq-like filters, Postman tests, Kubernetes and many APIs.

    Why does my JSON show an error?

    JSON is strict: keys and strings must use double quotes, there can be no trailing commas, no comments and no single quotes. The viewer reports the exact line and column of the first problem so you can fix it.

    Does the viewer change big numbers?

    No. Numbers are shown exactly as written, so an ID like 9007199254740993 is not rounded the way JavaScript's JSON.parse would round it. Key order is also kept as in your file.

    Is my JSON uploaded to a server?

    No. Parsing, searching and rendering happen in your browser with JavaScript. Your data is never sent anywhere, which makes it safe for API keys, tokens and private records.

    Can it open large JSON files?

    Yes. The tree is built lazily, so only the parts you open are drawn. Files of tens of megabytes work in a modern browser; Expand all is limited to the first levels for very large documents to keep the page responsive.

    Are all the tools on FreeToolCabin tested for quality and accuracy?

    Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

    Related tools

    JSON FormatterBeautify, minify and validate JSON, with a collapsible tree view.YAML Validator & FormatterValidate, format and minify YAML, and convert YAML to JSON or back.CSV to JSONConvert CSV data to JSON with live preview.XML to JSONConvert XML to JSON with validation.ICS File ViewerOpen .ics calendar files online: list and month view, repeating events, time zones and search.JSON MinifierMinify and validate JSON, sort keys and see exactly how many bytes you save.JSON Schema ValidatorValidate JSON against a JSON Schema (draft-07, 2019-09, 2020-12) with clickable error paths.JSON to Excel ConverterTurn JSON into a styled .xlsx spreadsheet; nested arrays become their own linked sheets.JSON to CSVConvert JSON data to CSV for spreadsheets.Excel to CSVConvert XLSX spreadsheets to CSV.CSV ViewerOpen a CSV or TSV file as a sortable, filterable table.Excel Viewer (XLSX / XLS)Open XLSX, XLS and ODS spreadsheets in your browser without Excel.Line Ending ConverterConvert text and files between CRLF, LF and CR line endings.Markdown to HTMLConvert Markdown to clean HTML with a live editor.Text Encoding ConverterDetect and convert text file encodings like UTF-8, UTF-16 and Latin-1.TTF to WOFF2 ConverterConvert TTF and OTF fonts to WOFF2 or WOFF and get a ready @font-face CSS snippet.Chmod CalculatorConvert Linux file permissions between checkboxes, octal (755) and symbolic (rwxr-xr-x) notation.Morse Code TranslatorTranslate text to Morse code and back, then play it as sound or a blinking light, or save a WAV.HTML Table GeneratorBuild HTML tables in an editable grid with styles, header rows, CSV import and live preview.Hex to Text ConverterConvert hex to text and text to hex with UTF-8 support and space, 0x, \x or comma formats.JSON to XML ConverterConvert JSON to well-formed XML with attributes, arrays and pretty print.JSON to YAML ConverterConvert JSON to clean YAML as you type, with indent, quoting and sort options.YAML to JSON ConverterConvert YAML to pretty or minified JSON, with errors pinned to the exact line.HTML to Markdown ConverterTurn HTML or pasted rich text into clean Markdown with tables and live preview.Markdown Table GeneratorBuild Markdown tables in a grid or paste from Excel/CSV, with alignment and preview.JSON ValidatorCheck JSON with the exact line and column of each error, fix tips and one-click auto-fix.Image to Base64Convert images to Base64 data URIs, CSS backgrounds and HTML img tags in your browser.Base64 to ImagePaste a Base64 string or data URI to preview, identify and download the image.JSON CompareCompare two JSON documents and see every added, removed and changed path.Hex to DecimalConvert hex to decimal instantly with steps and signed mode.Decimal to HexConvert decimal to hex instantly with steps and signed mode.Binary to DecimalConvert binary to decimal instantly with steps and signed mode.Decimal to BinaryConvert decimal to binary instantly with steps and signed mode.Two's Complement CalculatorDecimal to two's complement binary and back for 4-64 bits, with invert-and-add-1 steps.XML to CSV ConverterConvert XML to CSV: detects repeating records, flattens nested data, pick your columns.CSV to XML ConverterConvert CSV to well-formed XML with custom root and row names, escaping and pretty print.TOML to JSON ConverterConvert TOML to JSON and JSON to TOML with a full v1.0 parser and clear error lines.JSON to Go StructTurn JSON into Go structs with inferred types, nested structs and json tags.REM to PX ConverterConvert CSS rem values to pixels for any root font size, with a quick 0.25–6rem table.TSV to CSV ConverterConvert TSV to CSV and back, or between tab, comma, semicolon and pipe, with correct quoting.TypeScript to JavaScriptConvert TypeScript or TSX to clean JavaScript instantly: strip types, keep or compile JSX.XML to YAML ConverterConvert XML to clean YAML with attributes, text nodes, lists and exact error lines.YAML to XML ConverterConvert YAML to pretty, well-formed XML with custom root, attributes and array item tags.Boolean Algebra SimplifierSimplify boolean expressions or minterm lists to minimal SOP and POS with Quine-McCluskey steps.Compare Excel FilesCompare two Excel spreadsheets cell by cell, highlight changes and export a diff report.CSV CleanerClean messy CSV in one click: trim spaces, drop empty rows and columns, fix headers, dedupe.CSV VLOOKUP ToolJoin two CSV or Excel files on a key column like VLOOKUP, with left, inner and full joins.Remove Duplicates in ExcelFind and remove or highlight duplicate rows in XLSX or CSV files by the columns you choose.GeoJSON ViewerView GeoJSON on a map, inspect and edit properties, validate against RFC 7946 and export.GPX ViewerOpen GPX tracks on a map with distance, elevation profile, moving time, speed and splits.JSON Repair ToolFix broken JSON automatically: trailing commas, quotes, comments, truncated data, with a diff.Karnaugh Map SolverSolve 2–6 variable K-maps: click cells or enter minterms to get the minimal SOP or POS with groups.Merge Excel FilesCombine XLSX, XLS and CSV files into one workbook or append all rows into a single sheet.Parquet File ViewerOpen Apache Parquet files in your browser: schema, rows, filters and CSV or JSON export.Query CSV with SQLRun SQL on CSV, Excel, JSON and Parquet files in your browser with DuckDB. Join and export.Online Serial MonitorTalk to Arduino, ESP32 and USB serial devices in your browser: log, send, plot and save.Split Excel FileSplit an Excel sheet into several files by row count or by each value in a column, as ZIP.SQL Create Table GeneratorDefine columns, keys, defaults and indexes; get CREATE TABLE SQL for MySQL, Postgres and more.SQL IN Clause GeneratorTurn a pasted list into a SQL IN ('a','b') clause with quoting, dedupe and 1,000-item chunks.SQL Online CompilerRun SQL queries online on SQLite with sample databases, a result grid, CSV export and .db save.SQL to ER DiagramPaste CREATE TABLE statements and get an entity-relationship diagram with keys and links.XML to XSD GeneratorGenerate an XML Schema (XSD) from sample XML: types, occurrences, attributes and namespaces.XML ValidatorCheck if XML is well-formed, see the exact line and column of each error and pretty-print it.Wildcard Mask CalculatorConvert a subnet mask or CIDR to a wildcard mask for ACLs and OSPF, with range and binary.CSV to VCF ConverterConvert a contacts CSV into a vCard (.vcf) file, mapping columns to name, phone, email and more.CSV to YAML ConverterConvert CSV rows to a YAML list of mappings with type inference and delimiter detection.Endianness ConverterSwap byte order of 16, 32 and 64-bit hex values and see big- and little-endian integers and floats.Excel to SQL ConverterTurn an Excel sheet into CREATE TABLE and INSERT statements for MySQL, PostgreSQL, SQLite or SQL Server.
    See all 129 Data & File Format Converters →