Skip to content
AllCalcHub

URL Encoder & Decoder

Percent-encode text for use in a URL, or decode an encoded URL.

About the URL Encoder & Decoder

Choose encode or decode, and whether you're encoding a single value (component) or a whole URL. The tool converts the text using UTF-8 percent-encoding.

URLs can only contain a limited set of ASCII characters. Others, including spaces, &, ?, / inside values and non-English letters, are written as % followed by hex bytes of their UTF-8 encoding. Encode each query value separately; encoding a whole URL leaves its structural characters (: / ? &) alone.

The formula

Each unsafe byte → %HH

Worked example

Encoding the value “name=Zoë & friends/2026?”

  1. = becomes %3D, space %20, & %26, / %2F, ? %3F
  2. ë becomes %C3%AB (two UTF-8 bytes)

Questions people ask

Is a space %20 or +?

%20 in paths; + is used for spaces only in form-encoded query strings.

Why is ö two codes?

It's two bytes in UTF-8: %C3%B6.