JSON validator and formatter
Validate, format or minify JSON. Everything runs in your browser; nothing you paste is sent anywhere.
What counts as valid JSON
- Keys and strings use double quotes; single quotes are not JSON.
- No trailing comma after the last item of an object or array.
- No comments. A configuration file with comments is JSON5 or JSONC, not JSON.
- Numbers have no leading zeros and no hexadecimal form;
NaNandInfinityare not allowed.