🔗 CSV URL 编码(编码单元格)URL-Encode CSV
对 CSV/TSV 指定列(或全部)做 URL 编码(百分号编码),空格可编码为 %20 或 +,适合生成查询参数或导出给 Web 接口。URL-encode (percent-encode) chosen CSV/TSV columns (or all of them). Spaces can become %20 or + — handy for query parameters or web APIs.
使用说明与常见问题How-to & FAQ
「CSV URL 编码(编码单元格)」是什么?What is the URL-Encode CSV tool?
对 CSV/TSV 指定列(或全部)做 URL 编码(百分号编码),空格可编码为 %20 或 +,适合生成查询参数或导出给 Web 接口。URL-encode (percent-encode) chosen CSV/TSV columns (or all of them). Spaces can become %20 or + — handy for query parameters or web APIs.
如何使用「CSV URL 编码(编码单元格)」?How do I use the URL-Encode CSV tool?
在「CSV URL 编码(编码单元格)」中,把内容粘贴或输入到上方输入框,按需设置「列(留空 = 全部)」,结果会实时显示在下方,点击「复制结果」即可复制。Paste your CSV and, if needed, list the columns to encode (leave it blank to encode every column). Tick "Encode spaces as +" for form-style encoding. Click "Copy result" to copy the encoded CSV.
%20 和 + 有什么区别?What is the URL-Encode CSV tool?
路径和一般 URL 用 %20;application/x-www-form-urlencoded 表单用 + 表示空格。按目标接口选择。Paths and general URLs use %20; application/x-www-form-urlencoded forms use + for a space. Match the API you target.
和“URL 解码 CSV”怎么配合?How does this pair with URL-Decode CSV?
编码后传给接口,回来的数据可用解码工具还原。Encode before sending to an API; decode the response with URL-Decode CSV.
输入和输出是什么样的?What does the input and output look like?
例如在「CSV URL 编码(编码单元格)」中输入 a,b ⏎ hello world,x,「列(留空 = 全部)」设为 1,输出为:a,b ⏎ hello%20world,x(⏎ 表示换行)。With "Columns (blank = all)" set to 1, the input a,b ⏎ hello world,x becomes a,b ⏎ hello%20world,x (⏎ marks a line break).
有哪些选项可以调整?What options can I adjust?
「CSV URL 编码(编码单元格)」的设置:「列(留空 = 全部)」可留空;可勾选:「空格编码为 +(application/x-www-form-urlencoded)」、「第一行是表头」(默认勾选)、「也编码表头」。改动任一选项后结果会按新设置重新生成。You can adjust "Columns (blank = all)" (optional); and the "Encode spaces as + (form encoding)", "First row is a header" (on by default) and "Also encode the header" checkboxes. The result updates as soon as you change a setting.
行长度不一致(有的行字段多、有的行字段少)时会怎样?What happens when rows have different numbers of fields?
不会凭空补字段,也不会删掉字段:操作只作用于每行实际存在的字段,每行保持自己原来的长度。比如某行没有要处理的那一列,这一行就原样保留。检测到这种行时,结果下方会有一行提示说明有几行。需要统一列数时,请用“CSV 补齐不完整行”。No fields are invented or dropped: the operation only touches the fields each row actually has, and every row keeps its own length. If a row does not have the column being changed, that row is left as it is. When such rows are found, a one-line note below the result says how many. To give every row the same number of fields, use Fill Incomplete CSV Records.
代码或数据会被上传吗?Is my code or data uploaded?
不会。「CSV URL 编码(编码单元格)」完全用 JavaScript 在本地运行,适合处理含有密钥、内部接口等敏感内容的数据。No. The URL-Encode CSV tool runs entirely in local JavaScript, so it is safe for data containing keys or internal endpoints.
「CSV URL 编码(编码单元格)」免费吗?需要注册吗?Is the URL-Encode CSV tool free? Do I need an account?
「CSV URL 编码(编码单元格)」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The URL-Encode CSV tool is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.