Diff Tool

Original text
Left side
Modified text
Right side
Differences detectedAdded 1Removed 0Modified 1
Diff view
Rows update as you type.
Change 1 / 2
function greet() {
return "Hello";
}
 
function greet() {
return "hello";
}
 

FAQ

What is a Diff tool used for?

A Diff tool is used to compare two pieces of text and quickly identify differences such as added, removed, or modified content. It is commonly used for code comparison, configuration files, log analysis, and text version tracking.

What does the ignore whitespace option do?

This option treats all whitespace differences (including spaces, tabs, and line breaks) as identical. If two lines differ only in whitespace, they will be considered equal and no difference will be shown.

What does the ignore case option do?

When enabled, the tool ignores letter case during comparison. For example, 'Hello' and 'hello' will be treated as the same text.

How does this diff tool work?

The tool compares text line by line and identifies equal, added, removed, and modified lines. All processing happens directly in your browser without uploading files or using a server.

Why are both sides highlighted in some lines?

When a line is detected as modified, both the left and right versions are highlighted to clearly show the difference between the original and updated content.

Can I use this tool to compare code files?

Yes. It is suitable for comparing code, configuration files, logs, and any plain text content that requires line-by-line comparison.

Will different line endings (CRLF / LF) affect the result?

No. The tool automatically normalizes line endings (CRLF and LF), so differences caused by operating systems will not affect the comparison result.

Is my data private and secure?

All text processing is done locally in your browser. No content is uploaded, stored, or sent to any server.