TXT to Excel Converter Online Free
TXT to Excel Converter
Convert a delimited text (.txt) file into a genuine Excel (.xlsx) workbook. Choose a .txt file from your device, or paste text into the box, pick how the columns are separated, and a real Excel file is built in your browser — a true .xlsx package, written by this page, not a renamed file. Nothing is uploaded to a server.
Columns are separated by:
Scope, stated plainly: each line of text becomes one row, split into cells on the separator you choose (Auto-detect looks at your text and picks the separator that appears most). The workbook has one worksheet with no formulas and no styling. Cells that are clean numbers (like 92 or 3.5) become real Excel numbers you can add up; everything else — dates, percentages, codes with leading zeros, and anything that looks like a formula — stays text, exactly as written. Fields are split simply on the separator; quote-wrapping is not interpreted. Caps: 2 MB of text and 5,000 rows.
Not all tabular data arrives as CSV. Databases export tab-separated text, European Excel saves “CSV” files that are really semicolon-separated, log files and older systems separate fields with pipes — and all of them land on your desk as humble .txt files that a spreadsheet should be able to open, if only the columns would split in the right places. A TXT to Excel converter does that job honestly: it takes a delimited text file from your device, or text pasted into the box, lets you choose the separator — or detects it for you — and builds a genuine Excel .xlsx workbook in your browser, one worksheet, your rows and columns carried across faithfully, with clean numbers stored as real Excel numbers. Nothing is uploaded to a server, and the download is a true .xlsx package, written by this page, not a renamed text file.
The worked example below uses a small tab-separated sample, three lines of five fields each. The header line reads Name, City, Score, Code, Note. The second line is Ali, Lahore, 92, 007, and a cell whose text is “=SUM(C2:C3)” — deliberately, a formula lookalike. The third line is Sara, Multan, 88.5, 042, and the words “Plain text row”. Converted with the separator left on Auto-detect, the tool reports: separator used, tab; 3 rows by 5 columns; 15 cells, of which 2 are stored as numbers and 13 as text; and an Excel file of exactly 3,210 bytes. When that file was validated at build time with a spreadsheet library, it read back exactly: 92 as an integer and 88.5 as a decimal number in the Score column, the codes “007” and “042” preserved as text with their leading zeros alive, and the formula lookalike stored as plain text — visible in the cell, calculating nothing. Small sample, same code path as a five-thousand-row export.
Delimited Text, and Why the Separator Matters
Delimited text is the oldest data interchange format still in daily use: one row per line, fields within a row separated by a character that is not part of the data. Comma gets the fame — it named CSV — but it is not always the wisest choice, which is why the others exist. Tab is the engineer’s favourite because real data almost never contains a tab, so fields need no quoting rules at all; database tools, analytics exports and software logs default to it. Semicolon is the standard across much of Europe, where the comma is the decimal separator in numbers like 3,5 and cannot double as a field separator without chaos; an Excel running under those locales exports and expects semicolons while still calling the file CSV. Pipe — the vertical bar — survives from older business systems and appears constantly in log files and data feeds, again because it rarely occurs inside the data itself.
This converter offers those four separators plus Auto-detect, and the choice is the whole ballgame: split on the wrong character and a tidy file becomes one wide column, or shatters into too many. Auto-detect inspects up to the first ten non-empty lines, counts how often each candidate separator appears, and picks the most frequent — a reliable method because a real separator appears on nearly every line, while stray characters inside the data do not. Ties break in the order tab, comma, semicolon, pipe. If no candidate appears at all, the text is treated as a single column, one line per row, which for a list of names or codes is exactly right. Whichever way the separator was chosen, the result line names the one actually used, so you can catch a wrong guess before you ever open the file.
Two design decisions deserve plain statement. First, the split is literal: a line is divided wherever the separator character occurs, and quote characters carry no special meaning — a field written as “Doe, John” in a comma-separated text file becomes two cells, quotes and all, because plain delimited text has no quoting standard the way CSV does. If your text is true CSV with quoted fields, the CSV to Excel converter on this site is the right tool; its parser follows the CSV quoting rules properly. Second, anything that looks like a formula — a cell beginning with the equals sign, like the sample’s “=SUM(C2:C3)” — is stored as text, on purpose. Text files pass through many hands, and a spreadsheet that treats pasted or converted text as live formulas is a known security and sanity hazard: totals appearing from nowhere, content reaching out to external references. Here the cell displays exactly what the file contained and calculates nothing; the numbers around it are real numbers, so the moment you open the workbook you can write your own formulas over them and they will work.
How to Use the Converter
Using the tool takes a few seconds. Follow these steps:
- Either click the file box and choose a .txt file from your device (up to 2 MB), or paste delimited text into the text box.
- Choose the separator from the dropdown — leave it on Auto-detect unless you already know the file’s separator, in which case pick Tab, Comma, Semicolon or Pipe to match.
- Press “Create Excel File (.xlsx)”.
- Read the result lines: they report the source, the separator used, the grid size in rows and columns, how many cells were stored as numbers and how many as text, and the exact size of the workbook produced.
- Click the download button to save the .xlsx file, and open it in Excel, Google Sheets or LibreOffice.
If both a file and pasted text are present, the file wins, and the result line says which source was used. A file that is not plain text, text over the 2 MB limit, and text over 5,000 rows are each refused with a clear message. An uploaded file keeps its name with the ending changed — export.txt becomes export.xlsx — while pasted text downloads as data.xlsx.
Worked Examples
Example 1: The build test — tabs, numbers, codes and a formula lookalike
The introduction’s sample is the tool’s own build test, run on the exact code this page ships. Three lines, five tab-separated fields each: the header Name, City, Score, Code, Note; then Ali, Lahore, 92, 007, “=SUM(C2:C3)”; then Sara, Multan, 88.5, 042, “Plain text row”. With the separator on Auto-detect, the tool counted eight tab characters across the first lines and none of the other candidates, chose tab, and produced data.xlsx, exactly 3,210 bytes (3.13 KB): 3 rows by 5 columns, 15 cells, 2 stored as numbers, 13 as text. Independent validation opened the workbook with a spreadsheet library and read the grid back exactly: Score holding the integer 92 and the decimal 88.5 as numbers, Code holding the strings “007” and “042” with leading zeros intact, and the Note cell on Ali’s row holding the text “=SUM(C2:C3)” as a string — its cell type is text, and the worksheet XML contains no formula element at all. Every promise the tool makes is visible in that one small grid.
Example 2: A European export with semicolons
A colleague in Berlin exports a customer list from Excel and sends it over: the file is named customers.csv but its lines read “Firma;Stadt;Betrag” and “Müller GmbH;Köln;1250,75”. Renaming it .txt and converting it here with the separator on Semicolon — or on Auto-detect, which will count the semicolons and choose correctly — produces a three-column workbook. The amount “1250,75” stays text, deliberately: under this tool’s number rule a comma decimal is not a clean number, and silently turning it into 125075 or 1250.75 would corrupt money. Left as text, the figure displays exactly as the export wrote it, and you can convert it properly in Excel with full knowledge of what it means. That restraint is the point: a converter should carry data faithfully and refuse to guess at meanings.
Example 3: A pipe-separated log becomes a filterable sheet
Server and application logs are often pipe-delimited: a line like “2026-10-30 09:14 | ERROR | payment-gateway | timeout after 30s” is four fields wearing one line’s clothing. Pasted into the tool with the separator on Pipe, ten thousand such lines become a four-column worksheet — date-and-time, level, component, message — that can be filtered to just the ERROR rows in two clicks. The timestamps stay text (they contain spaces, dashes and colons, so the number rule leaves them alone), which is what you want: they sort and filter correctly as written, and no spreadsheet has helpfully reinterpreted them into a different timezone or format. Logs are the everyday case for this converter: born as text, needed as a table.
How to Read the Output
The result line confirms the conversion and names the file on the download button, whose label repeats its size. The detail line is the audit trail, and its most important entry is the separator: “Separator used: tab” (or comma, semicolon, pipe, or “none (single column)”). Check it against what you expected — it is the one fact that decides whether the workbook is right. Next come the grid dimensions and the cell census: rows and columns, then how many non-empty cells were stored as numbers and how many as text. The number count is a diagnostic in itself. If a column of figures you expected to sum shows up entirely as text, the census tells you before Excel does — the usual causes are thousands separators, currency symbols, percentage signs, or stray spaces baked into the source, all of which the number rule intentionally refuses. Empty cells are simply absent from the sheet rather than written as blanks, so sparse rows never shift their values into the wrong columns; every cell that is written carries its own coordinates.
The Number Rule, Stated in Full
Because the same rule governs the CSV to Excel converter on this site, it is worth stating completely once. A cell is stored as an Excel number only if it is a clean number: after trimming surrounding spaces, it consists of an optional sign, digits with at most one decimal point, and an optional exponent — 92, 3.5, -3.25, 0.5 and 1e3 qualify. Everything else is stored as text: percentages like 92%, currency values, dates and times, numbers with thousands separators like 1,000, and — the case that matters most — codes with meaningful leading zeros like 007 or a PIN starting with 0, which would be destroyed by numeric storage. A leading plus sign is dropped when a clean number is stored (+92 becomes the number 92). This conservatism is deliberate in both directions: figures you can add up are real numbers from the first moment, and identifiers, dates and formatted values reach the spreadsheet character-for-character as the file wrote them.
Common Mistakes
The first common mistake is splitting on the wrong separator and blaming the file: one wide column means the chosen character does not separate the fields, and the fix is to read the result line, change the separator, and convert again — it costs seconds. The second is expecting CSV quoting rules in plain text: quotes are ordinary characters here, so a comma-separated text file whose fields are quoted belongs in the CSV to Excel converter, which parses quotes properly. The third is expecting a field to span lines: in delimited text a line is a row, always, so a note broken across two lines becomes two rows — merge such lines in the source first if they belong together. The fourth is feeding a fixed-width file — columns aligned by spaces, common in old reports — and expecting columns to appear; there is no separator to split on, Auto-detect will rightly find none, and the honest result is a single column. The fifth is treating the number census as pedantry: when Excel refuses to total a column, the cause is almost always that the figures arrived as text for one of the stated reasons, and the census on the result line tells you how many, which is the difference between a five-minute fix and a mysterious afternoon.
Limits: What This Tool Does and Does Not Do
This tool converts delimited plain text — an uploaded.txt file or pasted text, up to 2 MB and 5,000 rows — into a genuine.xlsx with one unstyled worksheet: lines become rows, fields split literally on the chosen or detected separator (tab, comma, semicolon or pipe), clean numbers stored as numbers, and dates, percentages, leading-zero codes and formula-looking cells stored as text. It does not interpret quotes or escaped separators, does not support fields spanning multiple lines, does not read fixed-width layouts, and adds no formulas, styling, frozen panes or column widths. It converts one file at a time. If your file is true CSV with quoted fields, the CSV to Excel converter parses it by the full CSV rules; if you need the data as a Word table instead, the CSV to Word converter builds one; if you need a Word document from the text itself, the TXT to Word converter makes paragraphs of its lines. Within its scope, the output was verified at build time as a valid Excel package that a spreadsheet library reads back with values and types exactly as the number rule prescribes.
Privacy: Your Data Stays in Your Browser
Text exports are rarely innocuous: customer lists, payroll extracts, logs full of addresses and identifiers. Every file you convert with this TXT to Excel converter stays in your browser. The file is read locally on your device, split locally, and the Excel package is assembled locally; nothing is uploaded to a server, stored, or shared, and there is no account to create. Closing the page removes your data from the tool. This browser-only design is the same principle behind the other free tools on Your Smart Kit, and for file converters it is the strongest privacy there is: a conversion that never moves your file cannot leak it.
Frequently Asked Questions
Is the download a real Excel.xlsx file?
Yes. It is a genuine Office Open XML workbook — a ZIP holding the standard five parts, with your data as a worksheet — verified at build time by archive integrity checks and by reading the workbook back with a spreadsheet library, values and types intact. It opens in Microsoft Excel, Google Sheets and LibreOffice.
How does Auto-detect choose the separator?
It counts: across up to the first ten non-empty lines it tallies tab, comma, semicolon and pipe characters, and the most frequent wins — a true separator appears on nearly every line, unlike characters inside the data. Ties break in the order tab, comma, semicolon, pipe, and if none appears, the text converts as a single column. The result line always names the separator that was used.
Why did my formula-like cell arrive as text instead of calculating?
Deliberately. A cell whose text begins with “=” is stored as text, so converted files can never smuggle live formulas into your spreadsheet — a real fidelity and security concern with files that pass through many hands. The cell shows exactly what the file contained. The clean numbers around it are genuine numbers, so you can write your own formulas over them straight away.
Which cells become numbers, and which stay text?
Clean numbers only: an optional sign, digits, at most one decimal point, an optional exponent — 92, 3.5, -3.25, 1e3. Percentages, currency, dates, thousands-separated figures and leading-zero codes like 007 all stay text, so identifiers and formatted values survive character-for-character.
Does it handle quoted fields, like “Doe, John”?
No — the split is literal, and quotes are ordinary characters in plain delimited text, which has no quoting standard. A field like “Doe, John” in a comma split becomes two cells, quotes included. If your file follows the CSV quoting rules, use the CSV to Excel converter instead; its parser handles quoted fields, embedded commas and escaped quotes properly.
Is my file uploaded to a server?
No. The file is read and converted entirely in your browser on your own device. Nothing is sent to a server, stored, or shared, and closing the page clears the tool.
Related Tools on Your Smart Kit
The neighbouring converters share this tool’s real-package approach. The CSV to Excel converter is the sibling for true CSV: a full CSV parser with quoted fields, feeding the same genuine.xlsx writer and the same number rule. The CSV to Word converter turns CSV data into a Word document with the data as a real table, bold header and all. The TXT to Word converter turns a text file into a.docx of paragraphs, one per line. The text to PDF converter makes a PDF from text when the destination is reading rather than editing, and the word counter reports words, characters and lines in any text you paste. Each runs in your browser, free, with no sign-up, on the same principle: a simple tool that does one job well, keeps your files private, and gives a result you can check. Take the export that has been sitting in a downloads folder as an unhelpful.txt, and give it the columns it always deserved.
