Calculator Need
Categories

URL Encoder / Decoder

Encode or decode URLs and query strings.

Runs entirely in your browser. Nothing you paste or upload leaves your device.

How to use the URL encoder / decoder

  1. Paste a URL or text, or press “Sample”.
  2. Choose “Encode component”, “Encode full URL” or “Decode”.
  3. Press “Convert”, then copy the result. “Parse query string” breaks a URL's ?a=1&b=2 into its parts.

URL encoder / decoder example

The text a b&c=d/é becomes a%20b%26c%3Dd%2F%C3%A9 when encoded as a URL component, so it can be sent as a single query parameter value.

Tips for using the URL encoder / decoder

  • Encode each parameter value separately, not the whole URL.
  • Spaces become %20 (or + in HTML form submissions).
  • Non-English characters such as Urdu are encoded as their UTF-8 bytes.

URL encoder / decoder: common questions

What is the difference between encoding a component and a full URL?
Encoding a component escapes everything, including / and ?. Encoding a full URL keeps the structure (://, /, ?, &) and escapes only the characters that are not allowed.
Why encode a URL at all?
Spaces and characters such as & and = have special meanings in a URL. Encoding turns them into % codes so the link works as intended.
Is my input uploaded?
No. Encoding and decoding happen in your browser.
Why does my link break when shared?
Unencoded &, #, ? or spaces in a value can split the URL. Encode the value and try again.