URL编码/解码
encodeURIComponent 级别的转义与还原。
关于「URL编码/解码」
它属于「编码加密」分类:常见编码、哈希与转义,全部在本地计算。
- 对 URL 中的中文、空格与特殊字符进行百分号转义,便于放入链接。
- encodeURIComponent 会编码更多保留字符(如 & = ?),适合编码参数值。
- 处理在本地完成,内容不会上传。
完全免费、无需注册;所有处理都在浏览器本地完成,文件不会上传到任何服务器。
相关关键词:URL编码/解码、编码加密、url、urlencode、转义、在线工具、免费
如何使用「URL编码/解码」
- 打开工具:打开「URL编码/解码」页面,无需注册、无需安装任何软件。
- 准备输入:粘贴网址或参数串,进行 encodeURIComponent 级别的转义与还原。
- 填入内容:把内容粘贴进输入框,或把文件拖入页面;也可以点击「示例」先填入样例数据试一下。
- 设置选项并处理:按需调整页面上的选项,然后点击处理 / 转换 / 生成按钮。
- 获取结果:处理完全在浏览器本地完成,结果可直接复制或下载,文件不会上传到任何服务器。
常见问题
- 编码后还有 & 号?
- 使用 encodeURI 时 & = / 等会保留,适合编码整段 URL;编码参数值请勾选 component 模式。
- + 号哪里来的?
- 表单提交常把空格转成 +,解码时已自动还原为空格。
URL Encode/Decode
encodeURIComponent-level escaping and unescaping.
About URL Encode/Decode
Belongs to “Encoding & Crypto”: Common encodings, hashes and escaping — all computed locally.
- Percent-escapes Chinese, spaces and special chars in URLs so they can be used in links.
- encodeURIComponent escapes more reserved chars (e.g. & = ?), good for encoding parameter values.
- Processing is done locally; nothing is uploaded.
Free, no sign-up; everything runs locally in your browser and files are never uploaded.
Keywords: URL Encode/Decode, Encoding & Crypto, url, urlencode, escape, online tool, free
How to use URL Encode/Decode
- Open the tool:Open the “URL Encode/Decode” page — no sign-up and nothing to install.
- Prepare the input:Paste a URL or parameter string for encodeURIComponent-level escaping and unescaping.
- Provide the input:Paste your content into the input box or drop a file onto the page; you can also click “Sample” to try example data first.
- Adjust options and run:Adjust the options if needed, then click the process / convert / generate button.
- Get the result:Everything runs locally in your browser; copy or download the result — your files are never uploaded.
FAQ
- Still have & after encoding?
- With encodeURI, & = / are kept — good for a whole URL; to encode a parameter value, use component mode.
- Where does + come from?
- Form submits often turn spaces into +; decoding auto-restores them to spaces.