Text to PDF
Type, paste or open a text file and download it as a clean PDF. Paragraphs and line breaks are kept exactly, indentation is preserved, and the text stays selectable and searchable. Set the page size, orientation, margins, font size and line spacing, add a title and page numbers, and for any language the built-in font cannot draw, use Print / Save as PDF with your system fonts.
- Runs in your browser
- No sign-up
- Free to use
How to use Text to PDF
- Type or paste text, or open a .txt file.
- Choose page size, margins, font size and spacing.
- Optionally add a title and page numbers.
- Click Download PDF, or Print / Save as PDF for other scripts.
Text to PDF features
Real text
Selectable and searchable, not an image.
Layout kept
Blank lines separate paragraphs; line breaks and indentation stay.
Page options
A4, Letter, Legal or A5; portrait or landscape; three margin sizes.
Readable output
Font size, line spacing, title and page numbers.
Encoding detection
Opens UTF-8, UTF-16 and Windows-1252 files correctly.
Private
Created in your browser; the text never leaves your device.
When to use Text to PDF
- Turning meeting notes or a log file into a shareable PDF.
- Submitting a plain-text document where PDF is required.
- Archiving a README or licence text in a fixed format.
- Printing a long text file with page numbers.
Text to PDF FAQ
Is the text in the PDF selectable?
Yes. The PDF contains real text, so it can be selected, copied and searched, and it stays sharp at any zoom.
Why does it suggest Print / Save as PDF for some languages?
The built-in PDF font covers Latin, Greek and Cyrillic. For scripts such as Arabic, Bengali, Hindi, Chinese or Japanese, your browser’s print dialog uses your system fonts and can save a PDF that displays them correctly.
Are line breaks kept?
Yes. A blank line starts a new paragraph, and single line breaks inside a paragraph are kept as they are.
What file encodings are supported?
UTF-8 (with or without BOM), UTF-16, and Windows-1252 for older files. The encoding detected is shown when you open a file.
Is there a size limit?
Files up to 5 MB can be opened. Very long texts may take a few seconds to lay out.
Is my text uploaded?
No. The PDF is generated in your browser.
Plain text as a proper PDF
Plain text is the most portable format there is, but it has no page layout. Printed from a simple editor it often ends up with tiny margins, no page numbers and lines cut at the page edge. PDF fixes the layout: every reader sees the same pages, the file can be printed reliably, and it can be attached wherever a document is expected.
This converter treats the text with care. Blank lines mark paragraphs, which get spacing between them, while single line breaks inside a paragraph are kept, so lists, addresses and poems keep their shape. Leading spaces are preserved so indented items stay indented, and tabs become four spaces. The result is real text in the PDF, not a picture, so it can be searched and copied.
Page settings cover the common needs: A4 for most of the world, US Letter and Legal for North America, A5 for booklets, portrait or landscape, and three margin widths. Font size and line spacing control density; 11 point with 1.25 spacing reads comfortably on screen and on paper. A title at the top and page numbers in the footer make longer documents easier to navigate.
The built-in PDF font covers languages written in the Latin, Greek and Cyrillic alphabets. Text in other scripts cannot be drawn with it, so the tool detects such text and points to Print / Save as PDF. That route lets the browser lay out the text with the fonts installed on your device, which handles practically every language, and the print dialog saves the result as a PDF.
Opening a file detects its encoding: UTF-8 with or without a byte-order mark, UTF-16, or the Windows-1252 encoding used by older Windows programs. If a file is not valid UTF-8, the tool tells you which encoding it used, so you can check accented characters before creating the PDF. Everything happens in your browser.