How to use
- Drop a TXT file on the page or paste your text into the box. The file’s encoding (UTF-8, CP949, UTF-16 and so on) is detected automatically.
- Pick how lines are handled, then paper size, margins, font size and line spacing. Page numbers are on by default.
- Press Convert to PDF, then Download PDF.
Options
| Option | What it does |
|---|---|
| Keep line breaks | Keeps your line breaks, leading spaces and blank lines as typed. Suits notes, logs and code snippets. |
| Join into paragraphs | Removes the line breaks inside each block separated by blank lines and re-wraps to the page width. Suits novels and articles whose lines were cut at a fixed length. |
| First line as title | Turns the first non-empty line into a large bold title. |
| Paper | A4, A5, B5 or Letter, in portrait or landscape. |
| Margins | 10 mm to 30 mm, the same on all four sides. |
With A4 portrait, 11 pt text, 1.6 line spacing and 20 mm margins, a page holds 41 lines, and a line of Hangul-only text fits 50 characters.
Why Korean does not turn into boxes
Korean shows up as empty boxes in a PDF when the font is not inside the file. This tool takes the Pretendard font (open font license) used on this site and puts only the glyphs you actually used into the PDF. The file therefore looks the same on any computer, whatever fonts it has, and stays small. Each character also carries its text value, so you can select, search and copy the text in a PDF viewer.
Things to know
- Only one typeface (Pretendard regular and bold) is built in. Emoji, Chinese characters and Japanese kana are not in that font and are replaced with a question mark; the result tells you how many were replaced.
- The font is proportional, so tables or ASCII art lined up with spaces can come out misaligned. For tables, turn a CSV into a PDF with Excel to PDF.
- One conversion handles up to 3 million characters and 1,500 pages. For longer text, convert in parts and join them with Merge PDF.
- The first conversion downloads the font file (about 1.5 MB) once from this site. No external server is used.
- Because glyph outlines are embedded directly, very small text can look slightly less crisp at the edges than a PDF from a word processor.
Frequently asked questions
How do I convert a TXT file to PDF?
Drop the TXT file on this page and press Convert to PDF. It works the same for a file from Notepad or an exported phone note, and you can paste text instead.
My Korean TXT file looks garbled.
Older Korean files (CP949, EUC-KR) turn into garbage when read as UTF-8. This tool detects the encoding automatically; if many garbled characters remain, change the file to UTF-8 with the text encoding converter and add it again.
Can I copy text out of the converted PDF?
Yes. The text is not painted as a picture; glyph outlines and character data are stored together, so selecting, searching and copying work.
Can I leave out page numbers or add them later?
Turn the page-number option off to skip them. You can add numbers to any other PDF later with Add page numbers to PDF.
Is my file uploaded?
No. Text and files are processed in your browser and never sent to a server.
Related tools
For Markdown use Markdown to PDF, and for Word documents Word to PDF. The PDF you create can be shrunk with Compress PDF or turned back into text with PDF to text, and photos can be bundled with JPG to PDF. The text you enter is processed only in your browser and never sent to a server.