Twidler

JSON Formatter & Validator

Beautify or minify JSON, sort keys, and instantly catch syntax errors. Runs locally in your browser (with a PHP fallback).

Validate as you type ⌘/Ctrl + Enter to format Copy in one click

Input

0 chars · 0 lines

Output

0 chars

What this does

  • Beautify: pretty-prints JSON with your choice of 2-space, 4-space or tab indentation.
  • Minify: strips all unnecessary whitespace for the smallest possible payload.
  • Sort keys: alphabetically orders object keys (recursively) for clean diffs.
  • Validate: highlights the exact line and column of any syntax error as you type.

Everything runs in your browser — your JSON is never sent anywhere when JavaScript is enabled.