ToolsEdit PDFArticlesPricingContact
TryPDFKit
Documents tool

Convert TXT to DOCX

Change plain text files into proper Word documents. Paragraphs are rebuilt, lines like Chapter 1 become headings, and the file never leaves your device.

  • 3 free uses, no sign-up
  • Runs in your browser
  • Chapter headings detected
  • Batch conversion

Drop your files here

or click to browse your device

  • TXT
  • TEXT
  • LOG
Files never leave your device
  • Files stay on your device
  • 3 free uses, no account needed
  • Works offline once loaded
How was TXT to DOCX?
Be the first to rate this tool.
1How it works

TXT to DOCX in three steps

  1. 01

    Add your text files

    Drop one or many .txt files on the page, or tap Choose files.

  2. 02

    Set how paragraphs work

    Leave it on automatic, or say that blank lines or every single line mark a paragraph. Keep the chapter-heading option on if you want it.

  3. 03

    Download the Word file

    Each text file becomes a .docx you can open in Word, Pages or Google Docs.

2The details

What you get, and what to know

What you get

  • Smart paragraphsText hard-wrapped at 70 characters is joined back into flowing paragraphs. Short lines such as poems and addresses keep their breaks.
  • Headings from plain linesShort lines starting with Chapter, Part, Prologue, Introduction and similar words become headings. So do lone numbers and Roman numerals.
  • Any text encodingUTF-8, UTF-16 and older Windows text files are recognized, so accents and symbols come through.
  • Several files at onceConvert a folder of notes in one go and get one document per file.

Good to know

  • Plain text has no stylingThe result uses a simple default font. Add fonts and colors in Word afterwards.
  • Headings are guessedOnly short lines that look like chapter titles are promoted. Switch the option off if a line was changed by mistake.
  • Want a PDF instead?Use TXT to PDF for a fixed-layout file.
3Use cases

When people use TXT to DOCX

Format a manuscript

Move a story written in Notepad into Word with chapters already marked.

Hand in an assignment

Turn notes into a .docx that your school or teacher asks for.

Save copied text properly

Paste an email or web article into a text file, then convert it to a document you can edit.

Convert old archives

Batch many .txt logs or notes to Word for easier reading and printing.

How paragraphs are decided

Text files do not store paragraphs, only line breaks. If your file has blank lines between blocks, the automatic setting treats each block as a paragraph. If it has none, every line becomes its own paragraph.

Hard-wrapped text, where most lines are long and break mid-sentence, is joined into one flowing paragraph.

When to override the automatic mode

Pick a setting by how your file is written:

  • Separated by blank lines: best for essays and articles.
  • Every line is a paragraph: best for lists, chat logs and subtitles.
  • Detect automatically: a safe start for everything else.

Preparing a text file first

A little tidying before you convert pays off. Remove page numbers and running headers that were copied in by accident, and make sure chapter titles sit on their own line with a blank line around them.

If the text came from a PDF, lines often break in the middle of sentences. The automatic mode joins long wrapped lines, but you can also clean the file first with Remove extra spaces, which has a setting to join broken lines into paragraphs.

Once the Word file is ready, choose a font, set line spacing and add page numbers with Add page numbers to DOCX.

4FAQ

Questions, answered

How do I convert a TXT file to a Word document?+

Add the .txt file, check the paragraph setting, and download the .docx. It takes a few seconds.

Is my text uploaded anywhere?+

No. The file is read and written inside your browser, so it stays on your device.

Will Chapter 1 lines become headings?+

Yes, when the option is on. Short lines that start with words like Chapter, Part or Prologue become Word headings.

Why are my line breaks missing?+

Wrapped lines are joined into paragraphs on purpose. Choose Every line is a paragraph to keep each line.

Do accents and other languages work?+

Yes. UTF-8 and UTF-16 text is read correctly, and older Windows files are handled too.

Does it work on iPhone, Android or a laptop?+

It works in the browser on phones, tablets and computers, with no app to install.

+Keep going

Related tools