Conversion Tools100% Client-Side

Swap Two Columns by Delimiter

Swap two field positions in a text table without rotating the whole grid. Enter the delimiter and the numbers of the columns you want to exchange. Those cells trade places on every row, including the first, so the headings follow their values. Use this when an importer expects a pair of fields in the opposite order and the rest of the table already fits.

Configuration Options
Input
16 chars•2 lines
Output

How to Use the Swap Delimited Columns Online

  1. 1Paste the delimited text with its headings when available. Confirm the same separator is used across the rows you need.
  2. 2Set Delimiter and count both positions from the left. Enter the numbers under First Column and Second Column.
  3. 3Compare a regular row and any short row with the original. A missing cell can be treated as an empty value when swapped.
  4. 4Copy the reordered table and check the two new field positions in the destination’s import preview.

Input & Output Examples

Set Delimiter to pipe, First Column to 1, and Second Column to 3. Count stays in the middle.

Input Sample
name|count|zone
Tea|3|North
Expected Output
zone|count|name
North|3|Tea

Set Delimiter to semicolon and swap positions 2 and 3. The missing reading becomes an empty field before the time.

Input Sample
station;time;reading
River;09;4
Lake;10
Expected Output
station;reading;time
River;4;09
Lake;;10

Practical Developer Workflows

  • Correct two reversed fields in a legacy export before sending it to a position-based importer.
  • Move a label ahead of an identifier in a small report when one pair needs to change order.
  • Create a reordered test fixture to verify that a reader maps values according to the supplied header.

Zero Server Uploads & Complete Privacy

Runs 100% in your browser; no data is uploaded to any server.

Notice a bug, calculation error, or outdated info?

Let us know directly so our engineering team can fix it.

Frequently Asked Questions

Yes. Enter the two one-based field positions regardless of the distance between them. Other field positions keep their existing order, so the swap is different from moving one column and shifting all columns in between.

Explore Other Tools

12 suggested tools

View all tools