URL 编解码

encodeURI / encodeURIComponent

本地计算 · 不上传
URL 编解码
输入

输出

区别:encodeURIComponent 会编码 / ? : @ & = + # 等分隔符,适合编码参数值; encodeURI 保留这些字符,适合编码整条 URL。