About the Text to PDF Converter
Plain text files are handy for notes, logs and drafts, but they look different on every device and are awkward to print. Converting text to PDF gives you a fixed, printable layout: paste your text or open a .txt file, pick a font, text size, page size and margins, and the tool wraps long lines and adds pages as needed.
Three classic fonts are available: Helvetica for a clean sans-serif look, Times for traditional documents, and Courier, a monospaced font that keeps columns lined up in code, logs and plain-text tables. These are the standard PDF fonts, so they display identically on every device without being embedded, which keeps the file small; the text stays selectable and searchable.
The standard fonts cover English and Western European languages, including accented letters, curly quotes, dashes and the euro sign. Characters outside that set, such as emoji or Chinese, Arabic and Cyrillic letters, cannot be shown and are replaced with a question mark; the converter tells you how many were affected. Everything is done in your browser, and your text is never uploaded.
To get text back out of a PDF, use PDF to text. To count words before converting, try the word counter, and to combine the result with other files, merge PDF.
How to use the Text to PDF Converter
- Add your textPaste or type text in the box, or open a .txt file to load it.
- Choose the stylePick the font, size and line spacing. Courier keeps columns aligned for code and tables.
- Set up the pageChoose A4, Letter or Legal, the orientation and the margins, and give the document a title if you like.
- Create and downloadPress Create PDF, then Download PDF.
Text to PDF Converter features
- Paste text or open a .txt file
- Helvetica, Times or Courier
- Font size and line spacing
- A4, Letter or Legal, portrait or landscape
- Narrow, normal or wide margins
- Automatic line wrapping and pagination
- Selectable, searchable text
- Text never leaves your device
Common uses
- Turning notes or a draft into a printable document
- Saving code, logs or configuration files as PDF
- Making a PDF version of a plain-text letter
- Printing long text without a word processor
- Archiving text exported from another program
Turning plain text into a clean, readable PDF
Plain text is the simplest kind of document: no fonts, no layout, just characters. That simplicity is useful for notes, logs, lists and drafts, but a TXT file looks different in every program and prints poorly. Converting it to PDF fixes the appearance so it looks the same everywhere. This guide covers the choices that make a text PDF readable, from fonts and sizes to margins, line length and special characters.
When text to PDF makes sense
- Sharing notes, minutes or a draft in a format that cannot be accidentally edited.
- Printing logs, code or lists with consistent line breaks.
- Submitting a statement to a portal that only accepts PDF.
- Archiving a copy of a message, transcript or chat export.
If the document needs headings, images or tables, a word processor is a better starting point; export to PDF from there. Text to PDF is for content where plain text is the whole point.
Choosing a font
Proportional fonts, where letters have different widths, read best for prose such as letters and notes. Monospaced fonts, where every character has the same width, are best for code, tables made with spaces and log files, because columns line up exactly.
| Content | Font style | Typical size |
|---|---|---|
| Letters, notes, statements | serif or sans-serif | 11 to 12 pt |
| Code, logs, configuration | monospaced | 9 to 10 pt |
| Large-print documents | sans-serif | 14 to 16 pt |
| Dense reference lists | sans-serif | 10 pt |
Margins and line length
Long lines are tiring to read. Typographers suggest roughly 50 to 75 characters per line for comfortable reading. On A4 or Letter paper with 11 or 12 point text, margins of 20 to 25 mm (about an inch) land close to that range. Narrower margins fit more text per page, which suits code and logs; wider margins look more formal and leave room for notes.
How line breaks are handled
Plain text marks the end of a line with a line break character, and many files also break lines inside paragraphs because they were written for a fixed-width screen. A good converter keeps your blank lines between paragraphs and wraps long lines to the page width. If a file has a hard break every 70 or 80 characters, you may see short, ragged lines in the PDF. Removing those breaks first with Remove Line Breaks gives smooth paragraphs.
Tabs are another trap. They have no fixed width in plain text, so columns separated by tabs can drift. For tables, use spaces and a monospaced font, or convert the data to a spreadsheet instead.
Special characters and languages
PDFs display text using embedded fonts. Basic Latin letters work everywhere, but accented letters, currency symbols, Greek, Cyrillic, Arabic and Asian scripts need fonts that contain those characters. If a character cannot be shown, it may be replaced with a question mark or a blank box. Check the preview for any such gaps, especially in names and addresses, and simplify the character if necessary, for example replacing typographic quotes with straight ones.
Page size and orientation
Choose the paper size your readers use: A4 in most of the world, US Letter in the United States and Canada. Landscape orientation is helpful for wide content such as logs with long lines, because it reduces wrapping and keeps each entry on one line.
Cleaning the text before converting
A little preparation produces a much better PDF:
- Remove trailing spaces and duplicated blank lines with Text Cleaner.
- Delete repeated lines in lists or logs with Remove Duplicate Lines.
- Number lines for code or legal text with Add Line Numbers.
- Check the length with Word Counter if there is a page or word limit.
Is the text in the PDF searchable?
Yes. Unlike a scan or a screenshot, a PDF created from text contains real text, so it can be searched, selected and copied. Screen readers can read it aloud, which makes text PDFs more accessible than images of text.
Headers, page numbers and long documents
For multi-page documents, page numbers help readers refer to specific sections. If you need them, add them afterwards with Add Page Numbers to PDF, choosing a style such as "Page 3 of 12". Put a title at the top of the text itself, followed by a blank line, so the first page clearly says what the document is.
Text PDFs for formal submissions
Statements, cover letters and declarations are often written as plain text and submitted as PDF. A few touches make them look professional. Put your full name, the date and a short title such as "Statement of Purpose" in the first lines. Leave a blank line between paragraphs so the text breathes. Keep to one font and one size throughout, and finish with your name, as you would in a letter. If a signature is required, print the PDF, sign it and scan the signed page, or follow the organisation's instructions for electronic signatures.
Privacy
Text files often contain notes, passwords copied by mistake or private messages. This converter builds the PDF inside your browser, so the text never leaves your device. Before saving, scan the preview for anything you would not want to share.
Frequently asked questions
How do I convert a TXT file to PDF?
Press Or open a .txt file and choose the file; its text appears in the box. Choose the font and page settings and press Create PDF. The PDF is made on your device and is ready to download straight away.
Which font should I use?
Helvetica is clean and easy to read on screen, Times suits formal letters and long documents, and Courier is monospaced, so every character has the same width, which keeps code, logs and plain-text tables lined up.
Why are some characters replaced with question marks?
The standard PDF fonts cover English and Western European languages only. Emoji and letters from scripts such as Chinese, Arabic, Hindi or Cyrillic are not included, so they are replaced and counted in the message.
Is the text in the PDF searchable?
Yes. The text is written as real text, not as an image, so you can select, copy and search it in any PDF reader, and screen readers can read it aloud.
How are long lines handled?
Lines longer than the page width are wrapped at spaces, and words longer than a whole line are broken. Line breaks and blank lines in your text are kept, and tabs become four spaces.
Is my text uploaded?
No. The PDF is created by code running in this page on your own device. Your text is never sent to a server or stored.
Can I convert code or a log file to PDF?
Yes. Open the file or paste its contents and choose Courier, the monospaced font, so indentation and columns stay lined up. A smaller size such as 9 or 10 points fits more of each long line on the page before it wraps.
Does it work on a phone?
Yes. Paste text into the box from any app, or open a .txt file from your phone's storage, choose the font and page settings and tap Create PDF. The PDF downloads to your phone, ready to share, print or attach to an email.