Cookies This site keeps only what it needs to work. There is no analytics and no advertising on it today, and nothing here follows you to other sites. Read the privacy policy

Choose what to allow
+92 312 8299940Free Quote
EN – Language: English
Free tool, nothing to install

JSON Viewer Online
Tree, Table And Editor

The JSON viewer on-line will display your data as a tree (you may expand/collapse/search), as well as a table. Clicking on any row will allow you to copy the path to that item, as well as change the value of the item. All of the viewer operates within the same browser tab you are now viewing.

  • FreePrice
  • 2Views
  • NoneSign-up
  • NoneUploads

JSON Viewer and Editor

Read JSON as a tree or a table, search it and change it

Keys
0
Depth
0
Size
0 B
Strings
0
Numbers
0
Other values
0
Viewer

Valid JSON appears here as a tree you can open, search and edit.

Click a row in the tree to read it, copy its path or change it.

Ready. Paste JSON, open a file or try the sample.

Your browser does all of the work here, in this tab. We upload nothing, store nothing and log nothing.
Add a link to this tool on your own site

Copy the code below and drop it into your page. It places a link to this free tool.

Guides for this tool

Articles with worked examples, tables and a short video that help you get more from this tool.

  • JSON CommentsJSON Comments

    JSON comments don't exist in standard JSON. Here's why, plus every workaround: JSONC, JSON5 and comment keys.

    9 minutes of reading · video guide inside

  • Invalid JSONInvalid JSON

    Invalid JSON explained: what breaks it, the common errors and fixes, and how to read a parser error.

    9 minutes of reading · video guide inside

The short version

What A JSON Viewer Online Is For

This JSON viewer online turns a wall of braces into something you can read. Paste your data, and it appears as a tree. Open a branch, close it, search it or edit it.

JSON is the language most programs use to talk with other programs. APIs send JSON, configuration files store JSON and logging tools print out JSON. But a raw response is difficult to review because there are so many characters per line that they hide everything.

A view then helps. It displays the overall structure of the data initially, followed by the specific details within it. You can see that there is a list of orders, each of which contains info about its corresponding customer. Also, you will notice that one price value is absent.

This simple format is described by RFC 8259. But even with that description, many errors can occur in the process. Just one extra comma can cause problems. So, we give an indication of the exact line where each error occurs.

Browsing Your JSON As A Folding Tree

The main part of this JSON tree viewer is the tree itself. Each object or list has its own row that includes a tiny arrow. When you click on the arrow, it opens that part of the tree.

Drawing of a block of JSON text on the left with arrows leading to a folded tree of keys on the right
From one long line to a tree you can open.

Color can help with your scanning. Strings will be green; numbers will be blue; and true, false, and null will be purple. Bold text will represent keys. A closed branch lets you know how many keys/items it has.

Arrow keys move you through the tree just as well as the mouse does. The arrow keys move, Right opens a branch, and Left closes it. Home takes you to the first row and End to the last.

Switching To A Table

You can think of some JSON like a spreadsheet. Every item on a product list, user list, etc., will have the same labels for each column. When you look at the data in a tabular format, you can see this right away.

JSON viewer showing a list of three products as a table with columns for id, name, price, stock and colors
A list of records, shown as a table.

To create a row for each record press Table. Each property of your object will be displayed as a column. Sorting is accomplished by clicking on a column header. Clicking on a row will open the record in the inspector at the bottom of the page.

When you select the list within your single-object JSON, the table will be based on that selection.

A Search That Unfolds The Branches Holding Each Match

Big files hide what you need. Type a word into the search box and all matches light up. The viewer opens each branch on the way, so nothing stays buried.

JSON viewer with the word drill typed in the search box and the matching row highlighted in yellow inside an opened branch
Matches light up, and their branches open.

Pick what you want to search through. You can choose to search both keys and values, or just the keys, or just the values. To find the next result, press enter; to find the previous result, press shift + enter.

The counter beside the box tells you how many matches there are. It stops counting at two thousand, which keeps the page fast.

Change Values Without Editing The Raw Text

In addition to being an online JSON editor, this tool allows you to click on any row and view the key, type, and value of that item using the inspector. After viewing, you can edit the value in the text input area and click the Apply button.

