Text to PDF
Text to PDF turns pasted text or a plain text file (TXT, MD, CSV, LOG) into a tidy PDF with your choice of paper size, font, text size, line spacing and margins. It can add a title and page numbers. It is for students, office workers and developers who need text as a PDF to print, send or upload.
Printed in bold on the first page and used as the PDF's title and file name.
Type or paste text, or choose a file. The PDF is made as you type.
Your text is turned into a PDF on this device and never uploaded. The fonts are built into the PDF, so it looks the same on every phone and computer.
What is the Text to PDF?
Text to PDF lays out plain text on real pages and saves it as a PDF file. Paste your text or choose a file, and the PDF is made on your device as you type. Long lines wrap at the margin, while line breaks, blank lines and indents are kept, so lists, poems, logs and code keep their shape. Choose A4, Letter, Legal or A5 paper, a clear sans font (Inter) or a monospace font (JetBrains Mono) for code and tables, a text size from 10 to 14 pt, single, 1.5 or double line spacing and the margins. Add a title to print it in bold at the top and use it as the file name. The fonts are embedded in the PDF, so accented letters, curly quotes and currency signs such as ₹, ₦, € and £ print correctly.
Who it is for: Students submitting notes or assignments as PDF, office workers sending letters and lists, and developers saving logs, code or data files to share or print.
How to use the Text to PDF
- Paste or type your text, or choose a TXT, MD, CSV or other plain text file.
- Add a title if you want one at the top of the first page.
- Choose the paper size, font, text size, line spacing and margins.
- Press Download PDF.
Why use it
- Keeps your layoutLine breaks, blank lines and indents stay where you put them.
- Real fonts insideEmbedded fonts show accents and ₹, ₦, € and £ on every device.
- Print-ready pagesA4, Letter, Legal or A5 with a title and page numbers.
- PrivateYour text never leaves your device.
At a glance
- What you put in
- Pasted text or one plain text file (TXT, MD, CSV, LOG, JSON, XML, YAML, SRT) up to 5 MB
- What you get
- A PDF with selectable text, embedded fonts, an optional title and page numbers
- Limits
- Prints Latin, Greek and Cyrillic letters; Hindi, Arabic, Chinese, Japanese and emoji print as ?. Markdown is printed as plain text, not formatted. Files up to 5 MB
- Privacy
- Runs in your browser. Nothing you enter is uploaded or stored.
- Price
- Free for everyone. No subscriptions, no payments, no watermark.
- Works offline
- Yes, once the page has loaded
- Last checked
- by AK Shine
Worked example
A packing list of 11 lines with a title, Packing list for the trip, on A4 in 11 pt Inter with single spacing
Made a 1-page PDF (A4, about 9 KB): 40 words on 11 lines. The title prints in bold at the top, the list keeps its blank lines and dashes, and €35, 4°C, £200 and ₦50,000 print correctly.
An A4 page with normal 20 mm margins fits about 50 lines of 11 pt single-spaced text, so a list this short fits on one page with room to spare.
When to use something else
- For text in Hindi, Arabic, Chinese, Japanese or with emoji, use HTML to PDF, which prints through your browser and shapes those scripts correctly.
- For a Word document with headings, tables and pictures, open it in Word or Google Docs and save it as PDF from there; this tool takes plain text only.
- To add page numbers or a watermark to an existing PDF, use Add Page Numbers to PDF or Watermark PDF.
Questions people ask
How do I convert a TXT file to PDF?
Choose the TXT file in the box, pick the paper size, font and text size, then press Download PDF. The file is read and turned into a PDF on your device, so nothing is uploaded.
Will my line breaks and spacing be kept?
Yes. Every line break and blank line is kept, and spaces at the start of a line stay, so indented lists and code keep their shape. Lines longer than the page are wrapped at the margin. Tabs become four spaces.
Can I convert code or a CSV file to PDF?
Yes. Choose the monospace font (JetBrains Mono), so every character has the same width and columns line up. A smaller text size such as 10 pt and narrow margins fit more on each line.
Why do some characters show as a question mark?
The embedded fonts cover Latin, Greek and Cyrillic letters, but not scripts such as Hindi, Arabic or Chinese, or emoji. Those print as ? and the tool tells you how many. Use HTML to PDF for text in those scripts.
Can I copy or search the text in the PDF?
Yes. The text is real text, not a picture, so you can select it, copy it and search it in any PDF reader. It also stays sharp when you zoom in or print.
What paper size should I use?
Use A4 in India, Nigeria, the UK, the UAE and most other countries, and Letter in the US and Canada. Legal is a longer US paper used for some forms, and A5 is half of A4, useful for booklets and small notes.
Is there a limit on how much text I can convert?
Files can be up to 5 MB, which is roughly 800,000 words or about 2,000 pages of single-spaced text. Very long texts take a few seconds on a phone, and the PDF updates a little after you stop typing.