JSON Formatter, Validator & Minifier
Format, validate, and minify JSON in your browser. See parse errors with line/column. Optional key sorting. Nothing is uploaded.
How to use
- 1Paste your JSON
Drop any valid JSON into the input box — an object, an array, or a single value.
- 2Pick an indent
Choose 2 or 4 spaces, or tab. Pick "minified" to strip whitespace instead.
- 3Read the result
The output updates as you type. Errors show the exact line and column so you can fix them fast.
- 4Copy or share
Copy the formatted output, or share the URL — your input is preserved in the address bar.
Examples
{"name":"ToolVaults","tools":104,"private":true}{
"name": "ToolVaults",
"tools": 104,
"private": true
}{"b":2,"a":1,"c":3}{
"a": 1,
"b": 2,
"c": 3
}{
"a": 1,
"b": 2,
}Error at line 4, column 1: Unexpected token }
Frequently asked
No. Formatting and validation happen entirely in your browser using the native JavaScript engine. Your data never leaves the device.
JSON is stricter than JavaScript: keys must be double-quoted strings, no trailing commas, no comments. The error message shows the exact line and column where parsing failed.
It reorders object keys alphabetically at every nesting level. Handy for diffing two JSON blobs that have the same content but different key order.
Related tools
- JWT DecoderPaste any JSON Web Token (JWT) to see the decoded header, payload, and expiratio
- Hash GeneratorInstantly compute MD5 and SHA-family hashes of any text. All hashing happens in
- Base64 Encode / DecodeEncode or decode Base64 text. UTF-8 safe by default. Optional URL-safe variant.
- .env File ParserParse a .env file and see it as a JSON object. Handles comments, quoted values,
- Base ConverterConvert numbers between binary, octal, decimal, and hexadecimal. Supports huge n
- Credit Card ValidatorValidate credit card numbers with the Luhn algorithm and detect the brand: Visa,