Skip to content
WebDevTools

JSON Editor & Formatter

Format, validate, minify and explore JSON online. Text and tree views, key sorting and search. Runs locally in your browser.

Runs locally in your browser

About the JSON editor

JSON (JavaScript Object Notation) is the most common format for APIs and configuration files. This editor helps you read, fix and tidy JSON quickly:

  • Format / prettify with 2 spaces, 4 spaces or tabs, or minify it to a single line.
  • Validate as you type. Syntax errors show the exact line and column.
  • Sort keys alphabetically, recursively, to make diffs and reviews easier.
  • Tree view to collapse and expand large documents and copy the path of any node (e.g. $.items[0].id).
  • Search keys and values in both views, with next/previous navigation.

Is my data safe?

Yes. Parsing and formatting happen entirely in your browser. Nothing is uploaded, and very large documents are processed in a background thread so the page stays responsive.

Tips

  • Paste JSON or use Open file to load a .json file.
  • Ctrl/Cmd + F inside the editor opens the editor’s own find panel as well.