JSON viewer inspector open on the price field, with the type set to number and the new value 79.99 ready to apply
Select a row, change it, and apply.

You may change the name of a key, convert a string to a number, and create a list from a single value. You can insert a new key within an existing object, make a copy of a row, and move that row above or below other rows. Deleting removes the row.

Every change rewrites the text on the left at once. If you make a slip, click Undo. The history keeps your last hundred steps.

Repairing Almost-JSON

People often post what appears to be JSON but is actually something else. It could be a config file with comments; a Python dictionary; or a response from a chat program wrapped in a "code block."

JSON viewer after pressing Repair, with a list of five fixes such as quoted keys, straight quotes and removed comments
The tool lists every repair, so nothing hides.

Press Repair and the tool fixes the common problems. It removes comments and trailing commas, and it quotes bare keys. It turns single quotes into double quotes, and True and None into true and null.

After this, you will see a list of each item that was repaired. Review this list. This will help you understand what the program thought was broken.

Copying A Path In One Click

Once you’ve selected any single row, the path will appear below your selected row on the tree. You can then use either a JSONPath to represent this path (e.g., $.products[0].price) or a JavaScript representation of the same path (e.g., data.products[0].price).

Big Numbers Stay Exact

Many people convert every number into a double. A ID such as 12345678901234567890 will silently change to 12345678901234567000. Your numbers remain intact. This is important since the edit made can be put back into your text without causing any harm.

Video guide

See the JSON Viewer at Work, Start to Finish

This brief video shows each step from start to finish. Choose your language below, and switch on captions if they help.

How it works

Using The JSON Viewer, Step By Step

Four steps take you from un-formatted text to a formatted value. Then, with both searching and the table, it will be fast to complete the remaining steps.

  • Paste your JSON into the box, or load the file from your computer

    The user may enter text in the box below, paste from their clipboard, or load a .json file. The browser tab reads the file; no other system has access to the file. The file remains on the user’s computer/device throughout the entire process.

  • Explore the data as a tree whose branches fold open and shut

    The tree builds itself as you type. Open a branch with its arrow, or use the Open levels list to show two, three or four levels at once.

  • Look through it or convert it to a table

    You can search for the search keys and values, or you may choose to click Table to view the list of records as columns. If you click on a column heading, then the table will automatically re-sort itself based upon that specific column.

  • Select a row to copy or edit

    Copy its path or its value. Or change the key, the type and the value, then press Apply. The text on the left updates at once.

  • Take the JSON with you: copy it or save it as a file

    You can format, minify or sort the keys first. Then, either copy the JSON or save it in a.json format.

Why this one

What This JSON Viewer Does Differently

Plenty of viewers show a tree. These are the places where this one goes further.

  • Tree, table and text, together

    The text, the tree and the table are three views of one model. Change any one of them, and the others update with it.

  • Exact error locations

    If there is an error in the JSON, you will get the line number, column number and a carrot below the error. In most cases, browsers do not give this.

  • Repair that explains itself

    The fix button repairs comments, quotes and commas, then shows you every alteration made to the file, which ensures that nothing occurs without your knowledge.

  • Numbers never change

    Long IDs and prices preserve each individual number. Your viewers will never have to guess what your numbers are based on floating-point guesses.

  • Built for the keyboard

    Arrow Keys, Home, End, and Enter function as expected. Each control has a name, so, a screen reader may be used.

  • Nothing leaves your tab

    Your web browser handles API requests so none of the sensitive info is transmitted to us.

Good habits

Habits For Working With JSON Safely

