Text Compare
Compare two texts, files, or code with a clear text diff
Use this text compare online tool to compare two texts, text files, or code. It highlights additions and deletions with line numbers and supports side-by-side or inline views.
- Paste the original text on the left and the updated text on the right.
- Choose a view, matching mode, and comparison options like ignore whitespace or empty lines.
- Review the diff output and copy or download a unified diff if you need to share changes.
The diff output highlights additions and deletions, and the status summary shows line counts plus added and removed lines. Use Jump to first change to move to the first edit in the diff output.
Use Auto, JSON, or YAML mode to compare structured data. Formatting before compare makes JSON compare and YAML compare results easier to read when keys move or line breaks differ.
- Compare two texts to review edits or revisions.
- Compare two versions of copy, emails, or notes before publishing.
- Compare two code blocks or configuration files.
- Compare JSON or YAML to spot structural changes.
- Check logs for changes between runs.
- Use Ignore whitespace when comparing formatted output.
- Use Ignore case when letter case is not meaningful.
- Use Ignore empty lines for config or log comparisons.
- Switch to word matching for prose or small character edits.
- Use Auto, JSON, or YAML formatting to expose small changes in minified inputs.
- Copy or download a unified diff for pull requests or tickets.
- For .NET config files, format XML first using the XML Formatter tool.
Does the text compare tool modify my input?
No. The tool compares your inputs in place and does not rewrite them while you type.
Can I compare JSON or YAML?
Yes. Use Auto, JSON, or YAML mode to format structured data before comparing.
Is my data stored?
No. Comparisons run in your browser and input is not sent to a server.