Loading JSON workspace...
JSON Formatter & Validator
Paste JSON from an API response, a log line or a config file to pretty-print it, validate the syntax and jump to the exact line and column of an error. The full-screen workspace puts two editors side by side, each with text, tree and table views, so you can collapse huge payloads, sort and filter arrays, query data, escape JSON into a string or generate a JSON Schema. Nothing is uploaded: parsing and formatting run entirely in your browser.
How to use
- Paste JSON into the left editor, open a .json file, or drag and drop it anywhere on the page.
- Use Format or Compact in the editor menu; if the status bar reports invalid JSON, fix it at the reported line and column or switch to JSON Repair.
- Switch to tree or table view to inspect the structure, then copy, download, or send the result to the right editor for escaping or a JSON Schema.
FAQ
- Why does a valid JavaScript object literal fail as JSON?
- JSON requires double quotes around keys and strings, forbids trailing commas, and has no comments or undefined values. Convert such literals to strict JSON, or paste them into JSON Repair to fix them automatically.
- How do I find where my JSON is broken?
- The status bar shows the parser error with its line and column, and text view highlights the position. Common causes are a missing comma, an extra closing bracket, or single quotes around strings.
- What is the difference between text, tree and table view?
- Text view is a code editor for formatting and precise edits. Tree view collapses nested objects so you can navigate large documents. Table view shows arrays of objects as rows and columns, which is handy for API lists.
- Is my JSON uploaded or stored anywhere?
- No data leaves your device. The left editor content is saved in this browser's local storage so it survives a refresh; content over 1 MB is not saved, and Clear removes the saved copy.
- How large a JSON file can I open?
- Files of several megabytes open smoothly, and tree view stays responsive for larger documents. Very large files depend on your device memory; for multi-gigabyte data, use a streaming CLI tool instead.
- Can I escape JSON into a string or generate a JSON Schema?
- Yes. The buttons between the two editors escape the left content into a JSON string, unescape a JSON string back to text, copy content across, and generate a draft-07 JSON Schema from the left document.