Text compare

Edit, pick a content type and see differences in real time.

← Back

Compare versions of code, JSON, XML, HTML, CSS, JavaScript, YAML, SQL or plain text in two panels with syntax highlighting. Ideal for reviewing commits, validating configs, checking API responses or verifying whether two files are identical.

Pick a content type for the right syntax colors and switch between line-by-line or word-by-word comparison. The summary shows how many lines were added or removed; the diff panel highlights changes with colors.

Everything runs locally in your browser — your text is never sent to servers. Use it for quick reviews, debugging and data validation without installing external tools.

Frequently asked questions

Which content types are supported?

Plain text, JSON, XML, HTML, CSS, JavaScript, YAML, SQL and Markdown. Syntax highlighting adapts to the selected type.

How does line vs. word comparison work?

Lines show whole blocks added or removed — useful for code and files. Words highlight pinpoint changes within lines — useful for text and documents.

Is my text sent to a server?

No. Editing, syntax highlighting and diffing happen entirely in your browser.

Can I swap the texts?

Yes. Use the swap button to invert text A and text B without copying manually.