Compares two HTML snippets, ignoring inter-tag whitespace.
HTML Diff compares two HTML snippets and highlights what changed between them. It normalizes inter-tag whitespace before comparing, so differences in indentation or spacing between tags don't show up as noise, then reports the added and removed lines. It's handy when you need to spot the real difference between two pieces of markup quickly.
No. HTML Diff runs entirely in your browser; both snippets are compared locally in JavaScript and nothing is uploaded or stored on any server.
Before comparing, it normalizes the markup by replacing whitespace between a closing '>' and an opening '<' with a line break. This means spacing and indentation between tags is ignored, so only meaningful differences are shown.
It compares line by line after normalization, marking whole lines as added or removed. Differences inside a single line are reported as a replaced line rather than character-level highlights.
No. It treats the input as plain text for diffing purposes and does not parse, validate, or correct your HTML; malformed markup is compared as-is.
No. Only whitespace strictly between a closing tag and an opening tag is collapsed. Spacing within text content or inside attribute values is preserved and will count as a difference.