★LocalHost Run Under Construction
  • 首页
  • 文章
  • 工具
http://localhost
首页文章工具
全部工具›CSV 工具›将 CSV 转换为 TSV

将 CSV 转换为 TSV

使用下方表单上传您的 CSV 文件,它将自动转换为 TSV 文件。在工具选项中,您可以自定义输入的 CSV 格式——指定字段分隔符、引号和注释符号,以及跳过空的 CSV 行,并选择是否保留 CSV 列标题。

Input text

​

Result

​

工具选项

CSV Format Options

​

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

​

Enter the quote character used to quote the CSV fields.

​

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

Conversion Options

Keep the first row as column names.

Enable to prevent the conversion of empty lines in the input CSV file.

What is a 将 CSV 转换为 TSV?

此工具将逗号分隔值 (CSV) 数据转换为制表符分隔值 (TSV)。CSV 和 TSV 都是用于存储表格数据的常用文件格式,但它们使用不同的分隔符来分隔值——CSV 使用逗号 (


将 CSV 转换为 TSV 示例

点击尝试!

Convert Game Data from the CSV Format to the TSV Format

In this example, we transform a Comma Separated Values (CSV) file containing a leaderboard of gaming data into a Tab Separated Values (TSV) file. The input data shows the players' names, scores, times, and goals. We preserve the CSV column headers by enabling the "Preserve Headers" option and convert all data rows into TSV format. The resulting data is easier to work with as it's organized in neat columns

​
​

CSV Format Options

​

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

​

Enter the quote character used to quote the CSV fields.

​

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

Conversion Options

Keep the first row as column names.

Enable to prevent the conversion of empty lines in the input CSV file.

Mythical Creatures

In this example, we load a CSV file containing coffee varieties and their origins. The file is quite messy, with numerous empty lines and comments, and it is hard to work with. To clean up the file, we specify the comment pattern // in the options, and the program automatically removes the comment lines from the input. Also, the empty lines are automatically removed. Once the file is cleaned up, we transform the five clean rows into five columns, each having a height of two fields.

​
​

CSV Format Options

​

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

​

Enter the quote character used to quote the CSV fields.

​

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

Conversion Options

Keep the first row as column names.

Enable to prevent the conversion of empty lines in the input CSV file.

Convert Fitness Tracker Data from CSV to TSV

In this example, we swap rows and columns in CSV data about team sports, the equipment used, and the number of players. The input has 5 rows and 3 columns and once rows and columns have been swapped, the output has 3 rows and 5 columns. Also notice that in the last data record, for the "Baseball" game, the number of players is missing. To create a fully-filled CSV, we use a custom message "NA", specified in the options, and fill the missing CSV field with this value.

​
​

CSV Format Options

​

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

​

Enter the quote character used to quote the CSV fields.

​

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

Conversion Options

Keep the first row as column names.

Enable to prevent the conversion of empty lines in the input CSV file.


全部 CSV 工具


  • 将 CSV 转换为 JSON — 将 CSV 数据转换为 JSON 格式。
  • 将 CSV 转换为 XML — 将 CSV 数据转换为 XML 格式。
  • 将 CSV 行转换为列 — 将 CSV 行转换为列。
  • 交换 CSV 列 — 重新排序 CSV 列。
  • 将 CSV 转换为 YAML — 快速将 CSV 文件转换为 YAML 文件。
  • 更改 CSV 分隔符 — 更改 CSV 文件分隔符
  • 查找不完整的 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