TextToTable
Free • No Login • 100% In-Browser Privacy

Turn TXT & Messy Text Into a Clean Excel Table

Paste text, upload a .txt file, or drop any data. We format it into clean columns you can copy directly into Excel or Google Sheets.

Input Text
Supports tabs, commas, pipes, semicolons, and space-aligned columns
Paste your text above, then click Convert to preview your table

100% In-Browser Privacy

Your data never leaves your computer. No servers, no uploads, no cloud retention. Safe for confidential and financial records.

Instant Column Separation

Automatically identifies tabs, commas, pipes, semicolons, and spaces. Copies to clipboard formatted for instant Excel paste.

Fully Editable Table

Fix cells, remove messy rows, trim extra spaces, and rename headers directly in the interactive preview before exporting.

How Text to Excel Conversion Actually Works

Converting raw text into a spreadsheet is a common everyday task. You might have exported a database report, copied data from an email or PDF invoice, or saved records in a plain text file. The information is all there, but it's sitting in a raw text stream instead of spreadsheet cells.

For instance, you might have a simple list like this:

Input: Copied Plain Text

John,25,Lahore
Sarah,28,Karachi
Ali,31,Islamabad

Desired Result in Excel

NameAgeCity
John25Lahore
Sarah28Karachi
Ali31Islamabad

When you paste this into TextToTable, the parser tests candidate delimiters (tabs, commas, semicolons, pipes, and multiple spaces). It notes that every line has exactly 2 commas separating 3 values. It builds the 3-column table and puts tab-separated values (TSV) on your clipboard so when you switch to Excel and press Ctrl+V, Excel distributes the items into columns A, B, and C instead of dumping the whole line into column A.


Why Pasted Text Lands in a Single Column in Excel

If you have ever copied data and pressed Ctrl+V directly inside Microsoft Excel, you have probably experienced everything landing inside Column A.

This happens because Excel's clipboard parser only splits into new columns when it encounters a tab character (\t). If your data uses commas, spaces, or pipes, Excel ignores them during a paste and treats each entire row as a single string. TextToTable translates whatever separator your text uses into standard clipboard tabs so Excel splits it instantly.

Looking for specific formats?

Learn more in our dedicated guides: read how to process raw TXT files to Excel, format Notepad documents into spreadsheets, or export cleanly using our Text to CSV converter.


Common Scenarios: When Do You Need a Text to Excel Converter?

Text conversion is essential across dozens of daily workplace workflows:

  1. Copying Web Tables & Dashboards: Modern web applications frequently render data using flexbox or CSS grids instead of HTML <table> elements. Copying this text strips the layout, leaving you with an unaligned block of values.
  2. PDF Document Extractions: When copying tabular financial summaries, bank statements, or invoices out of PDF viewers, cell boundaries disappear and values collapse into space-separated lines.
  3. Legacy System & SQL Dumps: Older enterprise software, command-line interfaces, and terminal utilities often export data as pipe-delimited tables or fixed-width reports.
  4. Windows Notepad Files: Log files, inventory lists, and customer registries saved in Notepad often require column restructuring before they can be analyzed using Excel formulas or pivot tables.

TXT vs. CSV vs. TSV: Understanding the Differences

Understanding how plain text files store tabular information helps you select the best export format for your project:

FormatSeparatorBest Used ForExcel Paste Behavior
TSV (Tab-Separated)Tab (\t)Immediate paste into Excel & Google SheetsSplits into columns instantly
CSV (Comma-Separated)Comma (,)Permanent data files, databases, APIsDumps into Column A unless imported as file
TXT (Plain Text)Any / Spaces / PipesHuman reading, notes, system logsSingle column without prior conversion

Because TSV is the native clipboard delimiter recognized by spreadsheet software, TextToTable's primary "Copy to Excel" action formats your output as clean TSV. This eliminates the need to run Excel's multi-step import wizard for daily copy-paste tasks.


How to Paste Your Converted Data Into Excel or Google Sheets

Once TextToTable generates your table, transferring the clean data takes just three steps:

  1. Click the black "Copy to Excel" button above. The button confirms with "Copied! Paste it into Excel or Google Sheets."
  2. Open your target spreadsheet application (Microsoft Excel, Google Sheets, LibreOffice Calc, or Apple Numbers).
  3. Select the upper-left cell where you want your table to begin (typically A1), and press Ctrl+V (or Cmd+V on macOS).

Your data immediately populates across individual rows and columns with headers highlighted and values intact.


When Automatic Detection Might Struggle (And What to Do)

We do not promise magical, flawless conversion for every piece of messy text. Real-world text data often contains human errors, inconsistent spacing, and mixed delimiters. Here is what to expect when automatic detection encounters tricky inputs:

Commas inside unquoted text (like addresses or titles)

If a field contains a comma—such as Acme Corp, LLC or Apt 4, 123 Main St—without quotation marks, the parser treats that comma as a column separator. This shifts subsequent columns to the right. Fix: Click the cells directly in the preview to edit or merge values, or wrap the field in double quotes before parsing.

