URL Encode / Decode
Escape text safely for use inside a URL, or decode it back.
What this tool does
URLs can only contain certain characters. This tool converts text into a URL-safe form — turning spaces and symbols into percent-coded sequences — so you can build links and query strings that actually work.
How to use this tool
- 1
Choose the direction
Encode for putting a value into a URL; decode to read one that is already escaped.
- 2
Paste the value
Encode the value of a parameter, not a whole address.
- 3
Copy the escaped text
Paste it after the equals sign in your query string.
When to use it
- You are building a link with a query value that contains spaces or special characters.
- You need to safely pass a piece of text as a URL parameter.
- You are debugging a broken link where characters were not escaped properly.
- You want to decode a percent-coded URL back into readable text.
How to understand this tool
Characters that have a meaning in a URL, such as ? & = / and the space, are replaced by a percent sign and two hexadecimal digits. Space becomes %20 (or + in form data). If you encode a complete URL you also encode the colon and slashes, which turns the address into one long value and breaks it.
What it will not do
- It cannot guess which characters are safe for your specific server.
- It does not encode for use inside a JSON string, which needs its own escaping.
Questions people ask
Why did my space become %20?
Spaces are not allowed in URLs, so they are written as the percent-coded value %20.
Should I encode the whole URL?
Usually only the parts that carry data, like query values — encoding the slashes and colons will break the link.
One thing worth knowing
Encoding is not encryption. It changes representation, not confidentiality — never use it to hide sensitive data.