URL Encoder / Decoder

Free URL encoder and decoder: percent-encode or decode a full URL or a single query value, with spaces as %20 or +, and see each part of the link.

Direction
Component mode also encodes / ? & = and is right for a single parameter value.

Everything happens in your browser. Nothing is uploaded.

Percent-encode and decode URLs the right way

URLs may only contain a limited set of characters. Spaces, accented letters, and characters with special meaning such as &, = and ? must be written as percent codes like %20 before they go into a link, a query string or an API call. Decoding does the reverse, turning Caf%C3%A9%20au%20lait back into “Café au lait”. This tool does both, and it knows the difference between encoding a whole URL and encoding one value inside it.

How to use it

  1. Pick a Direction: Encode or Decode.
  2. Paste into Text or URL.
  3. Choose the Mode. Component (query value, path part) encodes everything that is not a plain letter, digit or -_.~, which is right for a single parameter value. Full URL (keeps : / ? & =) leaves the structure of a complete address intact.
  4. Tick Spaces as + (form encoding) if the target expects HTML-form style encoding.
  5. Copy the Result. Use result as input lets you reverse the step to check it. For full URLs, the URL parts table splits protocol, host, path, each parameter and the fragment.

Why the mode matters: an example

Suppose a search link should look for “coffee & tea”. Encoding the whole address https://example.com/search?q=coffee & tea in Full URL mode gives ...?q=coffee%20&%20tea: the spaces are fixed, but the & stays, so the server sees a parameter q=coffee followed by a second, nameless parameter. Instead, encode only the value in Component mode: “coffee & tea” becomes coffee%20%26%20tea (or coffee+%26+tea with the + option), and the query arrives intact.

Details handled for you

  • Non-ASCII text is encoded as UTF-8: “ç” becomes %C3%A7.
  • Component mode also encodes !'()*, as RFC 3986 recommends, which some older functions skip.
  • Broken sequences such as %E or %ZZ produce a clear error instead of silently wrong output.

Turning a title into a clean path segment rather than an encoded one? Slug Generator is the better tool. For binary data in a URL, combine this with Base64 Encode/Decode in URL-safe mode.

Frequently asked questions

What is the difference between %20 and +?

Both can mean a space, but + only does so in form-encoded query strings. In paths and most APIs, %20 is the safe choice.

Why do I see %25 in my URL?

%25 is an encoded percent sign, a sign that text was encoded twice. Decode once and check the result.

Do I need to encode Turkish or Chinese characters?

Browsers display them in the address bar, but they send them encoded. When building URLs in code or emails, encode them to be safe.

Is this the same as JavaScript’s encodeURIComponent?

Component mode follows it, plus the RFC 3986 characters. Full URL mode is similar to encodeURI.

Is my input sent anywhere?

No. Encoding and decoding run in your browser.