Compare two pieces of text locally, distinguish additions and deletions, and retain differences in spaces, tabs, and line breaks. Supports swapping sides, blank examples, and variation quantity summaries without uploading or creating sharing links.
Spaces, tabs, and newlines are all included in the comparison. Maximum 30,000 characters per side; stops with too many differences or timeout. The ↵ / ␍ in the result are newline markers.
13 / 30,000 characters
Shortcut key: Ctrl/⌘+Enter. Modifying inputs or options clears old results.
Word-by-word mode also preserves whitespace; it does not ignore whitespace and compare.
One side may have a trailing newline and the other may not; it may also use LF and CRLF respectively. ↵ represents LF and ␍ represents CR.
Counting is based on JavaScript string length, not change line count or visual word count. Some emojis take up two or more UTF-16 units. Maximum 30,000 characters per side.
Use jsdiff to compare two strings by line or word and differentiate between new, deleted, and retained segments. The results reflect textual differences and do not determine whether two pieces of code or configuration have the same business meaning.
Content check:2026-09-08 · About this site and content description