JSON formatter
Paste JSON below. It's checked and formatted as you type, and errors point to the exact line and column.
How it works
- Checking
Your text is read with the browser's own JSON parser, the same one websites use. If it isn't valid JSON, you get the line and column where the problem starts and the browser's description of it.
- Formatting
Valid JSON is written back out with the indentation you pick, or on one line with no spaces when minified. Sorting puts the keys of every object in alphabetical order, at every level.
- Big numbers
Numbers are written back exactly as you typed them, so long IDs,
1.0and1e400come out unchanged. Most programs can't hold whole numbers above 9,007,199,254,740,991 exactly, so if your JSON holds IDs that long, keeping them as strings is safer.
Your JSON stays in your browser. Nothing is uploaded, which makes it safe for data you can't share.
Questions
Is it safe to paste private data?
Yes. The JSON never leaves your browser: there's no server involved in checking or formatting it.
Does it accept comments or trailing commas?
No. Those aren't part of the JSON standard, so they're reported as errors. Remove them to get valid JSON.
More in TVRSK.data
- JSON formatterPretty-print, minify and validate JSON, with exact error spots.here
- Base64 encode / decodeText to Base64 and back, UTF-8 safe, with a URL-safe option.
- Online CSV viewerOpen, sort and filter big CSV files without uploading them.soon