JSON Formatter / Validator
Format, minify, and validate JSON with custom indent. Sort keys A-Z. Runs 100% in your browser — sensitive JSON never leaves your device.
Keyboard shortcuts
- Ctrl+Enter or Cmd+Enter: Format
- Ctrl+Shift+Enter: Minify
Features
- Format: pretty-print with 2/4 spaces or tab indent
- Minify: strip whitespace for production transmission
- Validate: precise error location and reason for invalid JSON
- Sort keys A-Z: alphabetize keys (deep, applies to nested objects)
- Shortcuts: Ctrl+Enter to Format, Ctrl+Shift+Enter to Minify
Who this is for
Fullstack/backend/devops engineers — debug JWT, format JSON/SQL, parse cURL, compute CIDR subnets, draft Mermaid diagrams, write conventional commits… Daily toolkit alongside your terminal and editor.
FAQ
Is my pasted code/token sent anywhere?
No. All TopDev dev tools run 100% client-side — JWT, SQL, JSON, cURL, regex… process in-browser. Disconnect to verify. Safe for internal tokens, production DB queries, API keys.
Does it work offline / install as a PWA?
Tools work offline after the first load. Installable PWA is on the roadmap — for now you can bookmark and use without internet.
Related tools
See all tools →JWT Decoder
Decode JWT tokens — header, payload, claims with readable timestamps.
NEWText Diff
Paste 2 texts → highlight diffs at word/line/char level. Great for diffing AI outputs.
NEWJSON Schema Generator
Generate JSON Schema (Draft-07) from a sample — for LLM structured output and API validation.
NEWRegex Tester
Test regex live with match highlighting. 7 ready presets including Vietnamese.