Skip to content

URL Encode / Decode

Encode text for safe use in a URL, or decode a percent-encoded URL string back to plain text.

About the URL Encode / Decode

Percent-encode text so it's safe to use inside a URL, or decode a percent-encoded URL string back to plain text.

How the URL Encode / Decode works

URLs can only contain a limited set of characters safely — spaces, &, ?, #, and many others have special meaning or aren't allowed at all. URL encoding replaces each unsafe character with a "%" followed by its hex code (a space becomes %20, for example) so the text can be passed as a query parameter or path segment without breaking the URL.

How to use the URL Encode / Decode

  1. Choose Encode or Decode.
  2. Paste or type your text.
  3. Press Convert to see the result.

Tips for the URL Encode / Decode

  • Decoding an already-plain string is safe and simply returns it unchanged; decoding a malformed percent-encoded string will show an error instead of a wrong result.

Example: URL Encode / Decode

Encoding "hello world & more?" for use in a URL

  • Mode: Encode
  • Text: hello world & more?

Result: hello%20world%20%26%20more%3F

Each unsafe character is replaced with "%" plus its hex code: space → %20, "&" → %26, "?" → %3F.