Text Diff
Compare two texts or code snippets with line, word, or character-level highlighting.
Free & unlimited
Original
Modified
Layout
Granularity
0 / 0
All processing happens in your browser. No data is sent to any server.
About this tool
- 1
Enter original text
Paste the original (old) version of your text or code in the left panel.
- 2
Enter modified text
Paste the modified (new) version in the right panel.
- 3
View the diff
Additions, deletions, and modifications are highlighted with color coding in the output.
- 4
Navigate changes
Use the arrow buttons to jump between individual changes, or switch between inline and side-by-side views.
- Use side-by-side view for code comparisons and inline view for prose or documentation.
- Enable "ignore whitespace" to focus on meaningful content changes and skip formatting differences.
- The line numbers help you locate changes quickly when applying them to your source files.
- You can upload files directly instead of pasting - useful for comparing large documents.
- Side-by-side and inline unified diff views
- Syntax highlighting for common programming languages
- Ignore whitespace and case sensitivity options
- Line-level and character-level change highlighting
- Change navigation with previous/next buttons
- Compare two versions of a source code file before committing changes
- Review configuration file differences between environments (dev, staging, prod)
- Check what changed between two contract or document revisions
- Verify that a code refactor did not alter the output by comparing results
Yes. You can upload two files using the file picker buttons, and their contents will be loaded into the comparison panels automatically.
Yes. The diff view includes syntax highlighting for JavaScript, Python, HTML, CSS, JSON, and many other languages.
Green highlights indicate additions (new text), red highlights indicate deletions (removed text), and yellow highlights show modified lines with character-level changes marked.