AnyTool
Your files never leave your device. All processing happens locally in your browser.

TXT to Word

Convert .txt files or pasted text to Word (.docx): every line kept or paragraphs rejoined, UTF-8, UTF-16 and ANSI text, batch ZIP

All Converters →

How do I convert a TXT file to Word?

Drop one or more .txt files on TXT to Word (or paste text), choose how lines become paragraphs, the font and the page size, and click Convert to Word. You download a real .docx for each file, or a ZIP of them. It runs in your browser; nothing is uploaded.

  • Every line kept, or hand-wrapped lines rejoined
  • Reads UTF-8, UTF-16 and old Windows (ANSI) text
  • Monospace option keeps columns lined up
  • Batch conversion with a ZIP download

What is

TXT to Word conversion

Turning a plain-text file, which has no formatting, into a Word document whose paragraphs, font and page size you can then format and edit.

Converters

Related terms

Plain textDOCXCharacter encodingUTF-8

How to convert TXT to Word

Turn .txt files or pasted text into Word documents in your browser.

20 secWeb browser
  1. 1

    Add the text

    Drop one or more .txt files, or paste text into the box.

  2. 2

    Choose the paragraphs

    Every line as typed, or split at blank lines.

  3. 3

    Pick font and page

    Choose the font, size, A4 or US Letter, and monospace if you need it.

  4. 4

    Convert and download

    Click Convert to Word and download the .docx (or the ZIP).

Result: Word (.docx) documents

Frequently Asked Questions

Yes, by default.

Every line of the file becomes its own paragraph, blank lines included, and leading spaces and tabs are kept. Choose 'Split at blank lines' instead to rejoin text that was wrapped by hand, such as e-mails or e-books.

The encoding was guessed wrong.

This tool reads the byte-order mark for UTF-8 and UTF-16 files and falls back to Windows-1252 (ANSI) for old files that are not valid UTF-8, so é, ü and ñ come through. The encoding it used is shown for each file.

Yes.

Turn on Monospace: the document uses Consolas, so columns made with spaces and code keep their alignment, as in a text editor.

No.

The file is read and the Word document written in your browser.

Yes.

Drop several .txt files; each becomes its own Word file, and you can download them all as a ZIP.

Yes.

Lines written mostly in a right-to-left script are set right to left in Word.

Detailed Explanation

How It Works

Lines and paragraphs

In 'Every line' mode each line becomes a paragraph with no extra spacing, so the document looks like the file; blank lines stay. In 'Split at blank lines' mode the lines between blank lines are joined into one paragraph that reflows in Word.

  • Two paragraph modes
Technical Details

Encodings

UTF-8 and UTF-16 (little- or big-endian) are recognised by their byte-order mark; files that are not valid UTF-8 are read as Windows-1252, the usual encoding of older Windows text files.

  • BOM detection
  • ANSI fallback
Technical Details

The Word file

The .docx is written with the docx library in Calibri, Arial, Times New Roman, Georgia or Consolas at 10–14 pt on A4 or US Letter pages. Tabs become Word tabs and right-to-left lines are set right to left.

  • Real .docx
Privacy & Security

Privacy

The conversion runs in the browser; the text is not uploaded.

  • No upload
Which paragraph mode?
Your textChooseResult in Word
Notes, lists, logs, poemsEvery lineOne paragraph per line, as typed
E-mails or e-books wrapped at ~70 charactersSplit at blank linesFull paragraphs that reflow
Code or space-aligned tablesEvery line + MonospaceColumns stay lined up

You can change the mode and convert again; nothing is uploaded.