Encode a URL Parameter Without Breaking a Full Link
Start with the task you actually need to finish
- Debugging why a query parameter with special characters is not matching in an application.
- Reading an unfamiliar, heavily encoded URL to see its real content.
- Encoding user-entered search terms before adding them to a link.
A practical check before you begin
Encoding hello world as a parameter gives hello%20world. Encoding an entire https:// address also escapes its colon and slashes, which is useful when that whole URL becomes another parameter—not when you need a directly navigable address.
Follow the workflow and review the result
- Choose Encode or Decode mode depending on your task.
- Paste the URL, query string or plain text you want to convert.
- Read the converted result shown instantly in the output box.
- Click Copy to copy the encoded or decoded text to your clipboard.
- Switch modes and paste the result back in if you need to verify the round trip.
Why URLs contain codes like %20
URLs are restricted to a limited set of ASCII characters, so anything outside that set — spaces, ampersands, non-Latin letters — must be represented using percent-encoding. %20 represents a space, %26 an ampersand, and %3F a question mark, allowing those characters to safely appear inside a URL without breaking its structure.
When you need to encode a URL
Encode whenever user input, search terms or non-English text is being placed into a query parameter or path segment, since unencoded special characters can break the URL structure or be interpreted incorrectly by the server. Static, hand-typed URLs with only letters and numbers typically need no encoding at all.
Avoiding double-encoding
Encoding an already-encoded string turns % itself into %25, producing a broken, double-encoded URL. If a decoded result still contains percent signs followed by two-digit codes, run the decode step again, or check the original source for accidental repeated encoding.
Limits worth knowing before you rely on the output
Double encoding changes percent signs to %25. Component encoding and whole-URL handling are different tasks.