Text to PDF

Turn plain text into a clean, printable PDF. Choose the page size, orientation, margins, font size and line spacing, add page numbers, and use a small Markdown subset for headings, lists, bold and italic. The page estimate is calculated with the same layout code that produces the file.

Free online tool · PDF Tools · No installation · No sign-up required

Overview

Not every document needs a word processor. Notes, a README, a pasted article, a log excerpt, a set of instructions: often the goal is simply a tidy PDF that prints correctly and can be attached to an email. This tool takes plain text and lays it out on real pages, with control over the details that actually matter when something is printed, such as the page size, the margins and whether the pages are numbered.

The layout engine measures text with the same font metrics used to write the file, wraps paragraphs to the usable width, and starts a new page when the current one is full. Because the preview estimate and the generated PDF use the same layout function, the page count you see before generating is the page count you get. A small Markdown subset is supported for structure: headings, bullet and numbered lists, bold, italic and inline code. Long unbroken strings such as URLs are split rather than allowed to run off the page.

One limitation is stated plainly because it cannot be worked around without embedding a font: the built-in PDF fonts cover Western European characters only. Accented letters found in Portuguese, Spanish, French and German are fine. Thai, Chinese, Japanese, Korean, Arabic, Hindi and emoji cannot be printed. The tool counts those characters, lists them, and either replaces them with a question mark or removes them, so you find out before you print rather than after.

Worked example

Turning a 620-word statement of account into a 2-page A4 PDF

A freelancer in Manila writes a 620-word statement of account covering seven invoices, headed Statement of Account - March 2026, and needs a tidy A4 PDF to email to a client.

  1. Paste the text into the box. The word and character counters update immediately, and a live estimate runs the same layout code the export uses, reporting laid-out lines and pages.
  2. Type the title. It is set centred at 1.7 times the base size on the first page only, followed by a blank line.
  3. Choose A4, portrait, normal margins (54 points), base font 12 pt, line spacing 1.5 and page numbers on.
  4. The estimate settles at 2 pages. There is no rendered page preview: the counts of lines and pages and the first 20 lines as plain text are what you check instead.
  5. Press Create and download PDF. The file is named from the title, statement-of-account-march-2026.pdf, about 12 KB, with Page 1 of 2 centred in the footer 27 points above the bottom edge.
  6. Had the text contained Thai, Japanese, Arabic or emoji, the header would have counted them and the export would have replaced each one with a question mark, or removed it if the replace option were unticked.

Result: A 2-page A4 PDF with selectable text, because it is written with the standard PDF fonts rather than as an image. The limits are built in: only a small Markdown subset is understood, and any script outside the Western European range will not print.

How to use Text to PDF

  1. Paste or type your text
  2. Choose page size, orientation and margins
  3. Set the font size, spacing and page numbers
  4. Review the page estimate and download the PDF

Common mistakes

Pasting Thai, Arabic, Hindi, CJK or emoji and expecting them in the PDF.

The built-in fonts cover Western European letters only. Thai, CJK, Arabic, Hindi and emoji become question marks or are removed, and heavy diacritics elsewhere are reduced to their base letter. The tool lists the exact characters it changed before you download, so read that list.

Using headings, tables, block quotes, links or code blocks from a Markdown file.

Only a subset is understood: one to three hash marks for headings, minus or star bullets, numbered items, double asterisks for bold and single ones for italic. Tables, images, links, horizontal rules, code fences and quotations arrive as ordinary text.

Padding a document with blank lines to control spacing.

Consecutive blank lines collapse into a single spacer, so empty paragraphs do nothing. Use line spacing 1.5 or 2 and a wider margin to spread the text across more of the page.

Trusting the estimate to the exact line for text with mixed bold and italic.

The estimate uses the same measurement code as the export, so it matches for plain text. Inline bold or italic changes character widths slightly and the final file can differ by a line at a page boundary. Check the result when the last page holds only one or two lines.

Features

Limits worth knowing

When to use it

Practical tips

Why use this tool

When this is not the right tool

Frequently asked questions

Can I use Thai, Chinese or emoji?

No. The built-in PDF fonts cover Western European characters only. Those characters are counted and either replaced or removed, and the tool tells you which ones. For full Unicode, use a word processor with an embedded font.

Is the page count accurate?

Yes. The estimate uses the same layout function that generates the PDF, so the page count matches the file you download.

Does it support Markdown?

A subset: headings, bullet and numbered lists, bold, italic and inline code. It is not a full Markdown implementation and the interface says so.

Is my text uploaded?

No. The PDF is assembled in your browser, so the text never leaves your device.

Related tools in PDF Tools