텍스트
Text Diff
두 텍스트를 줄 단위로 비교 — 추가, 삭제, 변경된 내용을 표시하며, 변경된 줄은 단어 수준으로 강조 표시.
Text Diff compares two texts line by line and shows what was added, removed, or changed, with word-level highlighting inside changed lines — much like git diff, but without a command line.
How to use it
- Paste the original text into one field and the changed version into the other.
- The result immediately highlights added lines, removed lines, and the words that changed within shared lines.
- Handy for scanning large texts — jump straight to the first differences instead of searching manually.
Common uses
- Comparing two versions of a document, article, or config file without installing git.
- Checking exactly what changed in a text after an editor or an automatic formatter touched it.
- Comparing API responses or logs between two runs.
Things to keep in mind
By default a whitespace-only change (like indentation) still counts as a difference, since it technically changes the line's content.
The diff compares lines by position, so adding or removing a single line near the top can shift how the rest of the text lines up.
자주 묻는 질문
비교는 줄 단위인가요, 문자 단위인가요?
기본적으로 줄 단위로 비교하며, 변경된 것으로 판단된 줄 안에서는 어느 단어가 바뀌었는지 단어 수준으로 강조 표시합니다.
추가·삭제·변경은 어떻게 구분되나요?
원본에는 없고 변경본에만 있는 줄은 추가, 원본에만 있던 줄은 삭제, 같은 위치에서 내용 일부만 달라진 줄은 변경으로 표시됩니다.
붙여넣은 텍스트가 서버에 저장되나요?
아니요. 비교 작업은 브라우저 안에서 자바스크립트로 전부 처리되며 텍스트는 어디에도 업로드되지 않습니다.
한 줄을 삽입했을 뿐인데 왜 이후 줄이 전부 변경된 것으로 표시되나요?
알고리즘이 그것이 삽입인지 대량 교체인지 항상 정확히 구분하지는 못합니다 — 특히 주변 줄들이 서로 비슷할 때 그렇습니다. 좋은 diff 알고리즘은 최장 공통 부분열을 찾아 이런 오탐을 최소화하려 하지만 항상 완벽하지는 않습니다.
비교할 때 공백도 반영되나요?
네, 기본적으로 공백(예: 들여쓰기)만 바뀐 경우에도 차이점으로 표시됩니다. 기술적으로는 그것도 줄 내용의 변경이기 때문입니다.