URL编码"/path/to/page?id=1&sort=asc"

Original

/path/to/page?id=1&sort=asc

URL编码结果

%2Fpath%2Fto%2Fpage%3Fid%3D1%26sort%3Dasc

"/path/to/page?id=1&sort=asc"的URL编码是:%2Fpath%2Fto%2Fpage%3Fid%3D1%26sort%3Dasc

常见URL编码字符

CharacterEncodedName
%20空格
/%2F斜杠
?%3F问号
=%3D等号
&%26与号
@%40@符号
#%23井号
+%2B加号
%%25百分号

URL编码工作原理

URL编码(百分号编码)将不安全字符替换为%加两位十六进制数。"/path/to/page?id=1&sort=asc"变为"%2Fpath%2Fto%2Fpage%3Fid%3D1%26sort%3Dasc"。

使用URL编码器

Loading tool...