Initializing VS Code Editor

Loading workspace...
About this tool

Free online diff checker: compare two files or text

Compare two files, code snippets, JSON or plain text side by side in your browser. No account, no install: paste both versions and every difference is highlighted immediately.

Side-by-Side Diff

View original and modified code next to each other with changes clearly highlighted in red and green.

Inline Diff View

Switch to inline mode to see additions and deletions within a single unified view.

Syntax Highlighting

Diffs are syntax-highlighted for 80+ languages so code is always readable, not just colored lines.

Editable Panes

Both the original and modified panes are fully editable — update either side and see the diff update live.

No Sign-up Required

Open the editor and start comparing instantly. Nothing to install or configure.

80+ Languages

Works for JavaScript, Python, JSON, YAML, SQL, Markdown, Rust, Go, TypeScript, plain text, and 70+ more.

How It Works

  1. Paste or type your original code in the left pane
  2. Paste or type the modified version in the right pane
  3. Differences are highlighted automatically in real time
  4. Switch between side-by-side and inline view as needed

Questions

How do I compare two files online?

Paste or type the original in the left pane and the changed version in the right pane. Differences are highlighted immediately; switch to inline view to read them as one unified listing.

Can I compare JSON, YAML or SQL?

Yes. The diff is syntax-highlighted for 80+ languages, so JSON keys, YAML indentation and SQL statements stay readable. Pick the language from the editor's status bar if it is not detected.

Is my text uploaded anywhere?

No. Both panes live in your browser; nothing is sent to a server. Close the tab and the text is gone unless you save it.

Is there a limit on file size?

The diff runs on the same engine as VS Code and handles files of tens of thousands of lines. Very large files are slower to diff but still work.

Can I edit while comparing?

Yes. Both panes are ordinary editors; type in either one and the diff updates as you type.