TXT to PDF
Turn plain text into a clean PDF with real, selectable text — Thai supported.
About this tool
TXT to PDF lays out plain text as real PDF text, so the result is small, sharp at any zoom, searchable and copyable. Lines, blank lines and indentation are kept, and long lines wrap neatly at the margin.
Thai text wraps correctly at word boundaries even though Thai has no spaces between words, using the embedded Sarabun font. Choose the paper size, margins, font size, line spacing or a monospace typeface for logs and code.
Add .txt files or simply type or paste text into the box. Files in UTF-8, UTF-16 or legacy Thai (Windows-874) encoding are detected automatically.
Engines: pdf-lib · fontkit
How to use
- 1
Add .txt files or type/paste text.
- 2
Choose font, size, margins and line spacing.
- 3
Click Convert to PDF.
Use cases
Notes and drafts
Turn quick notes into a document you can print or share.
Log files
Archive server logs in a monospace layout with page numbers.
Thai documents
Produce properly wrapped Thai text without installing fonts.
Frequently asked questions
Can I copy text from the PDF?
Yes. The text is real PDF text, not an image.
Is Thai supported?
Yes — Sarabun is embedded and Thai lines break at word boundaries.
My file shows strange characters
Mofumi detects UTF-8, UTF-16 and Windows-874. Other encodings may need converting to UTF-8 first.
You may also like
Markdown to PDF
Convert Markdown (GFM) to a polished PDF with highlighted code, tables and an optional table of contents.
Convert to PDF- Beta
RTF to PDF
Convert Rich Text Format documents to PDF with formatting and Thai support (beta).
Convert to PDF - Beta
Word to PDF
Convert DOCX documents to PDF right in your browser (beta).
Convert to PDF