Compare text, code and files instantly
This diff checker shows exactly what changed between two versions of a text. It lines up both versions, marks removed lines in red and added lines in green, and highlights the changed words inside each line, so even a single character is easy to spot. It is useful for reviewing code changes, comparing configuration files, checking edits to contracts or articles, and spotting differences between two JSON API responses.
Everything happens in your browser. The two texts are compared on your own device and never uploaded, which makes it safe for private or confidential documents.
How to use the Diff Checker
- Paste the original text on the left and the changed text on the right, or use Open file on each side.
- Differences are highlighted instantly: removed lines in red, added lines in green, and changed words inside each line.
- Switch between Side by side and Unified views, and tick Hide unchanged to focus on the edits.
- Use the arrow buttons to jump between changes. Both sides stay editable, so you can fix things as you go.
Frequently asked questions
Are the texts I compare uploaded?
No. The comparison runs entirely in your browser, so confidential code, contracts or configuration files never leave your device.
Can I compare JSON, XML or code?
Yes. Any text works, and you can pick a syntax-highlighting language such as JSON, XML, YAML, JavaScript or Python. Tip: format both JSON documents first (for example with the JSON Beautifier) so the diff shows real changes instead of formatting.
How large can the texts be?
Documents with tens of thousands of lines work well. Very large or completely different files fall back to a faster line-level diff so the page stays responsive.
Can I compare files that are open in RunPad?
Yes. In the RunPad text editor, click Compare in the toolbar to diff any two open tabs, and your edits are saved back to the tabs.