URL Encode Decode Calculator
Free url encode decode calculator with a clear formula and instant result
Enter text
Free url encode decode calculator with a clear formula and instant result
Enter text
Percent-encode a query value or decode a URL component locally.
Percent-encoding replaces characters that carry a reserved meaning in a URL, or that cannot be transmitted safely, with a percent sign followed by two hexadecimal digits. A space becomes %20, and symbols such as ampersand, equals and question mark must be encoded when they are part of a value rather than part of the URL structure. Unreserved letters, digits, hyphen, underscore, dot and tilde are left untouched.
There is an important difference between encoding a single query value and encoding a complete URL. Encoding an entire URL also encodes its separators, which breaks the structure. Use component mode for one parameter value, and if a full URL has to be embedded inside another one, encode it as a value so its own separators survive. Decoding reverses the percent escapes, including multi-byte UTF-8 sequences, which appear as several consecutive escapes rather than one.
在浏览器本地完成 URL 参数编码和解码。
百分号编码会把在 URL 中有保留含义、或无法安全传输的字符替换为百分号加两位十六进制数。空格变成 %20;与号、等号、问号等符号在作为取值而非 URL 结构的一部分时也必须编码。非保留字符(字母、数字以及连字符、下划线、点和波浪号)保持原样。
编码单个查询取值与编码完整 URL 有重要差别。编码整条 URL 会连分隔符一起编码,从而破坏结构。单个参数请用组件模式;若要把一条完整 URL 嵌入另一条 URL,应把它当作取值来编码,这样它自身的分隔符才能保持完整。解码会还原百分号转义,包括多字节 UTF-8 序列——它们表现为连续多个转义而非一个。
It is a percent-encoded space. A space cannot appear literally in a URL, so it is written as the escape sequence %20.
UTF-8 encodes it as multiple bytes, and each byte becomes one percent escape, so a single character can take three or more.
Usually not, because encoding everything escapes the separators too. Encode individual parameter values instead.
No. Encoding and decoding both run locally in your browser.
Last reviewed: October 5, 2026 · How we calculate · Sources: Published formula reference; verify domain-specific assumptions before making a decision
最近复核:2026 年 10 月 5 日 · 我们的计算方法 · 来源:公式用于参考;涉及专业决定时请核对适用条件