Free Online Diff Checker
Paste two texts and see every addition, deletion, and change highlighted
Paste text in both panels to compare.
Try these next
Why use Diff Checker
- Color-coded additions and deletions let you scan hundreds of lines and spot every change in seconds.
- Toggle between unified and side-by-side views depending on how you like to read diffs.
- Ignore-whitespace and ignore-case options filter out formatting noise so you only see real content changes.
How it works
The diff checker implements a variant of the Myers diff algorithm, which finds the shortest edit script (minimum number of insertions and deletions) to transform the original text into the modified text. It splits both inputs into lines, then builds an edit graph where moving right represents a deletion and moving down represents an insertion. The algorithm traces the shortest path through this graph using a breadth-first approach. When ignore-whitespace is enabled, each line is normalized by collapsing all whitespace to single spaces and trimming before comparison, but the original formatting is preserved in the output display. When ignore-case is active, both sides are lowercased for comparison purposes only. The summary counts are derived from the edit script by tallying insertions, deletions, and unchanged lines.
About this tool
Compare two config files side by side after a deploy goes wrong. Paste the old version on the left, the new one on the right, and additions show green, deletions show red. Toggle between unified and side-by-side views depending on whether you want a compact summary or a spatially aligned comparison. Ignore-whitespace and ignore-case options filter out formatting noise so you only see meaningful content changes. Git's built-in diff is tied to version-controlled files. The terminal `diff` command works but gives you raw output without color. Diffchecker.com uploads your text to their servers. This one runs the Myers diff algorithm in your browser -- nothing leaves your machine, which matters when you're comparing credentials files or proprietary code.
How to use Diff Checker
- Paste both versions. Drop the original into the left panel and the modified version into the right.
- Review the diff. Additions show green, deletions show red. Toggle between unified and side-by-side views.
- Filter noise. Turn on ignore-whitespace or ignore-case to focus on meaningful content changes.
Use cases
- A deploy just went sideways. Compare the old nginx.conf backup against the current one to find exactly which lines changed.
- You're reviewing two drafts of API documentation and need to find every sentence that changed between the first draft and the editor's revision.
Frequently Asked Questions
A diff checker compares two pieces of text and highlights the differences between them. Lines that were added appear in green, lines that were removed appear in red, and unchanged lines are shown without highlighting. It is commonly used to review code changes, compare document versions, or verify edits.
Unified diff shows all changes in a single column with + and - prefixes for added and removed lines. Side-by-side diff shows the original text on the left and the modified text on the right, making it easier to see corresponding lines.
When enabled, the diff checker treats lines as identical even if they differ only in spaces, tabs, or trailing whitespace. This is useful when comparing code that may have been reformatted but is functionally the same.
Yes. This diff checker works with any text including source code in any programming language. Paste your original and modified code to see exactly what changed, line by line.
When ignore case is enabled, the comparison treats uppercase and lowercase letters as identical. For example, 'Hello' and 'hello' would not be marked as different. This is useful for case-insensitive text comparisons.
Green highlighting indicates lines that were added in the modified text. Red highlighting indicates lines that were removed from the original. Lines without highlighting are unchanged between the two versions.
Yes. The diff checker handles large texts efficiently since all processing happens in your browser. For very large files (thousands of lines), the side-by-side view may be easier to navigate than the unified view.
Related Tools
Discover more free utilities to enhance your productivity.
JSON Formatter & Validator
Paste messy JSON, get clean indented output
Markdown to HTML Converter
Turn Markdown into clean, sanitized HTML with GFM support
Regex Tester
Type a regex pattern and see matches highlighted instantly in your test string
Hash Generator
Compute SHA-1, SHA-256, and SHA-512 hashes from text or files