Skip to content
Tool Dock

JSON Formatter & Validator

Format, validate, repair and explore JSON in a real editor, with a tree view and the exact line of any error.

Options

Input

Waiting for JSON

Output

or press ⌘/Ctrl + Enter
  • Runs in your browser
  • Nothing is uploaded
  • Free, no sign-up

How to use it

  1. Paste your JSON, open a file, load a URL, or drop a .json file anywhere on the page.
  2. Choose the indentation, or Minify to remove all whitespace. Sort keys orders every object alphabetically.
  3. Read the result as code with line numbers and folding, or switch to Tree to collapse, filter and copy paths.
  4. If the JSON is broken you see the line and column; Repair fixes quotes, trailing commas and comments.

Why Tool Dock

  • FastEverything runs on your own device, so there is no queue and no waiting for uploads.
  • PrivateYour files and text never leave the browser. Close the tab and they are gone.
  • Batch friendlyDrop several files at once and download each result, or all of them together.

Questions

Is my JSON sent anywhere?

No. It is parsed and formatted in your browser. API keys and tokens inside it stay on your device.

How do I find what is wrong with my JSON?

Run it. If it is invalid, the message gives the line and column where parsing stopped. Trailing commas, single quotes and unquoted keys are the usual causes.

What does Repair fix?

Single quotes, unquoted keys, trailing commas, comments, JSONP wrappers, missing brackets and JavaScript-style objects. Always check the result: the repair guesses what you meant.

What is the Tree view for?

It shows the document as collapsible rows with item counts. Click a key to copy its path, such as $.store.books[0].title, and filter rows by key or value.

What does Sort keys do?

It orders object keys alphabetically at every level, which makes two JSON documents easier to compare.

All tools