URL Encoder / Decoder

Encode or decode URLs and query string parameters.

100% freeNo sign-upInstant results

How to use the URL Encoder / Decoder

  1. 1Paste text or a URL.
  2. 2Choose Encode or Decode.
  3. 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.

Frequently asked questions

encodeURI keeps characters like / ? & = intact for full URLs; encodeURIComponent encodes them, which is right for individual parameter values.

No. This tool runs entirely in your browser using JavaScript. Your input never leaves your device, which makes it safe for confidential content.

In component mode, the decoder replaces plus signs with spaces before applying percent-decoding. This accommodates query values written using form-style encoding. A literal plus must therefore appear as %2B to survive this conversion. Full URL mode does not perform that preliminary plus-to-space replacement.

The sequence %25 represents a percent sign. It commonly appears when an already encoded value is encoded again, so %20 becomes %2520. Check what the receiving application expects before decoding repeatedly: nested parameters can legitimately require another encoding layer, while ordinary parameter values usually do not.

Related tools