18 chars · 1 line
36 chars · 4 lines
18 chars · 1 line
36 chars · 4 lines
Empty query value behavior
The query name= contains a key and an explicitly empty value. That is different from omitting name entirely, so the parser preserves it as the JSON string "". This tool is free to use. No account or payment is required.
Last updated
URLSearchParams exposes parameter values as strings. An explicit empty value therefore becomes an empty string, not null or undefined.
Build Query follows the same practical mapping: JSON null is serialized as an empty parameter value because a query string has no native null data type.
The key is preserved and its value remains empty.
?name=&active=true{
"name": "",
"active": "true"
}Common questions
No. name= explicitly includes the key with an empty value.
No. Parse mode returns query values as strings or arrays of strings.
It serializes null as an empty value for that parameter.
Debugging a specific Query String issue? Browse Query String troubleshooting.