Turn plain text into an editable Word document
The generated document contains only plain text paragraphs with no special formatting — you can adjust fonts, sizes and other styling in Word after downloading. Everything runs locally in your browser, and your content is never uploaded.
TXT to Word turns plain text into an editable .docx document. You can choose a .txt file or paste or type text into the box, then click 'Convert and download Word'. The rules are simple: every line of your text becomes one paragraph in Word, a blank line becomes an empty paragraph, and there are no heading styles, font settings or page settings. It is good for quickly putting loose text into a Word file you can keep editing, and it is not meant to produce a finished, nicely formatted document.
We processed this text the same way the tool does (split on line breaks, one paragraph per piece, a single trailing line break ignored) using the same document library: a title line (in Chinese, meaning 'Meeting notes'), one blank line, two short lines of details, and a trailing line break at the end. Splitting gives 5 pieces; the last one is empty only because the text ends with a line break, and the tool drops it. So the document has 4 paragraphs, 1 of them empty. We then read the generated file back with a different library and all three text paragraphs came through intact. The takeaway: every blank line in your text becomes an empty paragraph (three blank lines in a row create three empty paragraphs), while a single line break at the very end adds nothing. Delete blank lines in the text box first if you do not want them.
You can open and edit it right away, but it is a bare document of plain text. For headings, bold, a table of contents and other layout, set them up in Word yourself. If your source is in Markdown, use the site's Markdown to Word tool instead, which converts headings and bold.
The most common cause is a .txt file that is not UTF-8. The tool decodes files as UTF-8, so older encodings such as GBK come out garbled. Open the file in Notepad, choose Save As, set the encoding to UTF-8, and upload it again. Or copy the text and paste it into the box; pasted text does not depend on file encoding.
Characters in your text are placed in the paragraphs as they are, so leading spaces and full-width spaces remain. How Word displays runs of spaces is up to Word itself, though. For tidy alignment, use indents or tab stops in Word instead of relying on spaces.
The document is generated in your browser, so speed depends on the number of paragraphs and on your device. No size limit is set in the code. With very long text you may wait a moment, and the button shows 'Generating…' and cannot be clicked in the meantime.
Yes. The text box keeps its content after a download, so you can edit it and click 'Convert and download Word' again to produce a new file.
Reading the file and building the .docx both happen in your browser. The document library is loaded by the page when you click convert, and the code contains no request that sends your text to a server. The text exists only on the current page and is gone when you close or refresh it.