📗 CSV 转 Excel(XLSX)CSV to Excel Converter
把 CSV/TSV 文本或文件转换为 Excel .xlsx:自动识别分隔符和编码(UTF-8/GBK),数字保存为数值、保留前导零(如 007、邮编)为文本,可设工作表名和冻结首行。本地转换不上传。Convert CSV or TSV text or files to an Excel .xlsx: delimiter and encoding (UTF-8 / GBK) are detected, numbers are stored as numbers while leading zeros (007, ZIP codes) stay as text, with a sheet name and frozen header row. Converted locally, never uploaded.
使用说明与常见问题How-to & FAQ
「CSV 转 Excel(XLSX)」是什么?What is the CSV to Excel Converter tool?
把 CSV/TSV 文本或文件转换为 Excel .xlsx:自动识别分隔符和编码(UTF-8/GBK),数字保存为数值、保留前导零(如 007、邮编)为文本,可设工作表名和冻结首行。本地转换不上传。Convert CSV or TSV text or files to an Excel .xlsx: delimiter and encoding (UTF-8 / GBK) are detected, numbers are stored as numbers while leading zeros (007, ZIP codes) stay as text, with a sheet name and frozen header row. Converted locally, never uploaded.
如何使用「CSV 转 Excel(XLSX)」?How do I use the CSV to Excel Converter tool?
在「CSV 转 Excel(XLSX)」中,按需设置「分隔符」、「工作表名」、「文件名」等选项,然后点击「转换并下载」按钮即可。支持拖放文件。In the CSV to Excel Converter: Set "Delimiter", "Sheet name", "File name", then click "Convert & download". Drag-and-drop files is supported.
为什么不直接用 Excel 打开 CSV?Why not just open the CSV in Excel?
Excel 直接打开 CSV 时常见三个问题:UTF-8 中文变乱码、邮编和编号的前导零被去掉(02134 → 2134)、长数字变成科学计数法。本工具在转换时保留前导零和超过 15 位的数字为文本,并正确处理中文编码。Opening a CSV directly in Excel often garbles UTF-8 Chinese, drops leading zeros from ZIP codes and IDs (02134 → 2134) and turns long numbers into scientific notation. This tool keeps leading zeros and numbers longer than 15 digits as text and handles Chinese encodings correctly.
文件编码怎么识别?How is the file encoding detected?
带 BOM 的 UTF-8、UTF-16LE、UTF-16BE 直接识别;否则先按 UTF-8 严格解码,失败时按 GBK 解码(中文 Windows 和 Excel 导出的 CSV 常用 GBK),GBK 也解不了时按 Windows-1252(西欧)解码,并在下方提示用了哪种编码。分隔符按前 50 行哪种分隔方式列数最一致来识别,识别错了请手动选择。“数字转为数值”只转换普通数字和科学计数法(如 1E5,会提示数量):带前导零、带 + 号、超过 15 位或超出 Excel 范围(如 1e400)的值保存为文本,TRUE/FALSE 转为逻辑值。UTF-8, UTF-16LE and UTF-16BE with a BOM are recognised directly. Otherwise the file is decoded as strict UTF-8, then GBK (common for CSVs exported by Chinese Windows and Excel), then Windows-1252 (Western European), with a notice saying which was used. The delimiter is the one that gives the most consistent column count over the first 50 lines; choose it yourself if it is wrong. 'Store numbers as numbers' converts plain numbers and scientific notation (such as 1E5, with a count in the notice); values with leading zeros, a + sign, more than 15 digits or outside Excel's range (such as 1e400) stay as text, and TRUE/FALSE become logical values.
有大小限制吗?Is there a size limit?
文件最大 50 MB,且不能超过 Excel 的上限 1,048,576 行、16,384 列。转换在浏览器内完成,使用 SheetJS(Apache-2.0 许可)。Files up to 50 MB, within Excel's limits of 1,048,576 rows and 16,384 columns. Conversion runs in your browser using SheetJS (Apache-2.0).
代码或数据会被上传吗?Is my code or data uploaded?
不会。「CSV 转 Excel(XLSX)」完全用 JavaScript 在本地运行,适合处理含有密钥、内部接口等敏感内容的数据。No. The CSV to Excel Converter runs entirely in local JavaScript, so it is safe for data containing keys or internal endpoints.
「CSV 转 Excel(XLSX)」免费吗?需要注册吗?Is the CSV to Excel Converter free? Do I need an account?
「CSV 转 Excel(XLSX)」完全免费,无需注册或安装,打开网页即可使用,手机和电脑都能用;输入的内容只在你的浏览器本地处理。The CSV to Excel Converter is completely free with no sign-up or install and works on phones and desktops; what you enter is processed only in your browser.