Encode a query value
Scenario: The value summer sale & deals is prepared for a query parameter.
Result: The component becomes summer%20sale%20%26%20deals.
Spaces and the ampersand are encoded so they cannot be mistaken for URL query structure.
💻 Developer Tools
Encode text for URL components or decode percent-encoded values.
Encode characters for safe use in a URL component or decode percent-encoded text back to a readable string.
Percent-encode text for use in a URL component or decode percent-encoded sequences for inspection. The tool focuses on components, because encoding an entire URL can incorrectly hide structural separators.
Input stays in the browser and is not sent to Fieldlet. Do not treat a formatting, encoding, test, or generated value as a substitute for security review.
Last reviewed for accuracy:
Scenario: The value summer sale & deals is prepared for a query parameter.
Result: The component becomes summer%20sale%20%26%20deals.
Spaces and the ampersand are encoded so they cannot be mistaken for URL query structure.
Encoding converts UTF-8 text into percent-escaped bytes where required by URL-component rules. Decoding reverses valid percent sequences and reports malformed escapes.
A query value must not be allowed to introduce its own ampersand, equals sign, or fragment marker. Encoding the value separately protects those boundaries while leaving the URL's deliberate separators readable to the parser.
These primary references document standards or definitions used in the explanation above.
It uses URL-component encoding, which is best for query values and individual URL parts rather than blindly encoding an entire URL structure.
Usually no. Encode individual path segments or query values so characters such as colon, slash, question mark, equals, and ampersand can retain their structural roles.