How to encode URL parameters
Encode a parameter value so spaces and ampersands do not break a link. Use whole-URL mode only when you want to keep structural separators.
Steps
Paste the input into the form and choose a mode if one is offered. Check the result before copying or saving it.
Example
a & b → a%20%26%20ba+b → a%2BbWhat to check
Encode the value of a parameter, not the finished query string. An ampersand inside a value must not become a parameter separator; avoid encoding it twice.
Common tasks and examples
Start with a small sample. Compare the structure before and after a format conversion, or check that only the intended characters changed in a text operation.
a&b → a%26ba b → a%20b%23 → #
Task reference
- Encode component
- Settings: Input: a+b · What to expect: a%2Bb
- Encode component
- Settings: Input: a&b · What to expect: a%26b
- Decode component
- Settings: Input: a%20b · What to expect: a b
- Encode URL
- Settings: Input: https://example.com/a b · What to expect: https://example.com/a%20b
- Decode URL
- Settings: Input: https://example.com/a%20b · What to expect: https://example.com/a b