JSON Formatter & Validator
Pretty-print, validate, or minify any JSON document. The parser runs locally in your browser — paste API responses, config blobs, or secrets without worrying about them being logged.
JSON input0 chars, 0 lines
Parsing happens entirely in your browser. Invalid JSON shows the parser error inline.
Formatted JSON0 chars, 0 lines
Options
What you can do
- Pretty-print with 2 or 4 space indentation — useful for reading minified API responses.
- Minify JSON to a single compact line for embedding in scripts or env vars.
- Validate — the parser surfaces the exact position of the first syntax error.
Privacy
JSON parsing and serialisation happen entirely in JavaScript inside your browser tab. Textbench is a static site — no request is made to any backend with your input.
Related tools
Need to pull values out of free-form text first? Pattern Extractor can pull URLs, emails, and more from messy text, and Deduplicate Lines helps clean up output lists.