Simple records
Exchange two numbered fields across a delimited list.
Swap two columns in delimited text by choosing a delimiter and two column numbers
Swap two numbered columns of a consistently delimited text table.
Exchange two numbered fields across a delimited list.
Reorder two columns without changing their values.
Keep rows that lack either requested field unchanged.
Column numbering starts at one.
Choose a literal Delimiter and the first and second column numbers. On rows that contain both fields, their values exchange places and the row is joined with the same delimiter. Rows missing either requested column are left unchanged.
Choose the options before applying the transformation.
Column separator: initially ",". First column: initially 1. Accepted range: 1 to 10000. Second column: initially 2. Accepted range: 1 to 10000.
A short input makes the transformation easier to inspect.
This example was checked with the current tool. The options shown apply only to this example; your editor keeps the settings you select.
Ada,London,42 Lin,Paris,37
London,Ada,42 Paris,Lin,37
Upload a text file, write directly, or try the sample.
The entry screen accepts one UTF-8 TXT, CSV, JSON, XML, HTML or HTM file and opens the editor. Imports are text content, not a PDF or Word conversion. Review the source and choose Swap Text Columns when ready. Editing or importing alone does not apply the transformation.
Check the report before saving or continuing with the text.
Result overview displays the table after the swap, with Rows, Columns and Rows with missing columns. Check the missing-column count: a row without either requested field stays unchanged. Select TXT for the editable text or CSV for the full table, then use the download icon. Editing the result hides the table and disables CSV until you rerun the tool; TXT and copy still use your edits. Continue to offers compatible next tools for the current text and their limits. Review the transferred text before running the next operation.
Maximum input and editable TXT result: 1 MB of UTF-8 text, with a 1,048,576-character input ceiling. Expanding transformations must also fit the TXT result limit. CSV files can be larger because they include column headings, quoting and separators. The table shows 50 rows per page and at most 12 columns. Long cells are shortened after 160 Unicode code points on screen; CSV retains all rows, columns and complete values.
This text operation runs in your browser; its source and result are not sent for conversion. A draft may be kept in this browser tab when session storage is available. Clear removes the current draft; download important work before closing the tab.
See the Privacy Policy for file and data handling.
No. This tool processes text in your browser. Text-file imports and downloads stay on your device.
Yes. The result remains editable. Copy it or download a UTF-8 .txt file from the result page.
Text input and generated output are limited to 1 MB to keep your browser responsive. Split larger documents into smaller parts.
QUICK VIDEO TUTORIAL
Swap two text columns
Swap two text columns
English narration
Watch the video