TapToConvert All conversions

Home / Document Converter / TXT Converter / TXT to XLSX

TXT to XLSX Converter

Convert a TXT file to XLSX right here in your browser. Nothing is uploaded: the conversion runs on your own device, so it is private, has no file size limit set by a server and works offline once the page has loaded.

Drop files hereChoose TXT files Nothing is uploaded. Any size your device can handle.

Add a file from a URL

The file is fetched by your browser straight from that website, not through our servers. It works when the site allows other websites to download its files.

Settings

Add files to begin.

    What happens when you convert TXT to XLSX

    • Each line of the text becomes a row. If the text has tabs, as text copied out of a spreadsheet or saved as tab-separated values does, they split each line into cells; otherwise each whole line goes into column A. Plain numbers are stored as numbers, so they can be summed and sorted.
    • To split lines at commas or another character instead, select column A in the XLSX and use Data, Text to Columns in Excel, or Data, Split to columns in Google Sheets.
    • The file is read by SheetJS running in your browser; nothing is uploaded.

    How to convert TXT to XLSX online

    1. Press "Choose TXT files" and select one or more files, or drag them onto the box. You can add files of any size your device can hold in memory.
    2. There are no settings to choose: the converter keeps everything the target format can hold.
    3. Press "Convert to XLSX". The spreadsheet library, about 900 KB, loads the first time and then workbooks convert in a moment.
    4. Save each XLSX with its download button. Close the tab and every trace of the files is gone from memory.

    Why convert TXT to XLSX?

    TXT files usually come from notes, logs, extracted text and anything that must open everywhere. People convert them to XLSX because XLSX is what Excel, Google Sheets and most business tools expect, and it keeps every sheet and formula.

    In short, TXT is good at what it was made for, and XLSX is the more practical choice when the file has to open, upload or print somewhere else. TXT opens in every browser, text editor and phone, while XLSX opens in Excel, Google Sheets, Numbers and LibreOffice Calc.

    How to convert TXT to XLSX on Windows, Mac, iPhone and Android

    On Windows

    Open this page in Chrome, Edge or Firefox, drag your TXT files in from File Explorer, and press Convert. Each XLSX is saved to your Downloads folder.

    On a Mac

    Safari, Chrome and Firefox all work. Drag the TXT files from Finder onto the drop zone and the XLSX files land in Downloads.

    On iPhone and iPad

    Open the page in Safari and tap Choose TXT files. You can pick from Photos or from the Files app. The converted XLSX appears in Files, in the Downloads folder.

    On Android

    Open the page in Chrome, tap Choose TXT files and pick them from Files or your gallery. The XLSX is saved to the Download folder, where any file manager can find it.

    Best settings for TXT to XLSX

    There are no settings: every line becomes a row, split into cells at tabs when the text has them. Save the text as UTF-8 if you can; accented letters and other alphabets are then kept exactly.

    If the columns should be split at commas or semicolons instead, convert anyway and use Text to Columns on column A in your spreadsheet program, which lets you pick the separator.

    TXT vs XLSX: the differences

    TXTXLSX
    Full namePlain textExcel workbook
    Typedocumentspreadsheet
    Created byno single authorMicrosoft
    First released19632007
    CompressionLosslessLossless
    What it holdscharacters only, with no formattingseveral sheets with values, formulas, formatting and charts
    In a browseropens in every browser, text editor and phoneopens in Excel, Google Sheets, Numbers and LibreOffice Calc
    Common usesnotes, logs, extracted text and anything that must open everywherebusiness spreadsheets, reports and anything shared with Excel users
    MIME typetext/plainapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet

    About TXT and XLSX files

    What is a TXT file?

    A TXT file holds nothing but characters: no fonts, images or layout. Modern text files are usually UTF-8, which covers every language.

    What is an XLSX file?

    XLSX has been the default Excel format since Office 2007. Inside it is a ZIP archive of XML files, one per sheet, plus styles and shared text.

    TXT to XLSX not working? Common problems

    • Everything is in column A. The text has no tabs between its values; use Text to Columns in your spreadsheet program to split them at commas or spaces.
    • Accented letters look wrong. Save the text as UTF-8 in your editor and convert it again.
    • Numbers with a comma as the decimal sign stay text. Replace the commas with points first, or change them in the spreadsheet with Find and Replace.

    Convert TXT to XLSX from the command line

    LibreOffice Calc reads tab-separated text and saves it as a spreadsheet from the command line:

    soffice --headless --infilter="Text - txt - csv (StarCalc):9,34,76" --convert-to xlsx input.txt

    The converter on this page does the same job in your browser, without installing anything.

    TXT to XLSX converter FAQ

    Will I lose quality converting TXT to XLSX?

    No. Every line and value is kept exactly; only the layout into rows and cells is new.

    Why is the XLSX a different size from the TXT?

    Larger than the text for a short file, because an XLSX workbook carries a few kilobytes of structure; for long files it is often smaller, because XLSX compresses its contents.

    Are my TXT files uploaded anywhere?

    No. The conversion runs inside this browser tab using the open-source SheetJS library, so your files stay on your device. You can disconnect from the internet after the page and converter engine have loaded and it still works.

    Can I convert several TXT files to XLSX at once?

    Yes. Select or drop as many files as you like; they are converted one after another and each gets its own download button.

    How do I open an XLSX file?

    XLSX opens in Excel, Google Sheets, Numbers and LibreOffice Calc. XLSX is common for business spreadsheets, reports and anything shared with Excel users.

    Is this TXT to XLSX converter free?

    Yes. There is no sign-up, no watermark and no limit on how many files you convert. The site is paid for by advertising, and because conversions run on your device there is no server cost per file.

    Can I convert TXT to XLSX on my phone?

    Yes. The converter works in Safari on iPhone and iPad and in Chrome on Android. Converted files are saved to the Downloads folder.

    Convert TXT to other formats

    Convert other formats to XLSX

    Looking for something else? Try the document converter or browse every conversion.

    Try MP4 to MP3, HEIC, merge PDF or compress video.