Code Diff Checker
Compare two texts or code snippets and see the lines that changed.
- No uploads
- No account
- No ads
- No watermarks
- Free forever
Network check starts when you add a file or change something in the tool
Blocks every fetch, XHR and beacon request this page makes and switches Google Analytics off, on tool pages, for this session.Requests this page makes are counted from then on; page-load requests are left out.
How this works / check it yourself
From the moment you add a file or change something in the tool, this badge lists the requests this page makes. It reads the browser's own list of requests (Resource Timing), which shows a request once it finishes, and watches every fetch, XHR and beacon call. Downloads, such as this site's PDF and OCR engines or an AI model from Hugging Face, are listed apart from requests that carry data out.
This page cannot see requests made inside background workers (such as the PDF engine pdf.js and Tesseract OCR), WebSocket and EventSource connections, form submissions, link pings or the site's service worker, so they are not counted here, and offline mode cannot block them. A request is listed once it finishes. Your browser's Network tab shows everything.
Offline mode blocks the fetch, XHR and beacon calls this page makes. A part of the site that set up its connection before the page finished loading, such as sign-in, is not blocked; if it sends anything, the badge counts it as sent.
- Open your browser's developer tools (F12, or Cmd+Option+I on a Mac) and choose the Network tab.
- Add your file, run the tool and look for any request that uploads it. Requests made by workers are listed there too.
- For the strongest test, turn Wi-Fi off once the page has loaded and run the tool again: tools that need no download still work.
More tools in Developer Tools
All Developer ToolsAbout Code Diff Checker
Paste the original and changed versions of your code to see a line-by-line diff in a monospace view. Added lines are marked with + in green and removed lines with − in red, with a count of each. It works for any language or config file. The diff runs in your browser, so your code is not uploaded.
How to use Code Diff Checker
- Paste the original code in the Original code box.
- Paste the new version in the Changed code box.
- Review the green added lines and red removed lines below.
Limits: Plain line diff: no syntax highlighting, no word-level changes, and whitespace counts. No file upload or Git integration. Very large inputs (over about 2,000 lines each) are not aligned.
Frequently asked questions
How do I compare two versions of code?
Paste the old version in Original code and the new one in Changed code. The diff below marks lines found only in the new version as added and lines found only in the old one as removed.
Does it ignore whitespace or indentation changes?
No. Lines must match exactly, so changed indentation or a trailing space shows as one removed and one added line. This also helps you catch tab and space mix-ups.
Is the diff syntax-aware?
No. It compares plain lines of text, so it works the same for JavaScript, Python, JSON, YAML or any other language. It does not parse or color the code.
Can I upload files or compare Git commits?
No. Paste the text of each version into the two boxes. For Git history, git diff in your terminal compares commits directly.
How does it decide which lines changed?
It finds the longest common sequence of matching lines and marks the rest as added or removed, the same idea classic diff tools use. Inputs over 4 million line pairs are shown as fully removed and fully added.
Is my code uploaded?
No. The comparison runs in your browser. Your code is not sent to a server.