🔗 URL字符串编解码工具
在线URL编码解码转换器,支持encodeURI和encodeURIComponent两种模式,快速处理URL特殊字符
选择编码模式
输入文本
0 字符
输出结果
0 字符
📚 encodeURI vs encodeURIComponent
encodeURI 保留完整URI结构,不编码:字母数字、; , / ? : @ & = + $ - _ . ! ~ * ' ( ) #encodeURIComponent 编码所有特殊字符,包括:; , / ? : @ & = + $ #
💡 使用场景
encodeURI: 编码完整URL路径
encodeURIComponent: 编码URL参数值、查询字符串、JSON数据等
encodeURIComponent: 编码URL参数值、查询字符串、JSON数据等
复制成功!