TVRSK.

JSON formatter

Paste JSON below. It's checked and formatted as you type, and errors point to the exact line and column.

input
Output
Keys
result
Paste JSON to start. ⌘ ↵ copy

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.0 and 1e400 come 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

tools/data

All tools →

esc

↑ ↓ to move · ↵ to open · esc to close