Simple online tools for developers, networking, text and conversions.

Text Tools

Swap Arbitrary Delimited Columns Examples

Review practical Swap Arbitrary Delimited Columns examples so you can understand expected input, output, and common patterns faster.

Why examples matter for Swap Arbitrary Delimited Columns

Use this tool to swap two selected columns in arbitrary delimited text. It is useful for pipe-separated, semicolon-separated, colon-separated, and other custom-delimited formats when column order needs to be fixed quickly.

Example pages are especially useful for text tools because they show what good input looks like, what kind of output to expect, and how the tool behaves in common scenarios.

Swap Arbitrary Delimited Columns examples

Swap columns by header name

Input

|
name
role

name|email|role
John|john@example.com|admin
Jane|jane@example.com|user

Output

role|email|name
admin|john@example.com|John
user|jane@example.com|Jane

Useful when a custom-delimited export has the wrong column order.

Swap columns by number

Input

;
1
3

id;title;status
1;Book;ok
2;Pen;ok

Output

status;title;id
ok;Book;1
ok;Pen;2

Supports 1-based column positions.

How to use these examples

  1. Put the delimiter on line one
  2. Put the first column selector on line two
  3. Put the second column selector on line three
  4. Leave a blank line
  5. Paste the delimited text below and run the tool

Common mistakes in sample input

Using a column that does not exist

Fix: Check the header row or use a valid 1-based column number.

Using more than one character as the delimiter

Fix: Use a single-character delimiter such as ; | : or ,.

Selecting the same column twice

Fix: Use two different selectors.

Next steps

After reviewing these examples, run the live tool with your own input. If your task involves a follow-up step, the related page can help you move to the next tool in the workflow.

Run the main tool

Open the main Swap Arbitrary Delimited Columns page and test your own real input.

Open Swap Arbitrary Delimited Columns