JSON Formatter & Viewer Online
Paste JSON to format, validate, repair, explore and convert it. Free, and it never leaves your browser.
What this JSON formatter does
It turns hard-to-read JSON into something you can read, search and check, right in your browser.
JSON is the format most web APIs, config files and logs use. When it arrives as one long line, or has a small mistake in it, it is difficult to work with. Paste it into the box above and the tool checks it, shows exactly where any error is, and lays the data out as a tree you can open and close, as neatly indented code, or as a table.
You can also fix common mistakes with one click, compare two versions of the same JSON, and turn it into YAML, CSV, TypeScript types or a JSON Schema.
How to format JSON online
- Add your JSON. Paste it into the Input box, drop a file onto it, press Open file, or press Sample to try an example.
- Read it. The right side shows your data as a tree. Switch to Code for indented text, Raw for your untouched original, or Table for a list of objects as a grid.
- Fix or reshape it. Use Format or Minify to rewrite the input, Repair if it is invalid, or open More for sorting keys and escaping text.
- Find things. Press
/to search keys and values, or type a JSONPath such as$.orders[*].totalto pull out just what you need. - Take it with you. Copy any value, key or path, copy the whole result, or download it as a file.
Features
Validate with exact errors
See what is wrong, with the line and column and a marker in your input.
One-click repair
Fixes trailing commas, comments, single quotes, unquoted keys and Python-style values.
Tree, code, raw and table
Four ways to look at the same data. Large files stay smooth.
Search and JSONPath
Search keys and values, with case and regex options, or query with JSONPath.
Compare two JSONs
See what was added, removed or changed, shown right in the tree.
Convert
JSON to YAML, CSV, TypeScript and JSON Schema, and YAML or CSV back to JSON.
Smart values
Links you can click, dates in readable form, colour swatches, and decoded JWT and base64.
Exact data
Big numbers, number formatting, key order and duplicate keys are never altered.
Themes and shortcuts
Light and dark, a dozen more themes, and keyboard shortcuts for everything.
Your JSON stays on your device
Nothing you paste is uploaded. The formatter runs entirely inside this page, in your browser. It sends no JSON to any server, loads no outside fonts or scripts, and needs no account.
That makes it a good fit for API responses, config files and logs that you would not want to hand to a stranger’s server. You can check this yourself in your browser’s network panel: after the page has loaded, pasting and formatting JSON makes no requests.
Prefer it inside your browser?
The same tool is available as a free Chrome extension. It formats any JSON page you open, such as an API response, automatically, and adds a workbench tab for pasting, repairing, converting and comparing. Use the Add to Chrome button at the top of this page.
Frequently asked questions
Is the JSON Formatter really free?
Yes. Every feature is free, there is no account to create and nothing is locked behind a paid plan. The tool has no ads.
Is my JSON uploaded anywhere?
No. Everything happens in your browser, on your computer. The page does not send your JSON, or anything else, to any server. Once the page has loaded, using the tool makes no network requests of its own, and you can check that in your browser’s network panel.
How do I format or pretty-print JSON?
Paste your JSON into the Input box (or drop a file on it). It is checked and shown as a tree on the right as you type. Press Format to rewrite the input with neat indentation, or Minify to remove all extra spaces.
What does Repair do?
Repair fixes the mistakes that most often make JSON invalid: trailing commas, comments, single quotes, keys without quotes, and values such as None, True, False or NaN. It tells you what it changed, so you can check it.
Does it change my numbers or the order of my keys?
No. Large numbers such as 12345678901234567890 keep every digit, 1.0 stays 1.0, keys stay in the order you wrote them, and duplicate keys are kept. The Raw view always shows your original text. Sorting keys is only a view and is labelled as one.
Which conversions are supported?
From JSON you can get YAML, CSV (for lists of objects), TypeScript types and a JSON Schema inferred from your data. You can also turn YAML or CSV into JSON. The Table view shows a list of objects as a sortable grid.
How big a file can it handle?
The viewer only draws the rows you can see, so files of tens of megabytes stay smooth on a modern computer. Very large input is limited by your device’s memory, not by us.
Is there a Chrome extension?
Yes. The same tool is available as a free Chrome extension that formats any JSON page you open, such as an API response, automatically. Use the Add to Chrome button at the top of this page.
Where are my settings stored?
Your theme and other choices are saved in your browser’s local storage on your device. Clearing your site data removes them. There is no account and nothing is synced to a server.