DEV NO.003
URL Encoder / Decoder
Tame %20-style escapes with component and full-URI encoding modes.
This tool runs entirely in your browser. Nothing is uploaded to any server.
Input
Output
What is this
什么是 URL 编码
当 URL 中出现空格、中文或 & 等特殊字符时,需要转义为 %XX 形式才能安全传输。本工具支持参数级与整条 URL 级两种编码模式,双向转换。
What is URL encoding
Spaces, non-ASCII text and reserved characters must be escaped as %XX sequences to travel safely in URLs. This tool offers component-level and full-URI-level modes in both directions.
如何使用
- 粘贴文本或 URL。
- 选择模式:编码参数值用「组件」,编码整条 URL 用「URI」。
- 复制结果。
FAQ
encodeURIComponent vs encodeURI?
The component mode also escapes reserved characters like : / ? & = — use it for single parameter values. The URI mode keeps URL structure intact — use it for a whole URL.
Should spaces be %20 or +?
Standard percent-encoding uses %20; + is a form-encoding convention. Modern APIs generally accept %20.