Inconsistent rows and varying column counts

When some lines contain 3 values while others contain 4, TextToTable alerts you with a yellow warning banner and pads shorter rows with empty cells so your grid stays intact. You can click any cell to supply missing values or remove empty cells before exporting.

Space-aligned text with irregular gaps

If columns were lined up manually using the space bar in a text editor, single spaces within values (like New York) must be preserved while multi-space gaps (2 or more spaces) separate columns. If the gap between two columns is only a single space, the tool treats it as one cell. Fix: Switch the delimiter mode to "Multiple spaces" or add an extra space in the input box.

Unstructured narrative prose

TextToTable is designed for records that repeat across rows. Freeform prose, paragraphs of text, or random notes without repeating patterns cannot be converted into meaningful columns by any tool without manual reformatting.

Comparing with Excel's native tools:

For a step-by-step breakdown of how Excel's built-in import tools work, explore our in-depth tutorial on how to open a TXT file in Excel using the Text Import Wizard.

Frequently Asked Questions

Clear answers to common questions about converting text, TXT files, and messy data into Excel.

How do I convert a TXT file to Excel?

Upload your .txt file or paste its contents into TextToTable. The tool detects whether your columns are separated by tabs, commas, pipes, or spaces. Once the table preview appears, click 'Copy to Excel' and paste (Ctrl+V) directly into your spreadsheet, or click 'Download XLSX' to save an Excel file.

How do I convert a text file to Excel?

Copy the text from your document (Ctrl+A then Ctrl+C) and paste it into the converter. TextToTable recognizes column boundaries automatically. Click 'Copy to Excel' to paste the structured table directly into Microsoft Excel or Google Sheets.

How do I convert a Notepad file to Excel?

Notepad files are plain .txt files. You can drag and drop your Notepad file directly onto TextToTable or copy the text from Notepad and paste it here. If your Notepad text used the space bar for visual alignment, the tool's 'Multiple spaces' mode will detect the columns so you can copy them into Excel cleanly.

Can I convert TXT to XLSX?

Yes. Once you paste or upload your TXT data into TextToTable, click 'Download XLSX'. The tool generates a standard Microsoft Excel (.xlsx) workbook directly inside your browser without needing Microsoft Office installed.

Can I convert TXT to CSV?

Yes. Paste your TXT file into TextToTable, then click 'Download CSV' or 'Copy CSV'. The converter formats your data following the standard RFC 4180 CSV specifications, properly quoting commas and special characters.

How do I copy a text file into Excel?

Paste your text into TextToTable and click 'Copy to Excel'. This formats your data as Tab-Separated Values (TSV) on your clipboard. When you switch to Excel and press Ctrl+V (or Cmd+V on Mac), Excel automatically splits the values into individual columns instead of dumping everything into Column A.

Why does my TXT file appear in one column in Excel?

When you paste raw text into Excel, Excel only splits text into columns if the values are separated by tab characters. If your TXT file uses commas, spaces, or semicolons, Excel pastes each row as a single text string into Column A. TextToTable solves this by converting your delimiters into tab-separated values before you paste.

How do I split text into columns in Excel?

In Excel, you can use the 'Text to Columns' feature under the Data tab. However, a faster way is to paste your text into TextToTable first, let it auto-detect your columns, and click 'Copy to Excel'. When you paste into Excel, the columns are already split perfectly.

Can I convert messy text into a table?

Yes. TextToTable is designed specifically for messy text. It handles irregular space alignment, blank rows, trailing spaces, numbers with commas ($1,250.00), and quoted values. You can also edit cells directly and remove empty rows or columns before exporting.

Can I copy a table from a PDF into Excel?

Yes. When you copy a table from a PDF, the cell borders are usually lost, resulting in space-separated text. Paste that copied PDF text into TextToTable. The tool detects the column alignment and reconstructs the table grid so you can paste it into Excel with columns preserved.

Can I convert text to an Excel table without uploading it?

Yes. TextToTable processes everything locally in your browser using JavaScript. You never upload files to a server, and your text never leaves your device. You can even use the tool offline once the page has loaded.

Is this TXT to Excel converter free?

Yes, TextToTable is 100% free to use. There are no subscriptions, no account sign-ups, no daily conversion limits, and no watermarks.

Do I need to install software?

No. TextToTable runs entirely in your web browser (Chrome, Safari, Edge, Firefox). You do not need to install browser extensions, desktop software, or Microsoft Office.

Does this tool work on mobile?

Yes. TextToTable is fully mobile-responsive. You can paste text on your phone or tablet, preview the table with horizontal scrolling, and copy or download the spreadsheet to your device.

Is my data uploaded to a server?

No. Unlike other online converters that upload files to cloud servers for conversion, TextToTable runs 100% in your browser. Your data stays on your machine, making it completely private and safe for financial, confidential, or personal information.