urltoolskit.org
URL utilities, in the browser
Say hi →

URL diff

side-by-side compare two URLs · colour-coded per part

Spot the difference between two URLs: protocol, host, path, each query param, fragment. Ignores parameter order by default.

Ready.

How to use

  1. Paste URL A on the left, URL B on the right.
  2. Each URL piece is shown in its own row, colour-coded: green = same, red = different, yellow = only on one side.
  3. Ignore order toggles whether ?a=1&b=2 and ?b=2&a=1 count as different (default: off — order ignored).
  4. Ignore case toggles case-sensitivity for host and path.
  5. The Summary at the bottom states in one sentence what's different ("Same path. 1 parameter added: utm_source").

When to use this

FAQ

Why is "fragment" red between two URLs that look the same?

One has a trailing # with no fragment, the other has no #. WHATWG normalizes them to the same thing, but the raw strings differ.

How does ignore-order handle duplicated keys?

Each (key, value) pair is compared — if A has ?a=1&a=2 and B has ?a=2&a=1, those compare equal. If B only has ?a=1, the second a=2 is reported missing.

Does it diff the fragment too?

Yes — fragments are reported, but they never travel to the server, so most apps treat URLs with different fragments as equivalent.

Anything sent to a server?

No. Diff runs entirely client-side.