Skip to content

URL Encode & Decode

Encode special characters so they are safe in a URL or query parameter, or decode a percent-encoded link to read it.

Runs in your browser. Nothing you enter is uploaded or stored.

How to use URL Encode & Decode

  1. Paste text or an encoded URL.
  2. Click Encode or Decode.
  3. Copy the result.

Questions

Which encoding does this use?

It uses encodeURIComponent, which encodes everything except letters, digits and - _ . ! ~ * ' ( ).

Why does decoding fail?

Decoding fails when a % sign is not followed by two hex digits, for example "100%" in plain text.