URL Encoder & Decoder

Encode text for safe use in URLs and query strings, or decode percent-encoded URLs back to readable text. Paste a full URL to break it into protocol, host, path and query parameters.

Free · No sign-up Developer Utilities

How to use the URL Encoder & Decoder

  1. Choose Encode or Decode.
  2. Select “Component” for query values or “Full URL” to keep URL structure.
  3. Paste your text and copy the result.
  4. Use the URL inspector to see query parameters.

Examples

name=Jane Doe&city=Zürich encoded as a component becomes name%3DJane%20Doe%26city%3DZ%C3%BCrich.

How it works

Percent-encoding replaces unsafe characters with % followed by two hexadecimal digits of each UTF-8 byte. “Component” mode (encodeURIComponent) also encodes reserved characters like & = ? /, which is what you want for individual query values; “Full URL” mode (encodeURI) leaves them intact.

Frequently asked questions

When should I URL-encode?
Whenever you put user input, spaces or special characters into a URL, especially in query string values.
Why do spaces sometimes appear as + signs?
HTML form submissions encode spaces as +. Standard percent-encoding uses %20. The decoder can treat + as a space when that option is ticked.

Related guides