对 URL 和文本进行百分号编码,或将其解码回可读形式。
URL encoding, also called percent-encoding, replaces characters that are unsafe in a URL with a percent sign followed by two hexadecimal digits. A space becomes %20, an accent becomes two byte values, and reserved characters like & and = can be escaped when they should not appear literally.
This tool encodes and decodes text locally in your browser. It is handy for building query strings, checking what a mangled link really says, or decoding a value someone sent you.
Encode a search term
输入
hello world输出
hello%20worldEncode accents and symbols
输入
são paulo & café输出
s%C3%A3o%20paulo%20%26%20caf%C3%A9ã is UTF-8 bytes C3 A3 and é is C3 A9, so each byte becomes its own %XX triplet.
Decode an encoded value
输入
release%20v2%20%2F%20notes输出
release v2 / notes%20 is a space and %2F is a forward slash.
Full URL mode leaves reserved characters such as /, ?, and & in place so the structure of the link survives. Component mode escapes them, which is what you want for values inside a query string.
%20 works in every part of a URL. The + shortcut only means space in form submissions, so %20 is the safer choice.
Decoding only turns percent sequences back into characters, but the result is still just text. Treat it as untrusted input wherever you would treat any external string.
No. Encoding and decoding run in your browser, and nothing you paste is uploaded or stored.