How to use the URL Encoder / Decoder
- 1Paste text or a URL.
- 2Choose Encode or Decode.
- 3Copy the result.
About the URL Encoder / Decoder
URLs can only contain a limited set of characters. Spaces, accents and symbols must be percent-encoded to be transmitted safely.
Choose component encoding for query values or full-URL encoding to keep the structure intact. A parsed view breaks the URL into its parts.
When to use the URL Encoder / Decoder
Sending search terms through query parameters
A search phrase containing an ampersand can accidentally become two query parameters if you insert it directly into a URL. Encode the phrase in component mode before adding it as a parameter value. This keeps punctuation and spaces inside the value instead of letting them change the structure of your request.
Investigating unreadable links in request logs
Request logs often contain percent-encoded paths and query values that are difficult to recognize at a glance. Decode the relevant value to inspect the original text, or paste an absolute URL to see its breakdown. Check the protocol, host, path, and parameters separately before deciding whether the link points where you expected.
Preparing complete links for documentation examples
When a documentation example includes a complete address with spaces or accented characters, full URL mode preserves structural separators while encoding characters that need escaping. Review the resulting address before publishing it. If a query value itself contains reserved punctuation, encode that value separately rather than relying on full URL mode.
Tips and best practices
- Encode original values once. Encoding an already escaped value turns percent signs into %25, which can cause a receiving application to interpret different text than intended.
- Component decoding treats plus signs as spaces. Encode a literal plus as %2B when it belongs in a parameter value, such as an address or mathematical expression.
- Use the URL breakdown to inspect the host before following an unfamiliar link. Percent-decoding improves readability, but it does not establish that a destination is trustworthy.
- A malformed escape can stop decoding entirely. Check that every percent sign begins a complete escape and that encoded byte sequences represent valid UTF-8 text.