Home / Developer / JSON Formatter & Validator
{ } JSON Formatter & Validator
Validate, pretty-print, minify and sort JSON โ with the exact error position.
About the JSON Formatter & Validator
Paste JSON to check whether it is valid and format it with your choice of indentation. Errors show the exact line and column. You can also minify JSON to one line, sort keys alphabetically, and copy or download the result.
How to use it
- Paste your JSON.
- Check the validity message.
- Click Format, Minify or Sort keys, then copy or download.
Frequently asked questions
Why is my JSON invalid?
Common causes are trailing commas, single quotes instead of double quotes, and unquoted keys. The error message shows the line and column to look at.
Related tools
โCSV โ JSON ConverterConvert CSV to JSON and JSON to CSV, with a table preview.๐กBase64 Encode / DecodeEncode or decode Base64 text (UTF-8 safe, URL-safe option).๐URL Encoder & ParserEncode/decode URLs and break a URL into its parts and query parameters.#๏ธโฃHash GeneratorMD5, SHA-1, SHA-256, SHA-512 and HMAC for text or files (checksum verify).๐Password GeneratorStrong random passwords (server-side crypto), plus a strength checker.๐UUID GeneratorGenerate random v4 UUIDs in bulk.