01 / Example
Example
Research & DevelopmentResearch%20%26%20DevelopmentText & code / MULTIVERTO
Percent-encode a query value, path segment or other URL component using UTF-8.
Apply each text tool to the previous result. Text workflows ↗
Only the recipe name and tool order are saved in this browser. Your input and results are never saved.
01 / Example
Research & DevelopmentResearch%20%26%20Development02 / Guide
Use this tool for a query parameter value, a path segment or another value that will be inserted into a URL. Entering a phrase with a space yields %20 where the space stood; an ampersand inside the value becomes %26 rather than starting a second query parameter. A non-ASCII character is first encoded as UTF-8 and then represented by one or more percent triplets. This keeps the value distinct from the punctuation that joins URL components.
Build the surrounding URL separately. If you paste a complete address here, its colons, slashes, question mark and equals signs may be escaped, so the result is no longer that same navigable address. For a search URL, construct the base address and parameter name first, encode the value once, and insert it in the appropriate place. Many programming libraries provide URLSearchParams or equivalent builders that manage this step. Avoid encoding an already encoded value again unless the receiving system explicitly requires a nested layer.
A URL is made of structural separators and values. The slash separates path segments, the question mark begins a query, and the ampersand separates query parameters. When one value contains a space, an ampersand or a non-ASCII character, percent encoding prevents that value from being mistaken for URL structure. The text is first represented as UTF-8 bytes; bytes requiring escaping appear as a percent sign followed by two hexadecimal digits. A space commonly becomes %20, while an accented character usually takes several encoded bytes.
Build the surrounding address before inserting the encoded value. This converter is appropriate for one component; an application should supply the separators between a path, query name and query value itself. Inspect the assembled URL to confirm that an ampersand from the input stays inside its value rather than starting another parameter. If the destination creates URLs automatically, pass it the unencoded value unless its API specifically asks for a pre-encoded component. Encoding an already encoded value changes the percent signs and can make the receiver decode the wrong text. Test the receiving route with a value containing both a space and punctuation. Prepare a single query value containing a space, ampersand or accented character before assembling a URL. Compare the final address in a URL parser: its parameter count should remain unchanged by punctuation inside the value. Encoding the whole address would hide separators needed for routing, so pass individual values to the URL-building API. The page example turns “Research & Development” into “Research%20%26%20Development”.
Explore guides