URL Encoder / Decoder

URL Encoder / Decoder

Encode or decode URL components and query strings. All processing is done in your browser.

About the URL Encoder / Decoder

URLs can only contain a limited set of ASCII characters. Spaces, accented letters, emoji and characters with special meaning in URLs — ?, &, =, #, / — must be percent-encoded when they appear inside a value, as a % followed by two hex digits for each UTF-8 byte. A space becomes %20 and é becomes %C3%A9.

This tool encodes text as a URL component (the same as JavaScript's encodeURIComponent) and decodes percent-encoded strings back to readable text. It is the quickest way to build safe query-string values or to read the parameters buried in a long redirect or tracking URL.

Common uses

  • Encoding a search term, email address or JSON value to use as a query parameter.
  • Decoding redirect_uri, returnUrl or UTM parameters to see where a link really goes.
  • Reading encoded paths and parameters in server access logs.
  • Debugging OAuth flows, where URLs are often encoded inside other URLs.

How to use it

  1. Paste the text or encoded URL into the Input box.
  2. Press Encode or Decode.
  3. Copy or save the result.

Example

Encoding a value that contains spaces and reserved characters:

Input
name=Zoë & friends/2026
Output
name%3DZo%C3%AB%20%26%20friends%2F2026

Tips and common pitfalls

  • Encode each parameter value, not the whole URL. Encoding a full URL also encodes :// and /, which breaks it.
  • In HTML form submissions (application/x-www-form-urlencoded) a space is written as +. In other parts of a URL, + is a literal plus sign, so encode it as %2B if you mean "plus".
  • Double encoding (%2520 instead of %20) happens when an already-encoded value is encoded again; decode twice to recover it, and fix the code that encodes twice.
  • In code, use your platform's URL builder (URLSearchParams, Uri.EscapeDataString, urllib.parse.urlencode) instead of concatenating strings.

Frequently asked questions

What is the difference between encodeURI and encodeURIComponent?

encodeURI is for a complete URL and leaves reserved characters such as / ? & = alone. encodeURIComponent encodes them too, which is what you need for a single parameter value. This tool uses encodeURIComponent.

Why do I get a "URI malformed" error when decoding?

The input contains a % that is not followed by a valid two-digit hex code, or the bytes do not form valid UTF-8. A literal percent sign must be written as %25.

Is URL encoding the same as Base64?

No. URL encoding only replaces unsafe characters and leaves the rest readable. Base64 transforms all data into a different alphabet. JWTs use a URL-safe Base64 variant so they can appear in URLs without percent-encoding.

Is my input sent anywhere?

No. Encoding and decoding run entirely in your browser.

Related