Press⌘+Kto search
IP: 获取中...
为效率而生, Just tools.goodssoft.com
URL 编码器
将 URL 或文本进行百分比编码,确保 URL 在网络传输中安全可靠
输入内容
编码选项
常见编码参考
空格 → %20
! → %21
" → %22
# → %23
$ → %24
% → %25
& → %26
+ → %2B
/ → %2F
? → %3F
= → %3D
编码结果
编码结果将显示在这里
URL 编码使用场景
何时需要 URL 编码:
- URL 参数传递
- 表单数据提交
- HTTP 请求头
- Cookie 值
- 文件名包含特殊字符
不需要编码的字符:
A-Z a-z 0-9 - _ . ! ~ * ' ( ) ; , : @编码示例
1. 搜索参数
原始:
search?q=hello world&lang=en编码后:
search%3Fq%3Dhello%20world%26lang%3Den2. 包含空格的 URL
原始:
https://example.com/api/data?name=John Doe编码后:
https://example.com/api/data?name=John%20Doe3. 特殊字符处理
原始:
price=$100&discount=20%编码后:
price%3D%24100%26discount%3D20%25