Free Dev Tool

JSON Formatter & Validator

Format, minify, validate, and tree-view JSON instantly — runs entirely in your browser. No data sent to any server. Ever.

Indent:
Escape tools:
Runs entirely in your browser. Your JSON never touches any server. No logging.
Input
Output
Characters
Bytes
Max Depth
Objects
Arrays
Keys

What is JSON?

The Basics

JSON (JavaScript Object Notation) is a lightweight text format for storing and exchanging data. It's human-readable, language-agnostic, and supported by every modern programming language. APIs, config files, and databases all use it.

JSON Data Types

JSON supports six types: string (text in double quotes), number (integers or decimals), boolean (true/false), null, object ({} key-value pairs), and array ([] ordered lists).

Common Mistakes

JSON is strict: keys must be in double quotes (not single), trailing commas are not allowed, and undefined is not a valid value. Use this validator to catch these issues instantly with exact line and column numbers.

When to Use the Tree View

Tree view is ideal when exploring large or deeply-nested JSON — API responses, config files, exported data. Collapse branches you don't need, expand only what matters. Size counts show item counts at a glance.