43 chars · 1 line
80 chars · 5 lines
43 chars · 1 line
80 chars · 5 lines
Query builder percent encoding
URLSearchParams applies application/x-www-form-urlencoded serialization when VetaTool builds the query. Reserved & and = characters are percent-encoded, while spaces are emitted as + in both names and values. This tool is free to use. No account or payment is required.
Last updated
A literal & inside a value must not start a new parameter, and a literal = must not become a structural separator. URLSearchParams percent-encodes those characters automatically.
Spaces use + under form-style query serialization, which Parse mode later decodes back to spaces.
The generated query safely encodes delimiters and spaces.
{"a&b":"x=y & z","space key":"hello world"}a%26b=x%3Dy+%26+z&space+key=hello+worldCommon questions
URLSearchParams uses form-url-encoded query serialization, where spaces are represented by +.
A raw ampersand separates parameters, so a data ampersand must be encoded.
Yes. Keys and values both go through URLSearchParams serialization.
Debugging a specific Query String issue? Browse Query String troubleshooting.