★LocalHost Run Under Construction
  • 首页
  • 文章
  • 工具
http://localhost
首页文章工具
全部工具›CSV 工具›更改 CSV 分隔符

更改 CSV 分隔符

更改 CSV 文件中的分隔符。在不同的 CSV 格式(例如逗号、分号、制表符或自定义分隔符)之间进行转换。

Input CSV

​

Output CSV

​

工具选项

Adjust CSV input options

​

Enter the character used to delimit columns in the CSV input file.

​

Enter the quote character used to quote the CSV input fields.

​

Enter the character indicating the start of a comment line. Lines starting with this symbol will be skipped.

Remove empty lines from CSV input file.

Output options

​

Enter the character used to delimit columns in the CSV output file.

Wrap all fields of the output CSV file in quotes


更改 CSV 分隔符 示例

点击尝试!

Change the CSV Delimiter to a Semicolon

In this example, we change the column separator to the semicolon separator in a CSV file containing data about countries, their populations, and population densities. As you can see, the input CSV file uses the standard commas as separators. After specifying this delimiter in the source CSV options, we set a new CSV delimiter for the output file to a semicolon, resulting in a new CSV file that now uses semicolons ";" in the output. Such CSV files with semicolons are called SSV files (semicolon-separated values files)

​
​

Adjust CSV input options

​

Enter the character used to delimit columns in the CSV input file.

​

Enter the quote character used to quote the CSV input fields.

​

Enter the character indicating the start of a comment line. Lines starting with this symbol will be skipped.

Remove empty lines from CSV input file.

Output options

​

Enter the character used to delimit columns in the CSV output file.

Wrap all fields of the output CSV file in quotes

Restore a CSV File to the Standard Format

In this example, a data scientist working with flowers was given an unusual CSV file that uses the vertical bar symbol as the field separator (such files are called PSV files – pipe-separated values files). To transform the file back to the standard comma-separated values (CSV) file, in the options, she set the input delimiter to "|" and the new delimiter to ",". She also wrapped the output fields in single quotes, enabled the option to remove empty lines from the input, and discarded comment lines starting with the "#" symbol.

​
​

Adjust CSV input options

​

Enter the character used to delimit columns in the CSV input file.

​

Enter the quote character used to quote the CSV input fields.

​

Enter the character indicating the start of a comment line. Lines starting with this symbol will be skipped.

Remove empty lines from CSV input file.

Output options

​

Enter the character used to delimit columns in the CSV output file.

Wrap all fields of the output CSV file in quotes

​

Enter the quote character used to quote the CSV output fields.

Plants vs. Zombies CSV

In this example, we import CSV data with zombie characters from the game Plants vs. Zombies. The data includes zombies names, the level at which they first appear in the game, their health, damage, and speed. The data follows the standard CSV format, with commas serving as field separators. To change the readability of the file, we replace the usual comma delimiter with a slash symbol, creating a slash-separated values file.

​
​

Adjust CSV input options

​

Enter the character used to delimit columns in the CSV input file.

​

Enter the quote character used to quote the CSV input fields.

​

Enter the character indicating the start of a comment line. Lines starting with this symbol will be skipped.

Remove empty lines from CSV input file.

Output options

​

Enter the character used to delimit columns in the CSV output file.

Wrap all fields of the output CSV file in quotes


全部 CSV 工具


  • 将 CSV 转换为 JSON — 将 CSV 数据转换为 JSON 格式。
  • 将 CSV 转换为 XML — 将 CSV 数据转换为 XML 格式。
  • 将 CSV 行转换为列 — 将 CSV 行转换为列。
  • 将 CSV 转换为 TSV — 将 CSV 数据转换为 TSV 格式。
  • 交换 CSV 列 — 重新排序 CSV 列。
  • 将 CSV 转换为 YAML — 快速将 CSV 文件转换为 YAML 文件。
  • 查找不完整的 CSV 记录 — 快速查找 CSV 中缺少值的行和列。
  • 转置 CSV — 快速转置 CSV 文件。
  • 插入 CSV 列 — 在 CSV 文件中的任何位置快速插入一个或多个新列。
  • TSV 到 JSON — 将 TSV 转换为 JSON 格式

LocalHost Run · 联系我们 · 隐私政策 · 使用条款

© 2026 LocalHost Run · localhost 指南、文章与开发者工具 · localhostrun.com
访客计数: 1025Best viewed in Netscape Navigator · 800×600© LocalHost Run