Format and Validate JSON: Find the Bad Line, Repair Comments, Trailing Commas and Single Quotes
The most common mistakes when handling JSON are a trailing comma after the last item, or single quotes, which real JSON does not allow.
Validation that points to the problem
Paste JSON on the left. It is checked at once and the error shows the line, column and reason.
Repairing to JSON
If the data is JavaScript-style, with comments, trailing commas or single quotes, press repair to turn it into valid JSON.
Other tools
- Format it so it is readable.
- Minify it to a single line.
- Sort the keys alphabetically.
- Browse it as a collapsible tree.
Sensitive data
What you paste is not uploaded, so internal JSON is fine to use here. Still, avoid pasting real passwords anywhere without need.