What you can do with JSONYard
Format & minify
Pretty-print JSON with 2-space, 4-space, or tab indentation. Strip all whitespace to compact one line.
Validate
Catch syntax errors with the exact line and column. Click to jump to the problem.
Tree view
Explore deeply nested JSON without scrolling forever. Collapse, expand, copy paths and values.
Repair broken JSON
Trailing commas, single quotes, comments, unquoted keys — Repair mode fixes them and tells you what changed.
Large files
Files over 200KB are parsed off-thread in a Web Worker so the UI never freezes.
Share via URL
Encode small payloads in the URL hash. Nothing is sent to a server — the hash stays in your browser.
How to use it
- Paste, drop, or upload your JSON into the left pane.
- Click Format (or press Ctrl+Enter) to pretty-print, or Minify (Ctrl+M) to compact.
- Switch the right pane to Tree view to explore nested structures.
- If the input is broken, click Repair — JSONYard will fix what it can and explain the changes.
- Copy, download, or share the result.
Frequently asked questions
Is my JSON sent to a server?
How big a file can I format?
What does "Repair" do?
// line and /* block */ comments, and unquoted keys. After repairing, it shows a list of what it changed.Can I share my formatted JSON via a link?
#). Because URL hashes are never sent to the server, the data still stays in the browser. Large payloads can't be shared this way — use Download instead.What's the difference between format, beautify, and pretty-print?
Do you use cookies or tracking?
localStorage to remember your theme and indent preferences. We don't set tracking cookies, fingerprint your browser, or analyze your JSON content. If we add ads in the future, we'll display a consent banner first as required by law in the EU and California.Why does my number lose precision after formatting?
JSON.parse converts every number to a 64-bit float. Numbers larger than 253−1 (about 9 quadrillion) lose precision. If you're working with big IDs, transmit them as strings — that's a JSON design choice, not a bug in any formatter.Keyboard shortcuts
- Ctrl+Enter — Format / Beautify
- Ctrl+M — Minify
- Tab in the input — insert two spaces