Query-value boundary lab · Updated November 21, 2026
Encode an Equals Sign in a URL Query Value
The first equals sign separates a query key from its value; later equals signs can be data. Encode an equals sign as %3D when it belongs inside the value.
Separator or data
| Wire form | Decoded value | What can go wrong |
|---|---|---|
token=a=b | Often a=b after the first split | Some parsers split every equals sign. |
token=a%3Db | One value: a=b | The inner equals is explicit data. |
token=a%3Db%3Dc | One value: a=b=c | All inner separators survive decoding. |
Measured output
Run date: November 21, 2026. Node.js v24.19.0: encodeURIComponent("a=b=c") = a%3Db%3Dc. PHP 8.5.12: rawurlencode("a=b=c") = a%3Db%3Dc.
Input: a=b=c | URLSearchParams wire value: a%3Db%3Dc | Decoded: a=b=c
Download the reproducible fixture CSV
Common failure
Do not split a raw query on every equals sign. Split the pair at the first separator, then percent-decode the value.
FAQ
Can an unencoded equals sign be data?
Some parsers preserve later equals signs, but that is a parser behavior. Encoding the data makes the intent explicit.
Does encoding change the value?
After correct decoding, the value is still the same equals character; only its wire form changes.
For repeated keys and empty values, see Query Parameters. For general component encoding, use the URL Encode tool.