A viewer makes JSON easy to read. These habits keep it correct, too.

  • Get the overall structure before the small details. Open just one level. See if the primary level keys match what you anticipated. Once you have verified this, then begin exploring those sections which interest you.
  • Save a backup before any large edit. Keep a copy of the original text in a safe place before beginning. Although undoing what you have done is useful, keeping a copy of the original text will be more secure.
  • Search for the key, not just the value. A value of 0 would match hundreds of records. A key such as discount would normally match a few.
  • Use the table view for lists of records. Sorting a column finds the highest price or the oldest date in two clicks. A tree makes you hunt for it.
  • Copy paths instead of typing them. The typo in the path doesn’t return anything. It seems to have worked well. Copy the path that is visible in the row.
  • Check types after you edit. The text "42" is not the same as the number 42. Many APIs reject the wrong one.
  • Sort the keys before you compare two files. Changing the order of keys does not change what the data means. It does change a text comparison. Sorting both files first removes the noise.
  • Treat repair as a first draft. Read through the list of repairs the viewer made before you copy anything. If one looks wrong, press Undo and fix that spot by hand.
  • Remove secrets before you share a sample. Tokens and emails can be found in API response data. Remove these items from the tree, and then copy the resulting cleaned-up text.
  • Minify only for the final copy. Keep the indentation while you edit. When you’re ready, make sure to put everything on a single line before submitting.
Worth avoiding

Common JSON Mistakes This Viewer Catches

Each of these breaks a parser. The viewer names the spot, so the fix takes seconds.

  • A trailing comma

    JavaScript accepts a comma after the final item. In JSON it is an error. Repair removes it.

  • Single quotes around text

    JSON always uses double quotation marks. People use single quotation marks in Python and JavaScript out of habit because they can be used interchangeably there.

  • Keys without quotes

    Writing {name: "Ali"} is acceptable in code. But when writing as JSON, the property name must be "name".

  • Comments inside the file

    JSON has no method of writing comments. If you include notes within your configuration file, they will cause a problem for the most strict JSON parser.

  • Duplicate keys

    This format will allow you to do so, but most people will only retain the very last item. You will be warned about this, and then it is up to you.

  • Python values

    JSON lacks ’True’, ’False’ and ’None’ values. These three terms must be written as ’true’, ’false’ (all in lowercase) and ’null’.

Questions

Questions People Ask About This JSON Viewer

Is this JSON viewer online really free?

Yes, it is completely free, does not need an account, and can be used as much as you like. Since the processing occurs within your browser, we do not incur any costs related to server usage that we would have to pass along to you.

Is my JSON sent anywhere outside my own device?

No, the browser processes, renders, and modifies the document. None of the data is sent to our website, and none of it is saved. When you exit the browser window, all of the documents that were open are deleted from memory.

How large a JSON file will the viewer open?

Files up to ten megabytes open from disk. Pasted text can be large too. The tree draws only the branches you open, so big files stay quick.

How do the tree and the table differ?

The Tree displays all levels of JSON. Tables are better suited for lists of items that have the same key. Use the one that is most effective at showing your data.

Can I edit values and keep the rest unchanged?

Yes. When you select a row, change its value and then click "Apply," only that specific value is updated. At the same time, the text located on the left-hand side of the screen will update, while everything else remains unchanged.

What problems does the Repair button correct?

Every correction that the program applies to your file (such as fixing comments, trailing commas, single quotes, unquoted keys, missing commas, Python values and unclosed brackets) is listed in order for you to review.

Why does it call my JSON invalid if it works in my code?

JavaScript is more forgiving than JSON. Comments, single quotes and trailing commas all run in code but fail as strict JSON. Repair can fix them.

What is a JSONPath?

It is an address for one value inside JSON. For example, <code>$.store.name</code> means the name key inside the store object. Many tools accept it.

Does the viewer change my numbers?

Each digit in each number remains exactly as you entered it. Also, if you use a long ID, every digit will remain, unlike some other programs that don’t offer this guarantee.

Can I view JSON from a file or a link?

A file can be opened by using the "Open a file" button. Since a link will result in a request for a different web site that a browser cannot safely process, you should paste the response text.

Will the JSON viewer work on my phone?

Yes. The two panels stack, the tree scrolls, and the buttons are large enough to tap. For long editing, a keyboard is still easier.

More free tools

Handy Companions For JSON Work

JSON viewing is just one of many jobs. The other jobs that surround the process are done with these three tools.

Ready To Read Some JSON?

Paste your data, expand the branches, and change what’s required. There is no charge for the JSON viewer, you don’t need an account to use it, and all of your data stays on your machine.

Prefer Denwix on GoogleReview Denwix on Google