What is text diff checker?
A diff shows the differences between two versions of a text. Writers use it to review edits, developers use it to compare code and configs and lawyers use it to find changes in contracts.
This tool compares line by line and marks removed lines in red and added lines in green. It runs in your browser, so private drafts and code stay with you.
How to use the text diff checker
- Paste the original text on the left.
- Paste the changed text on the right.
- Press Compare and review the highlighted result.
How the text diff checker works
The tool finds the longest common subsequence of lines between the two texts. Lines that are not part of it are shown as removed from the original or added to the new text.
Worked example
Common uses of the text diff checker
- Reviewing edits made by an editor or teammate.
- Comparing two versions of code or a config file.
- Checking changes in a contract or policy.
- Finding what changed between two exports.
- Verifying that a copy matches the original.
Tips and common mistakes
For a clearer result, keep line breaks consistent in both versions.
Compare small sections at a time. Very long texts are slow to compare in a browser.
Background: what to know before you rely on it
Diff tools trace back to the Unix diff command, created in the early 1970s. The idea is to find the longest sequence of lines that both versions share, then describe everything else as insertions or deletions. Version control systems such as Git use diffs to store history efficiently and to show what changed in each commit. Line based diffs work best for code and structured text. For prose, a word level diff is often more helpful, because a small edit can change a whole paragraph line. When reviewing contracts or important documents, always read the full text as well, since a diff only shows differences and not whether the changes are acceptable.
Private, free and fast
This tool runs entirely in your browser. What you type or choose is not uploaded to a server and is not saved after you close the page, which keeps it fast and private. It is free to use as often as you like. See more in all text tools, or browse the full list of tools.
Field by field guide
- Original text: Type or paste your text here. Use a new line for each entry where the label says so.
- Changed text: Type or paste your text here. Use a new line for each entry where the label says so.
Change one field at a time to see how the result responds, and use the worked example above to check that you get the same answer.
Frequently asked questions
How does a diff tool work?
It finds the lines both texts share and marks the rest as added or removed.
Is my text uploaded?
No.
Does it compare words inside a line?
No. It compares whole lines.
How large a text can I compare?
A few thousand lines work well.
Related tools
Subtitle Converter
Paste your subtitle text, choose SRT to VTT or VTT to SRT, and optionally shift all times by a number of...
Text ToolsPlagiarism Checker
Paste your text and the source text you want to compare against. The checker highlights matching phrases...
Text ToolsRemove Duplicate Lines
Paste a list with one item per line. The tool removes repeated lines and keeps the first copy of each,...
Text ToolsSort Lines Alphabetically
Paste a list with one item per line, choose a sort order and the tool returns the sorted list ready to...
Text ToolsWord Counter
Paste or type your text and the counter shows words, characters, sentences, paragraphs, reading time and...
Developer ToolsJSON Formatter and Validator
Paste your JSON and the tool checks that it is valid, then formats it with indentation or compresses it...
More free tools people use next
- Compound Interest Calculator: Compound interest means you earn interest on your earlier interest. Enter a starting...
- Character Counter: Paste your text to count characters with spaces, without spaces and in bytes, and see how...
- URL Slug Generator: Type a page title and the tool returns a clean slug in lowercase with hyphens between...
- Text Repeater: Enter your text, set how many times to repeat it and choose a separator. The tool outputs...
- TDEE and Calorie Calculator: TDEE is your total daily energy expenditure, the calories you burn in a day. Enter your...
- Reverse Text Tool: The reverse text tool flips your text three ways: reverse every character, reverse the...
- Find and Replace Tool: Paste your text, enter what to find and what to replace it with. Options for case, whole...
- Image Cropper: Choose an image, pick an aspect ratio, a zoom level and which part to keep, then download...
- Currency Converter: Enter an amount, choose two currencies and the tool fetches the latest exchange rate and...
- Images to PDF Converter: Choose several images and the tool puts each on its own page in one PDF. Choose original...
- Fraction Calculator: Enter two fractions and an operation. The tool shows the simplified fraction, the mixed...
- Standard Deviation Calculator: Enter your numbers separated by commas or spaces. The calculator returns the standard...
- Citation Generator: Enter the author, title, site or publisher, year and link. The generator formats the...
- Percentage Difference Calculator: Enter two numbers. The calculator gives the percentage difference between them, and the...
- Acronym Generator: Enter the letters of your acronym and choose a style. The tool builds phrases where each...
- Acrostic Poem Generator: Enter a word or name. The tool lays out one line per letter with starter words you can...
- SEO Blog Post Generator: Enter your topic and main keyword, choose a length and tone, and press Build post plan....
- Email Sequence Generator: Choose the goal, describe your offer and audience, pick 3, 5 or 7 emails and press Write...
- Cold Email Personalizer: Enter the prospect's name, one real detail and your offer, pick a tone, and press...
- Viral Hook Generator: Enter your topic, choose a platform and style, and press Generate hooks. You get 15...
- Anagram Solver: Type your letters, use a question mark for a blank tile, and press Solve. You get exact...
Results are for information and education. For legal, financial, medical or security decisions, check with a qualified professional. Always proofread output before you publish.