Text Compare
Diff two blocks of text and highlight what changed.
What is the Text Compare?
A diff checker compares two versions of text and highlights every insertion, deletion and change between them. It is the fastest way to spot what moved in a config file, a contract, a translation or a block of code when you do not have version control to hand.
Frequently asked questions
Can I compare two files instead of pasting text?
Paste the contents of each file into the two panes. Because the comparison happens locally in your browser, even large or confidential files stay on your machine.
Does it detect moved lines or only added and removed ones?
The diff works line by line, so a moved line shows as a removal in its old position and an addition in its new one. That is the standard behaviour of line-based diffs, including the one in Git.
Related Text & Code
- JSON FormatterFormat, validate and minify JSON documents.
- Case ConverterSwitch text between camel, snake, kebab, title and more.
- SQL FormatterPretty-print SQL queries with consistent keyword casing.
- Common Regex PatternsA searchable library of ready-to-use regular expressions.
- HTML BeautifierBeautify or minify HTML markup.
- Code Minifier & BeautifierBeautify or minify JavaScript, TypeScript, JSON, CSS, SCSS and LESS.
Text Compare is one of 10 tools in Text & Code on Toolkit Hub, a free collection of browser-based utilities. It requires no account and no installation. Browse all tools.