Tools84

TEXT TOOLS, MADE SIMPLE

Swap Text Columns

Swap two columns in delimited text by choosing a delimiter and two column numbers

Runs in your browser Free to use Editable results
or drop your text file here

Advertisements
BlogHow to swap two columns in plain text Read the guide

Exchange two fields in every row

Swap two numbered columns of a consistently delimited text table.

Source text, a reviewed result and a reusable copy
QUICK VIDEO TUTORIAL Swap two text columns Swap two text columns English narration Watch the video

Swap two text columns

Practical ways to use this tool

Everyday work

Simple records

Exchange two numbered fields across a delimited list.

Focused tasks

Layout changes

Reorder two columns without changing their values.

Text preparation

Incomplete rows

Keep rows that lack either requested field unchanged.

Features and how to use them

Select the two column positions

Column numbering starts at one.

How this transformation works

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.

Set the available controls

Choose the options before applying the transformation.

Options and initial settings

Column separator: initially ",". First column: initially 1. Accepted range: 1 to 10000. Second column: initially 2. Accepted range: 1 to 10000.

See a small example

A short input makes the transformation easier to inspect.

View input, options and result

This example was checked with the current tool. The options shown apply only to this example; your editor keeps the settings you select.

Input
Ada,London,42
Lin,Paris,37
Result
London,Ada,42
Paris,Lin,37

Column separator: initially ",".; First column: initially 1. Accepted range: 1 to 10000.; Second column: initially 2. Accepted range: 1 to 10000.

Start with your own text

Upload a text file, write directly, or try the sample.

Opening and applying the tool

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.

Review, save or continue

Check the report before saving or continuing with the text.

Using the finished 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.

Files, limits and privacy

Input
Pasted text or one UTF-8 TXT, CSV, JSON, XML, HTML or HTM file
Output
Editable text, UTF-8 TXT and a complete CSV table

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.

FAQ

Good to know

Does Swap Text Columns send my text to a server?

No. This tool processes text in your browser. Text-file imports and downloads stay on your device.

Can I edit and download the result?

Yes. The result remains editable. Copy it or download a UTF-8 .txt file from the result page.

How much text can I process?

Text input and generated output are limited to 1 MB to keep your browser responsive. Split larger documents into smaller parts.

Advertisements

Language38

English العربية Français Italiano Deutsch Español Português Nederlands Русский Türkçe 日本語 中文 हिन्दी Bahasa Indonesia Bahasa Melayu 한국어 Tiếng Việt ไทย Polski Svenska Українська Norsk বাংলা Ελληνικά فارسی اردو Čeština Dansk Magyar Română Suomi Български Filipino ქართული Slovenčina Azərbaycanca עברית Slovenščina

Choose from 38 interface languages.