// DEV / URL-CODEC

URL 编解码URL Encode / Decode

对 URL 组件或完整链接进行百分号编码与还原。Percent-encode and decode URL components or full links.

URL 组件会把 & / ? = 等分隔符也转义,适合拼接查询参数的值;完整链接只转义非法字符,保留链接结构。Component scope escapes separators like & / ? =, which suits query values. Full URL keeps the link structure intact.

结果Result

常见问题FAQ

URL 编码和编码整个链接有什么区别?What is the difference between component encoding and full URL encoding?

本工具的“组件编码”对应 encodeURIComponent,会转义 / ? & = 等分隔符,适合处理单个参数值;“整体编码”对应 encodeURI,保留链接结构,适合处理整条 URL。Component encoding behaves like encodeURIComponent and escapes separators such as / ? & =, which suits a single parameter value. Full encoding behaves like encodeURI and keeps the URL structure intact.

同类工具Related tools

所有计算都在你的浏览器本地完成,输入内容不会上传到任何服务器。Everything runs locally in your browser. Nothing you type is ever uploaded to a server.