OnlineTextLab
Esc

TXT to DOCX Converter

Plain text in, a properly formed Word document out, with paragraphs where you want them.

Nothing here yet

Options

Runs on your device. Your files and text are not uploaded.

About TXT to DOCX

Text from a note app, a log file or an email reply needs to become a Word document surprisingly often, usually because someone has asked for a .docx and nothing else will do. Pasting into Word works, but on a phone or a borrowed computer there may be no Word to paste into.

This builds the file directly from your text. You choose how line breaks are treated, set the page size, margins and spacing, and download a document that opens for editing in Word, Google Docs, Pages and LibreOffice. A preview read back from the finished file shows you what it holds before you send it anywhere.

How it works

The biggest decision is what a line break means, because plain text has two common habits. Text typed in an editor usually separates paragraphs with a blank line, and any single line break inside is deliberate, so that is the default: a blank line starts a new paragraph and a single break becomes a Word line break within it. Text exported from other systems often has one paragraph per line, which is what the Every line break setting is for.

The file is assembled from the parts Word expects: the document body, a style sheet with a Normal style holding your font size and spacing, and a settings part that stops Word opening it in compatibility mode. Tabs become real Word tabs. Characters that XML forbids, such as stray control codes from old files, are removed first, because a single one of them is enough for Word to report the whole document as corrupt.

How to use TXT to DOCX

  1. Type or paste into Your text. You can also press Open a .txt file to load one, or use Try an example.
  2. Open Options to change where paragraphs start, the font size, line spacing, page size or margins. Add a title and author only if you want them in the file properties.
  3. Press Create Word document and check the preview.
  4. Press Download .docx.

How line breaks are treated

Input
Project brief

Draft due Friday.
Review on Monday.
Output
Paragraph 1: Project brief
Paragraph 2: Draft due Friday.
             Review on Monday.

With the default setting the blank line splits the text into two paragraphs, and the single line break stays as a line break inside the second one. Set New paragraph at to Every line break and the same text becomes three paragraphs.

When it helps

  • Delivering a draft written in a plain text editor to a client who edits in Word
  • Turning exported notes or a transcript into something a colleague can mark up with tracked changes
  • Making a document on a phone or tablet with no office app installed
  • Reformatting a text file for a submission that specifies A4 and a given margin

Tips for a better result

  • If your text has # headings or bold in it, use Markdown to DOCX so they become real formatting instead of literal symbols.
  • Leave the title and author blank unless you want them. They go into the file properties, which recipients can read, and they do not appear on the page.
  • To tidy a messy transcript before converting, run it through the Transcript Cleaner first.

Good to know

  • All text uses one font, Calibri, at one size. Plain text has no structure to map to headings, so nothing is promoted to a heading automatically.
  • Bold, italics and lists written as symbols stay as symbols. A hyphen at the start of a line is a hyphen, not a Word bullet.
  • Nothing checks spelling or grammar, and no text is changed other than the removal of illegal control characters.

Questions people ask

Does the title I type appear at the top of the page?

No. It is stored as the document's Title property, visible under File, Info in Word. If you want a title on the page, make it the first line of your text.

Will Word show a compatibility mode warning?

The file declares the current Word format version in its settings part, which is the setting Word checks for this. It is a normal modern .docx.

What happens to emoji and non-English text?

They are kept exactly as they are. Whether they display well depends on the fonts on the computer opening the file, since Calibri does not cover every script and Word substitutes another font for those characters.

Is there a size limit?

There is no fixed limit. The work happens in your browser's memory, and books-length text is fine on a normal computer. The preview shows the first 200 paragraphs, while the file contains everything.

What to use next

  • Markdown to DOCX: if your text has headings or lists written in Markdown
  • TXT to PDF: if the reader only needs to read it, not edit it
  • TXT to RTF: for older word processors without DOCX support

Last reviewed . Read our editorial policy.