TXT to Excel converter
Turn a text file into an Excel spreadsheet. Tabs, pipes and lined-up columns are split for you, and your file never leaves your browser.
Drop a text file here
TXT, TSV, DAT or CSV, up to 100 MB. It stays on your computer.
- No sign-up
- Nothing uploaded
- Columns found for you
A spreadsheet from any text export.
Your file stays on your computer
The Excel file is built in your browser. Nothing is sent to Mammoth or anyone else.
Lined-up reports split into columns
A column starts where every line has a gap of two or more spaces, so a name like Ana Costa stays in one cell.
Borders and dashed lines left out
Output copied from a database console keeps its rows. The +----+ lines and | borders around them are dropped.
How to convert TXT to Excel
The first line gives the column names. Each column is typed once, as numbers, dates or text, and the header row is bold and frozen.
- 1
Add your text file
Drop a .txt, .tsv or .dat file on the box, choose one, or paste the text in.
- 2
Check the columns
A preview shows the sheet. Change how the columns are split if you need to.
- 3
Download
Save the .xlsx and open it in Excel, Google Sheets or Numbers.
Other ways to do it
Excel can split a text file into columns itself. It asks you to set most of it by hand.
Excel's From Text/CSV
A file you refresh often
- Finds the columns for youPartly
- Keeps leading zerosPartly
- Drops dashed rule linesNo
- Refreshes when the file changesYes
Excel's Text to Columns
Text already pasted in a sheet
- Finds the columns for youNo
- Keeps leading zerosPartly
- Drops dashed rule linesNo
- Refreshes when the file changesNo
- This page
This converter
A clean .xlsx in one step
- Finds the columns for youYes
- Keeps leading zerosYes
- Drops dashed rule linesYes
- Refreshes when the file changesNo
How to import a text file into Excel
Data > From Text/CSV reads a .txt file and lets you choose how it is split. For text already in a sheet, Data > Text to Columns does the same for one column.
Need a CSV instead? The TXT to CSV converter reads the same files and writes a CSV.
- 1
Open a blank workbook and go to Data > From Text/CSV.
- 2
Pick your .txt file and select Import. A preview shows the columns Excel found.
- 3
Set Delimiter to the character between your values, or to --Fixed Width-- if the columns are lined up with spaces.
- 4
If a column holds codes with leading zeros, set Data Type Detection to Do not detect data types.
- 5
Select Load to put the data on a new sheet.
Your file stays private
The converter runs inside this page. Your text file is read and turned into a spreadsheet on your computer, and nothing is sent to Mammoth. That makes it safe for exports with customer or payroll data in them.
Once the page has loaded, it works with your internet switched off.
Getting the same report every week?
Mammoth can take it from there. Put each week's file in a folder as CSV and the rows are added to one table, ready to download as Excel.
Weekly reports
| Week 43 | Oct 21 | Lisbon | 1,284 | |
| Week 43 | Oct 21 | Porto | 962 | |
| Week 44 | Oct 28 | Lisbon | 1,310 | |
| Week 44 | Oct 28 | Porto | 1,005 | |
| Week 45 | Nov 04 | Lisbon | 1,198 |
Illustration. Every new file in the folder is added to the same table.