URL Encode / Decode
private · runs in your browser
~ $ devkit:url-encode

URL Encode / Decode

Encode or decode URL components and whole URLs. Whole URL mode leaves structural characters like :/?# untouched.

Input
Output

How to use URL Encode / Decode

  1. Paste text and choose Component for a query parameter value, or Whole URL to preserve URL delimiters.
  2. Choose Encode or Decode, then copy the output. Swap moves the result back to the input.

Example

Component input: hello world & café
Encoded: hello%20world%20%26%20caf%C3%A9

Details and limitations

Component mode uses encodeURIComponent/decodeURIComponent. Whole URL mode uses encodeURI/decodeURI and preserves reserved delimiters. This is percent encoding, not HTML form encoding: a plus sign is not decoded as a space.