How to use Text to PDF
- Paste or type your text into the box, or press “Load a .txt file…” to open a text file.
- Set the font size, page size, margins and line spacing.
- Tick “Line numbers” for code or transcripts, and “Page numbers” for longer documents.
- Press “Create PDF” and download the result.
About this tool
Long lines are wrapped at word boundaries to fit the page, and words that are longer than a whole line (such as URLs) are broken by character so nothing is cut off. Blank lines, indentation and tabs are kept, so the structure of the text survives. With line numbers enabled, every original line is numbered once in the left margin – wrapped continuation lines are not counted, just as in a code editor.
The PDF embeds the Noto Sans font, which covers Latin, Greek and Cyrillic alphabets, so accented and non-English letters print correctly. Text files are read as UTF-8, UTF-16 or Windows-1252 automatically. Formatting such as Markdown or HTML tags is not interpreted – the text is printed exactly as written.
Frequently asked questions
Can I use a monospaced font for code?
Not at the moment; the PDF uses Noto Sans. Indentation is still preserved, and line numbers make code easy to follow.
Is there a size limit?
Text files up to 20 MB can be loaded. Very long texts take a few seconds to lay out.
Does it support Chinese or Arabic?
The embedded font covers Latin, Greek and Cyrillic. Other scripts may appear as empty boxes.
Are my text uploaded to a server?
No. The whole process runs inside your browser with JavaScript. Your text never leave your device, which also means the tool keeps working if you go offline after the page has loaded.
Is this tool really free?
Yes. There is no sign-up, no daily limit, no watermark and no paid tier. The site is supported by advertising shown on the page, not by charging for the tools.