URL Encoder / Decoder
Percent-encode and decode URLs or parameters, with correct handling of Chinese text.
Component mode suits parameter values; turn it off for a whole URL
How to use
- Paste a URL or a query parameter into the input box.
- Click Encode or Decode; component mode is on by default and can be switched off.
- 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.