JSON Formatter

Beautify, minify, and validate JSON data with line-numbered error reporting.

Input JSON
✓ Valid JSON Size: — Keys: — Depth: —
Formatted Output Indent: 2 spaces
Click "Beautify" or "Minify" to format your JSON.

JSON Formatting Guide

Beautify formats JSON with consistent indentation for readability. Minify removes all whitespace to reduce file size. Validation runs automatically and shows the exact line and column of any syntax errors.

FeatureDescription
Auto-validateChecks syntax on every format operation
Error linesShows exact line/column of parse errors
StatsDisplays file size, key count, and nesting depth
Copy outputOne-click copy of formatted result