Create a document from text online

Paste or type text, preview headings and lists, then download it as DOCX, PDF, Markdown, HTML or TXT. Choose the format that fits your next step.

Create a document from text

Create files in your browser Ready
01

Write content

0 words
03

Choose an output format

tai-lieu.docxCheck the file after downloading.

How to create a document from text

01

Enter a title and text

Paste text or use the sample. Start a line with #, ## or ### for headings, or - and 1. for lists. The preview updates as you edit.

Choose a format for your next step

What do you need? Choose Check after download
Keep editing in a word processorWord (.docx)Open the file and review headings, lists and margins.
Share a paginated documentPDF (.pdf)Review the last page and page numbers if enabled.
Keep heading and list syntax in textMarkdown (.md)Open in a Markdown reader; page settings do not apply.
Get a basic HTML pageHTML (.html)Open in a browser and review headings, lists and type.
Reuse plain text elsewhereTXT (.txt)Check accented text and line breaks; fonts and margins are not saved.

PDF keeps the page appearance, but its document content is placed as an image. If you need to select or edit the downloaded text, choose Word, HTML or TXT.

If the downloaded file differs from the preview

The tool asks for content
Enter a document title or some text, then try again.
Pages differ from the preview
The preview estimates page count. Open the downloaded DOCX/PDF, inspect the last page and adjust margins, type size or spacing if needed.
Word or PDF will not generate
These formats load libraries when you create the file. Check your connection and retry; split very long content into smaller parts. If you need the text now, choose Markdown, HTML or TXT.

Your browser draft

Your text and settings are saved in this browser and shared with the Text to Word/PDF pages. Use Clear on a shared device; keep the downloaded file because clearing browser data may remove the draft.

Comments & feedback

Rate this tool

Loading ratings…

Write a commentNo account needed

Do not share passwords, sensitive information or the contents of files you are processing.

Reviewed before posting. Email stays private.

Embed this tool on your websiteFree · Copy once, receive tool updates automatically

Paste the iframe into HTML, WordPress or any platform that supports embeds. The tool runs in the visitor’s browser; adjust its height and theme as needed.

View the embed guide and supported platforms →

<div style="max-width:900px">
  <iframe data-kitotool-embed src="https://kitotool.com/embed/en/text-document-generator/" title="Text Document Generator — KitoTool" width="100%" height="1200" style="display:block;width:100%;border:1px solid #dbe3ee;border-radius:12px" loading="lazy" referrerpolicy="strict-origin-when-cross-origin"></iframe>
  <p style="margin:6px 2px 0;text-align:right;font:12px/1.5 system-ui,sans-serif;color:#64748b">Free tool by <a href="https://kitotool.com/en/text-document-generator/" target="_blank" rel="nofollow noopener noreferrer" style="color:#2359d4;text-decoration:underline">KitoTool</a></p>
</div>

The code includes a visible credit below the iframe; its link uses nofollow for a widely distributed widget.

Optional: automatically resize the iframe

Add this script once to the page containing the iframe.

<script>
(function(){var origin="https://kitotool.com";function frames(){return document.querySelectorAll("iframe[data-kitotool-embed]")}function measure(f){if(f.contentWindow&&new URL(f.src).origin===origin)f.contentWindow.postMessage({type:"kitotool:measure"},origin)}window.addEventListener("message",function(e){if(e.origin!==origin||!e.data||e.data.type!=="kitotool:resize"||!Number.isFinite(e.data.height))return;frames().forEach(function(f){if(f.contentWindow===e.source&&new URL(f.src).origin===origin)f.style.height=Math.max(320,Math.min(12000,Math.ceil(e.data.height)))+"px";});});function connect(){frames().forEach(function(f){f.addEventListener("load",function(){measure(f)});measure(f)})}if(document.readyState==="loading")document.addEventListener("DOMContentLoaded",connect,{once:true});else connect()})();
</script>