텍스트 비교
Text Compare (Diff)
두 텍스트를 입력하고 ‘비교’를 누르세요. Enter two texts and press Compare.
텍스트 비교란?
텍스트 비교(diff)는 두 텍스트를 줄 단위로 맞대어, 어느 줄이 추가되고 삭제되었는지 색으로 강조해 보여 주는 도구입니다. 문서의 이전 버전과 새 버전을 붙여넣으면 바뀐 부분을 한눈에 확인할 수 있어, 계약서·기획서 대조나 코드 변경 확인에 유용합니다.
사용 방법
왼쪽 원본 텍스트에 이전 버전을, 오른쪽 비교 텍스트에 새 버전을 붙여넣고 ‘비교’를 누르세요. 결과 카드에 줄별로 녹색(+)=추가, 빨강(−)=삭제, 무색=그대로가 표시됩니다. 모든 처리는 브라우저 안에서만 이루어져 서버로 전송되지 않습니다.
비교 원리 (줄 단위 LCS)
두 텍스트를 줄바꿈 기준으로 나눈 뒤, LCS(최장 공통 부분수열) 동적계획법으로 두 목록의 공통 줄을 최대한 맞춥니다.
- 공통 줄 — 양쪽에 그대로 있는 줄 (무색)
- 삭제 줄 — 원본에만 있는 줄 (− 빨강)
- 추가 줄 — 비교 텍스트에만 있는 줄 (+ 녹색)
개인정보·큰 텍스트
- 서버 전송 없음: 입력한 텍스트는 저장·전송되지 않고 브라우저에서만 처리됩니다.
- 큰 텍스트: 각 입력이 수천 줄 이내면 원활합니다. 매우 큰 텍스트(각 5,000줄 초과)는 비교를 제한하니, 문단·장 단위로 나눠 비교하세요.
What is text compare?
The text compare (diff) tool lines up two texts line by line and highlights which lines were added or removed. Paste an old and a new version to see the changes at a glance — handy for reviewing document edits or code changes.
How to use it
Paste the previous version into Original text and the new version into Text to compare, then press Compare. Each line is shown as green (+) = added, red (−) = removed, or unmarked = unchanged. Everything runs in your browser — nothing is sent to any server.
How it works (line-based LCS)
Both texts are split by line break, then a Longest Common Subsequence dynamic-programming pass aligns as many common lines as possible.
- Common lines — present in both (unmarked)
- Removed lines — only in the original (− red)
- Added lines — only in the compared text (+ green)
Privacy & large text
- No upload: your text is never stored or sent — it stays in your browser.
- Large text: a few thousand lines per box work smoothly. Very large inputs (over 5,000 lines each) are limited, so split by section.
자주 묻는 질문
텍스트 비교(diff)는 어디에 쓰나요?
줄 단위 비교는 어떤 원리인가요?
입력한 텍스트가 서버로 전송되나요?
아주 큰 텍스트도 비교할 수 있나요?
어떻게 활용하면 좋나요?
FAQ
What is text compare (diff) for?
How does line-based comparison work?
Is my text sent to a server?
Can it compare very large texts?
How should I use it?
안내: 본 도구는 텍스트를 줄 단위로 비교하며, 모든 처리는 브라우저 안에서만 이루어져 입력값이 서버로 전송되지 않습니다. 매우 큰 텍스트는 비교가 제한될 수 있습니다.
Note: This tool compares text line by line, entirely in your browser — your input is never sent to a server. Very large texts may be limited.