URL Encoder / Decoder

Percent-encode and decode URLs or parameters, with correct handling of Chinese text.

Runs in your browser Developer Tools

Component mode suits parameter values; turn it off for a whole URL

How to use

  1. Paste a URL or a query parameter into the input box.
  2. Click Encode or Decode; component mode is on by default and can be switched off.
  3. Copy the result with one click — failed decoding shows a clear error.

Frequently asked questions

What is the difference between component mode and whole-URL mode?
Component mode (encodeURIComponent) escapes reserved characters such as : / ? & = and suits query parameter values. Turning it off uses encodeURI, which keeps URL structure characters and suits a complete address.
Why must Chinese characters be encoded?
The URL standard allows ASCII only. Chinese characters and emoji must be converted to UTF-8 bytes and then percent-encoded, or some servers and browsers will parse them incorrectly.
Is a space encoded as + or %20?
This tool follows the standard and outputs %20. The + form belongs to application/x-www-form-urlencoded form submissions; the two are not equivalent.

Privacy & data handling

This tool runs entirely in your browser. Text you type and files you choose are never uploaded to a server or saved by ToolNest. Closing the page removes everything.