JSON Glance JSON viewer & formatter

Private — runs in your browser
Text Ln 1, Col 1

Free online JSON viewer, formatter & validator

Paste JSON into the editor to check that it's valid, format it so it's easy to read, and explore it as a tree you can collapse and search. If JSON from a log, a config file or an API response won't parse, Repair fixes the most common mistakes for you.

How to use it

  1. Add your JSON: paste it, type it, drop a file onto the page, open a file, or load it from a URL.
  2. Check it: the status bar shows straight away whether it's valid. If it isn't, select Go to error or Repair.
  3. Explore it: use Format or Minify, browse the tree, and select any node to see its path and copy its value.

Frequently asked questions

Is my JSON data safe?

Yes. The tool runs entirely in your browser, and nothing you paste is sent to a server. The only time it makes a network request is when you choose Load from URL, and that request goes straight from your browser to the address you enter.

What is JSON?

JSON (JavaScript Object Notation) is a lightweight text format for structured data. It's built from objects ({"key": value}), arrays ([1, 2, 3]), strings, numbers, booleans and null. It's the most common format for web APIs and configuration files.

Why is my JSON invalid?

The most common causes are a trailing comma after the last item, single quotes instead of double quotes, keys without quotes, comments, and missing commas or brackets. The validator shows exactly where the problem is, and Repair can fix most of these automatically.

Does formatting change my numbers?

No. Format and Minify work on the original text, so very large integers such as IDs and precise decimals are kept exactly as written.

Can I load JSON from an API URL?

Yes. Select URL and enter the address. The server has to allow cross-origin requests (CORS). If it doesn't, download the file and open it here instead.

Load JSON from a URL

The server must allow cross-origin requests (CORS). The request goes directly from your browser.

Keyboard shortcuts

Format
CtrlEnter
Minify
CtrlShiftEnter
Open file
CtrlO
Save as .json
CtrlS
Search the tree
/
Next / previous match
Enter / ShiftEnter
Move through the tree
↑↓←→
Indent in editor
Tab
Leave editor
Esc

On a Mac, use ⌘ instead of Ctrl.