Plain text is the simplest file there is, and it is also the one that is awkward to hand to someone else: it opens differently on every device and has no pages. Turning it into a PDF fixes that. The free Text to PDF tool takes pasted text or a .txt file and makes a clean PDF with the page size, margins, font and page numbers you choose. It runs in your browser, so your text is not uploaded.
This guide covers both layouts, every setting, what happens to long lines, tabs and other scripts, and how to fix common surprises. If your text is really HTML or Markdown, the sibling tools are HTML to PDF and Markdown to PDF.
What Text to PDF does
The tool reads your text, tidies it, and draws it onto PDF pages. It can:
- Convert text you type or paste, or a text file you open.
- Flow it as paragraphs, or keep every line and space exactly as typed.
- Add an optional title at the top of the first page.
- Add "Page 1 of 3" at the bottom of every page.
It does not add formatting such as bold or headings, because plain text has none. It also does not read Markdown or HTML marks; they are printed as characters.
How to use Text to PDF, step by step
- Open Text to PDF.
- Type or paste your text into the box labelled "Text to convert". You can also press Open file, or press Try an example to see how the tool behaves.
- Under Text settings, choose the Layout: Paragraphs or Exactly as typed. Add a Document title (optional) if you want one.
- Under PDF options, pick the Page size, Margins, Font and Text size, and tick Page numbers at the bottom (Page 1 of 3) if you want them.
- Press Convert to PDF & download. The PDF is saved at once, with a preview and its page count.
The Convert button stays disabled until there is some text. A file you opened is named after it, with .pdf in place of .txt; pasted text is saved as text.pdf. Every download from this site starts with "Tech Solution Point - ". Clear empties the box, and changing any option after converting clears the old result so that you press Convert again.
The Open file button is the only way to load a file; there is no drop zone and no size limit. Files are read as UTF-8 text.
Every option explained
Layout: Paragraphs
A blank line starts a new paragraph. Single line breaks inside a paragraph are kept. Each line is trimmed, so spaces at the start and end of lines are dropped, and several blank lines in a row count as one gap. Lines that are longer than the page wrap to the next line. Use this for letters, notes, articles and anything meant to be read.
Layout: Exactly as typed
Uses a typewriter font, and every line, blank line and space is kept as typed, including indentation. Leading and trailing blank lines at the very start and end are removed, and spaces at the end of lines are dropped. Use this for logs, code, configuration files and tables made with spaces.
In this layout the Font setting is greyed out and shows Courier, because the typewriter font is always used. Page size, Orientation, Margins, Text size and page numbers still apply. A line that is wider than the page wraps, so check the preview for text tables. As a guide, a typewriter font is 0.6 times as wide as its size, so on A4 with Normal margins about 73 characters fit on a line at Normal (11 pt) and about 89 at Small (9 pt). Narrow margins give more.
Document title (optional)
Prints your title in large bold type at the top of the first page and also saves it in the PDF's properties, which many viewers show in the tab or title bar. It can be up to 120 characters. With no title, a file you opened uses its file name as the PDF title, and nothing extra is printed.
Page size and Margins
A4, US Letter or US Legal, with Narrow (1.27 cm), Normal (2 cm) or Wide (2.54 cm) margins. A4 and Normal suit most documents in Bangladesh. Narrow margins fit more on a page and Wide ones leave room for binding.
Font and Text size
Font is Sans-serif (like Arial) or Serif (like Times). Text size is Small (9 pt), 10 pt, Normal (11 pt), 12 pt or Large (14 pt). Both apply to Paragraphs. With Exactly as typed only the size applies.
Page numbers at the bottom (Page 1 of 3)
Adds a small grey "Page 1 of 3" centred at the bottom of every page.
What it accepts and its limits
- Files:
.txt,.text,.log,.csv,.md,.json,.xml,.ini,.cfg,.conf,.ymland.yaml. All are printed as plain text. - Tidying: a byte-order mark is removed, Windows line endings become ordinary line breaks, tabs become four spaces, and invisible control characters and zero-width spaces are removed.
- Size: the page sets no limit. Your device's memory is the limit, and text in scripts like Bangla takes longer because each line is drawn separately.
- Empty input: if there is nothing to print, you get "There is nothing to put in the PDF. Check the text."
- Other scripts: English and other text that the standard PDF fonts can draw stays real, selectable text. Anything else, such as Bangla, Arabic, Chinese, emoji, and symbols like the Taka sign ৳, is drawn by your browser and placed as a small picture. A line with Bangla, Arabic or Chinese letters becomes a picture as a whole, so a line that mixes Bangla and English cannot be selected. A symbol such as ৳ in an English line is drawn as a picture on its own, and the rest of that line stays selectable. A note appears when this has happened. If every character must be selectable, write "Tk" or "BDT" for money.
Privacy
Text to PDF runs in your browser. Your text is read and drawn into a PDF on your device and is not uploaded, so it is fine for letters, application drafts and private notes.
A worked example
Here is a leave application typed in a notes app:
Date: 27 November 2026
The Principal
Dhaka Model High School
Dhaka
Subject: Application for leave
Sir,
I am a student of Class 8, Roll 14. I was ill with fever
and could not attend school on 24 and 25 November.
Kindly grant me leave for those two days.
Yours obediently,
Rahim Uddin
In Paragraphs mode with A4, Normal margins, Serif and Normal (11 pt), the blank lines split it into five paragraphs. The line breaks inside "Sir, I am a student…" stay as typed, and so do the address lines. Add the title "Application for leave" if you want a heading, and tick Page numbers if you will print several pages.
Now a price list that you aligned with spaces:
Item Qty Price (Tk)
Rice 50 kg 2 5,600
Oil 5 litre 4 3,900
In Paragraphs mode a proportional font may not line these columns up. In Exactly as typed, with the typewriter font, the spaces keep the columns in line, as they were in your editor.
Tips to work faster
- Use Exactly as typed for anything where spaces matter: logs, code, plain-text tables.
- For JSON, format it first with the JSON Formatter, see the JSON Formatter guide, then convert it in Exactly as typed.
- If your text came from a PDF, first run it through PDF to Text, and tick Join broken lines into paragraphs there to remove line breaks at the page width.
- Convert several files separately and combine them with Merge PDF.
- Add page numbers across a combined file afterwards with PDF Page Numbers.
- If the file is large, use Compress PDF.
Common problems and how to fix them
Short stub lines appear in the middle of paragraphs
Your text has line breaks at a fixed width, as in text copied from an email or a PDF. Paragraphs mode keeps single line breaks, so a line that is longer than the page wraps and leaves a short stub. Remove the line breaks inside paragraphs in a text editor, leaving blank lines between paragraphs.
My indentation disappeared
In Paragraphs mode each line is trimmed. Switch Layout to Exactly as typed.
Lines in the table run off the page or wrap
The line is longer than the page. Use Small (9 pt) and Narrow margins, or shorten the lines in your text. Or choose Landscape under Orientation, which makes every line longer.
Markdown symbols and HTML tags are printed
The tool treats everything as plain text, so # and ** appear as typed. Use Markdown to PDF or HTML to PDF for those.
Odd characters appear
The file is read as UTF-8. If the file was saved in an older encoding, open it in an editor and save it as UTF-8, then open it again here.
Bangla text cannot be selected or searched
That is how scripts outside the standard fonts are handled, as described above. If you need a searchable copy, run the PDF through PDF OCR.
Related tools
- Markdown to PDF: notes with headings, lists and code blocks.
- HTML to PDF: HTML code or a saved page as a PDF; see the HTML to PDF guide.
- Word to PDF: a Word document as a PDF.
- PDF to Text: go the other way and get the text of a PDF.
Quick checklist
- Choose Paragraphs for reading, Exactly as typed for logs, code and tables.
- Add a title if the document needs a heading.
- Keep money as "Tk" or "BDT" for selectable text.
- Check long lines in the preview before sending.
- Save your text as UTF-8 if characters look wrong.



