Format compact JSON
Input
{"name":"Ada","active":true,"roles":["dev"]}Example output
{
"name": "Ada",
"active": true,
"roles": [
"dev"
]
}Parse valid JSON and serialize it with the indentation you choose, entirely in your browser. String contents keep their own spaces, and invalid JSON produces an actionable syntax error with line and column.
| Accepted input | JSON text: objects, arrays, strings, numbers, booleans, or null |
|---|---|
| Indentation | 2 spaces, 4 spaces, or tab, with optional recursive key sorting |
| Max input size | 5 MB |
| Execution deadline | 2 s |
| Processing location | Browser-only: pasted input is not uploaded |
Input
{"name":"Ada","active":true,"roles":["dev"]}Example output
{
"name": "Ada",
"active": true,
"roles": [
"dev"
]
}Input
{"ready":true,}Example error
Expected double-quoted property name in JSON at position 14 (line 1 column 15)Values follow standard JavaScript JSON precision: integers beyond 2^53 - 1 may lose least-significant digits, and out-of-range literals such as 1e999 do not survive the round trip.
Duplicate object keys are not reported: the last value wins during parsing, matching JSON.parse behavior.
Key sorting uses plain code-unit order, not locale-aware collation, so uppercase letters sort before lowercase ones.
JSON Validator
Validate JSON syntax, inspect structure, and diagnose syntax errors with line and column diagnostics.
JSON Minifier
Compress and minify JSON data by stripping whitespace and indentation while preserving string values.
JSON ↔ YAML Converter
Convert bi-directionally between JSON and YAML with strict alias and cycle protection, custom indentation, and swap support.
JSON ↔ CSV Converter
Convert bi-directionally between JSON arrays of objects and tabular CSV/TSV data with delimiter options, header validation, and spreadsheet formula injection protection.
Base64 Encoder / Decoder
Encode UTF-8 text to standard or URL-safe Base64 and decode Base64 back to text.
Hash Generator
Generate cryptographic hashes and message digests including SHA-256, SHA-512, SHA-384, SHA-1, and MD5 for text payloads.
The formatter rewrites valid JSON with readable indentation; the validator only decides whether the syntax parses and explains the first error. Use the formatter to clean up API responses and the validator to diagnose why parsing fails.
Formatting fails when the input is not valid JSON — for example trailing commas, single quotes, comments, or unclosed braces. The error message reports the line and column where parsing stopped.
Choose 2 spaces for compact readability, 4 spaces for deeply nested documents, or tabs where your project style requires them. The choice only affects whitespace, never the data.
No. Whitespace inside string values is preserved exactly; only structural whitespace between tokens is rewritten.
Inputs are bounded by the documented input size, and numbers follow standard JavaScript JSON precision — integers beyond 2^53 - 1 may lose precision.
No. Formatting runs inside an isolated Web Worker in your browser, and pasted input is not uploaded for processing. The browser still requests site assets from the host; clipboard, downloads, and analytics are separate boundaries.