URL Encoder & Decoder - Percent Encoding Tool
What is a URL encoder/decoder?
A URL encoder/decoder converts characters into percent-encoded form so they travel safely inside links. It also reverses the process, turning encoded strings back into readable text. Use it to fix broken query strings, handle spaces and special characters, or inspect redirects without writing code.
How to use the URL encoder/decoder
- Paste text or a URL: Add the string you need to encode, or paste an encoded URL to decode.
- Choose action: Select Encode to percent-encode or Decode to make it readable.
- Get results: See the output instantly. Copy it or download a text file for logs or code.
Why use this tool?
- Prevent broken links: Encode spaces, symbols, and UTF-8 characters so links stay intact.
- Debug redirects: Decode long redirect URLs to inspect parameters quickly.
- Stay private: Everything runs in your browser; no URLs are stored or sent.
Use case 1: Email and chat links
Encode special characters before sending links through email clients that break on spaces.
Use case 2: API query strings
Encode parameters like JSON snippets before attaching them to GET requests.
Use case 3: Log analysis
Decode logged redirect URLs to read campaign or user identifiers clearly.
Examples
Basic example
Input (encode): https://example.com/search?query=red shoes&size=8
Output: https://example.com/search?query=red%20shoes&size=8
Advanced example
Input (decode): https%3A%2F%2Fshop.com%2F%3Ftag%3Dsummer%26coupon%3Dsave%252010
Output: https://shop.com/?tag=summer&coupon=save%2010
Common errors
Double encoding
If text appears with %2520 instead of %20, it was encoded twice. Decode once, then re-encode correctly.
Wrong character set
This tool uses UTF-8. If characters still look off, ensure the source text is UTF-8 before encoding.
Tips and proven approaches
- Encode only parameter values, not the whole URL, to avoid hiding path separators.
- For forms, trim whitespace before encoding to prevent trailing
%20. - Combine with the Base64 encoder/decoder when embedding binary data in URLs.
Related tools
- Format query payloads with the JSON formatter.
- Clean up config strings using the XML formatter or YAML formatter.
Privacy and security
Encoding and decoding happen locally in your browser. No URLs or text are sent or stored.