JSON Forge
100% Client-Side: your data is never sent to a server

Diff Checker

Compare two pieces of text or JSON side by side and see exactly which lines and words changed. Nothing you paste is uploaded: the comparison runs in your browser.

Compare as:
Layout:

How to compare two texts

  1. Paste the original text into the editor on the left.
  2. Paste the changed text into the comparison box in the Diff tab.
  3. Read the side-by-side view: removed lines on the left, added lines on the right, changed words highlighted. Use Swap sides to reverse the direction.

Side by side or unified

Side by side puts the original and the changed version in two columns, with edited lines on the same row, so you can read a change in context. Unified shows one column with removed and added lines stacked, which is closer to git diff and easier to copy from.

Plain text or JSON

Plain text compares exactly what you pasted, line by line, with options to ignore whitespace and letter case. Switch to JSON to parse both sides first: formatting is normalized and key order can be ignored, so only real data changes show up. Use it for code, config files, logs, contracts or any two versions of the same text.

What is JSON?

JSON (JavaScript Object Notation) is a lightweight, text-based data format that is easy for people to read and for machines to parse. It is the de facto standard for web APIs, configuration files and data exchange between services. A JSON document is built from just six value types: objects, arrays, strings, numbers, booleans and null.

{
  "name": "Ada",
  "age": 36,
  "admin": true,
  "skills": ["math", "code"],
  "address": { "city": "London" },
  "manager": null
}

JSON is stricter than JavaScript object literals: keys and strings must use double quotes, trailing commas are not allowed and comments are not part of the specification (RFC 8259).

Why format JSON?

APIs usually return minified JSON on a single line, which is efficient for machines but unreadable for people. Formatting (also called pretty printing or beautifying) adds consistent indentation and line breaks so that you can scan the structure, spot mistakes and review changes. Minifying does the opposite and strips whitespace to reduce size.

Frequently asked questions

Is the text I paste uploaded anywhere?

No. The comparison runs in a Web Worker inside your browser tab. Nothing is sent to a server, so it is safe for source code, configuration and other private text.

How does it highlight changes inside a line?

When a line is edited, the words that differ are marked more strongly than the rest of the line, so a one-word change in a long line is easy to spot.

Can it ignore whitespace and case?

Yes. In plain text mode, tick Ignore whitespace to skip differences in spaces and indentation, and Ignore case to treat upper and lower case as equal.

Is my JSON uploaded to a server?

No. Parsing, validation, formatting, diffing and code generation all run inside your browser, using a Web Worker. Your data is never sent to any server, which makes the tool safe for API responses, configuration files and other sensitive payloads.

Does it work offline?

Yes, after the first visit. The editor and tools are stored in your browser, so you can use them without a connection. Only the TypeScript, CSS and HTML language workers used for extra highlighting in the Code tab are downloaded the first time you use them.

How large a JSON file can I open?

Files of 20 MB and more work. Parsing happens off the main thread and the tree view is virtualized, so only the rows you can see are rendered. The editor switches to a lighter mode for very large documents.

What is the difference between formatting and minifying JSON?

Formatting (pretty printing) adds line breaks and indentation so people can read the data. Minifying removes all optional whitespace to make the payload as small as possible for network transfer or storage. Both produce identical data.

Fix common JSON errors

JSON examples to try

Cheat sheets

More JSON tools