工具大全 ToolBox — 免费在线工具箱
200+ 免费在线工具,纯前端本地运行,数据不上传服务器。
i关于本工具
用途说明
URL 编码把空格、中文与保留字符转成 %XX,避免破坏查询串。本页按 encodeURIComponent 语义在本地转换。
使用步骤
- 粘贴原始字符串。
- 编码得到可用于参数的结果。
- 拼到 query 或 path。
- 还原请用 URL 解码。
常见问题
和 encodeURI 有何区别?
encodeURIComponent 更适合单个参数值,会编码 &、=、? 等。
空格是 %20 还是 +?
本工具输出 %20;表单里常见 +,服务端通常都接受。
会请求外网吗?
不会,纯本地转换。
上文已说明该工具是本地处理还是会调用第三方接口,请按场景选用。
What it is for
URL encoding escapes spaces, CJK, and reserved characters. Uses encodeURIComponent semantics locally.
How to use
- Paste the raw string.
- Encode and copy.
- Append to a query or path.
- Use URL decode to reverse.
FAQ
encodeURI vs encodeURIComponent?
Component is better for a single parameter value.
Space as %20 or +?
This tool outputs %20; forms often use +.
Any network call?
No—fully local.
Processing notes above describe whether work stays in your browser or calls third-party APIs.
404
工具不存在或链接有误。