Format converter
Move a table between CSV, TSV and JSON, or encode and decode Base64, then download it.
Free · no account · nothing uploaded
Paste JSON to validate and pretty-print it, browse its shape, and when it is broken, get the precise line and column where the grammar first went wrong.
Say it the way you would say it to a person. Your words are matched to one of 18 tools by readable rules, and the tool runs right here in your browser. No upload, no account.
This tool runs in your browser and needs JavaScript turned on.
Things you can type: is it valid json? format this json
Anyone can pretty-print valid JSON. The moment that matters is the one where a 4,000-line configuration file will not parse and you need to know where.
Browsers are unhelpful here. Current V8 gives no character offset at all — only a short window of surrounding text — and reverse-engineering a line number from that window is guesswork. A version of this tool that did exactly that reported line 5 for an error on line 4.
Instead of scraping the engine’s message, this tool runs a small scanner over the input and reports the offset where the grammar first fails, converted to a line and column.
The result is exact, and identical in every browser — a claim the error-message approach cannot make from one release to the next.
You get formatted output, plus a structure view: the keys, the nesting, the types and the array lengths. That is usually the fastest way to answer the actual question, which is rarely "is this valid" and almost always "what shape is this and where is the field I need".
When a file will not parse, it is almost always one of these:
API responses, service-account keys and deployment configuration are the JSON people most often need to check, and they are exactly the JSON that should not be pasted into an unknown website.
This page has no backend. The text you paste is read by the tab and nothing else, which is a property you can confirm by disconnecting from the network and watching the tool keep working.
Questions
No. Validation, formatting and the structure view all happen in your browser tab. This matters more for JSON than for most formats, because configuration files and API responses routinely contain credentials.
It validates strict JSON, so both are reported as faults — with the position, which is what you need in order to remove them.
Large ones. The scanner is a single pass over the text, so multi-megabyte files are checked in well under a second.