文字与文档工具

CSV交换列

CSV交换列;输入、输出与参数范围在实施前细化。

优先本地处理无需注册隐私说明 ↗
No file selected

UTF-8 CSV up to 10 MB. Quoted fields may contain commas and line breaks.

Enter two different 1-based column positions.

使用步骤

如何使用

  1. Choose a CSV file or paste comma-separated text.
  2. Enter the two 1-based column numbers to exchange.
  3. Review, copy, or download the reordered CSV.

CSV-aware column exchange

Quoted commas, escaped double quotes, and line breaks inside fields are parsed as part of the field. Only the selected positions are exchanged; every other cell stays in its original position.

Predictable boundaries

Column numbers are 1-based and must exist in every row. Rows with different field counts are rejected so the result does not silently move data into the wrong column.

Local and private

Reading, parsing, swapping, previewing, copying, and downloading happen in your browser. Files are limited to 10 MB and the preview is limited to 100,000 characters.

常见问题

你可能还想知道

Does this upload my CSV?

No. The CSV is read and transformed locally in your browser.

Which column numbers should I enter?

Use the positions from left to right, starting at 1. For example, enter 1 and 3 to swap the first and third columns.

Are quoted commas and line breaks supported?

Yes. Standard double-quoted CSV fields, escaped quotes, and embedded line breaks are preserved.

Can I swap a column with itself?

No. Enter two different existing column numbers.