Formatters workflow · Practical guide
Encode a URL parameter without breaking the address
Build a query-value example, distinguish plus signs from spaces, diagnose double encoding and recover from malformed percent escapes.
Uvar solutions Pvt Ltd · Updated 24 October 2026
Open URL Encoder & Decoder →1. Separate the address from its parameter value
Use this tool when a single query parameter or path component contains spaces, ampersands or other reserved characters. Start with the literal value, not the whole address. Encoding a complete address also encodes its colon and slashes. The example address below is illustrative; the tool does not contact it or check whether the destination accepts a parameter named q.
2. Build and check one query value
Paste Hello world & tools, select Encode and compare the result character for character with the encoded value below. Put that value after q=. Encoding the ampersand inside the value prevents it from being mistaken for a separator between two query parameters.
Value: Hello world & tools
Encoded: Hello%20world%20%26%20tools
Example address: https://example.com/search?q=Hello%20world%20%26%20tools3. Distinguish a literal plus sign from a space
This decoder uses URL-component decoding. It does not apply the plus-as-space rule used by application/x-www-form-urlencoded. Decode a+b and you get a+b. Decode a%2Bb and you also get a+b. Decode a%20b and you get a b. If an API expects form data, use its form encoder rather than assuming all URL encoding conventions are interchangeable.
a+b → a+b
a%2Bb → a+b
a%20b → a b4. Identify double encoding before trying to fix it
Encoding Hello%20world treats the percent sign as literal input, producing Hello%2520world. That can be correct if you intentionally nest an encoded URL inside another parameter. Otherwise, return to the unencoded source and encode once. Do not repeatedly decode until text looks familiar: downstream software may interpret newly exposed separators differently.
5. Recover from an invalid escape sequence
A percent escape needs two hexadecimal digits. A lone % or %2 is incomplete. Even complete escapes can fail when their bytes do not form valid UTF-8, such as %FF. Check the original source and encoding instead of deleting percent signs. Decoding is not a security check: the result can still contain an unsafe URL or malicious text.
6. Test the round trip and the receiving application
Encode a small value, decode the encoded result and compare it with the source. Then test the complete address in the application you control. Keep passwords, private tokens and personal data out of query strings, which can be recorded in browser history or server logs. This tool formats text locally; it does not inspect a destination, validate a link or grant access to it.
Try the workflow
Start with a small example and check the result before using your own data.
Open URL Encoder & Decoder →