Is 2json free?
Yes. Every tool is free, with no account, no usage limits, and no paid tier.
Twelve free tools for formatting, repairing, converting, querying, and comparing JSON. No account and no upload.
Loading the workbench.
You do not have to take our word for it. Developer tools show every request a page makes, so you can watch 2json work and confirm that nothing is sent. Auditable trust is worth more than a badge, and the check takes under a minute.
F12, or Cmd+Option+I on a Mac, and select the Network tab.Only three things can add a line to that log, and none of them carries your document. Submitting the feedback form sends the vote and comment you typed. Clicking an open link in the tree viewer visits that address, as any link does. Pasting text in a script the page has not displayed yet, such as Cyrillic or Greek, can make the browser fetch the matching font file, and that request names only the font.
The production site also sends a Content-Security-Policy header that tells your browser to refuse connections to anywhere except this site and the anonymous analytics endpoint. A coding mistake could not quietly send your data elsewhere, because the browser itself would block the request.
2json is a free JSON workbench that runs entirely in your web browser. It combines twelve groups of tools for working with JSON into one page, so you can validate a payload, repair it, convert it to CSV, and generate TypeScript types without pasting the same document into four different websites.
2json was built for developers, and it is written for everyone else who ends up holding a JSON file. Error messages explain what went wrong in plain English, and query examples teach the syntax as you click them.
JSON payloads routinely contain customer records, access tokens, and internal API responses. Many online formatters send what you paste to a server, and some offer save features that create public links. Zero retention means a tool has nothing to leak because it never receives your data.
2json has no accounts, no database of documents, and no share links, because a share link would require storing your data somewhere. Your document exists only in the memory of this browser tab, and it is gone when you close the tab.
$.items[3].price must be a number, generate valid mock data, and infer a schema from a sample.JSON repair is the process of rewriting almost-valid JSON into strict JSON. The 2json repair tool reads a broken document with a tolerant parser that understands the mistakes people and programs commonly make, then writes out a clean version.
Repair handles trailing commas, comments, single quotes, unquoted keys, missing commas and colons, unclosed brackets, Python literals like True and None, Markdown code fences, and JSONP wrappers. Every fix is listed with its line and column, because a repair is a best guess and you should be able to review it.
NDJSON, also called JSONL, is a format that stores one JSON value per line. It is the standard shape for application logs, data exports, and LLM training files, because a program can read one record at a time.
The Data tab reports bad lines by number, shows which fields appear and how often, draws random samples, and splits files into a downloadable zip. Opening a large file streams it from your disk one line at a time, so a file bigger than your computer's memory can still be inspected.
JSON Patch, defined in RFC 6902, is a format for describing changes to a JSON document as a list of operations such as add, remove, and replace. 2json generates a patch from two documents and applies patches atomically, so a failing operation leaves your document untouched.
JSON Pointer, defined in RFC 6901, is a syntax for identifying one value in a document, such as /users/0/name. The Diff tab resolves a pointer live and lists every valid pointer in your document. JSON Merge Patch, defined in RFC 7386, is in the Transform tab.
JSONPath is the best starting point for pulling values out of a document, and it is the most widely recognized. JMESPath is a good fit if you already use the AWS command line, and it excels at reshaping results. JSONata goes further, with aggregation, string functions, and full transformations.
All three run in the Query tab against your current document, and results update as you type. Click any example to load it, then adjust it to fit your data.
Part of the 2suite.io privacy-first ecosystem, alongside tools like 2redact for documents and 2convert for files.
Yes. Every tool is free, with no account, no usage limits, and no paid tier.
No. Every tool runs in your browser, so your JSON never leaves this browser. Nothing you paste is uploaded, stored, or written to local storage.
Yes, one anonymous page-view count when the page loads, before you can paste anything. If you submit the feedback form, your vote and comment are sent too. No tool ever sends data, and your JSON is never included.
Single JSON documents can be opened up to 256 MB, depending on your device. Larger NDJSON files can still be inspected, sampled, and queried, because the Data tab streams them from disk one line at a time.
Yes. The Validate tab repairs trailing commas, comments, single quotes, unquoted keys, missing commas, unclosed brackets, and Python literals, and it lists every change it made so you can check the result.
No. Format keeps numbers and key order exactly as written, including integers too large for JavaScript. Tools that parse values, such as Convert and Query, use JavaScript numbers, and the editor warns you when that would round a value.
No. It decodes the header and payload and explains the claims, but verifying a signature requires the key. Never trust a token because it decoded successfully.