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.
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.
- 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.
- Type the title. It is set centred at 1.7 times the base size on the first page only, followed by a blank line.
- Choose A4, portrait, normal margins (54 points), base font 12 pt, line spacing 1.5 and page numbers on.
- 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.
- 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.
- 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
- Paste or type your text
- Choose page size, orientation and margins
- Set the font size, spacing and page numbers
- 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
- A4, Letter and Legal page sizes
- Portrait and landscape
- Three margin presets and 10-16 pt type
- Markdown subset for headings and lists
- Unsupported character report
Limits worth knowing
- Only the standard built-in fonts are used, so Thai, Chinese, Japanese, Korean, Arabic, Hindi and emoji cannot be printed. Unsupported characters are replaced with a question mark or removed, and the exact characters and their counts are listed before export.
- Markdown support is a subset: headings, bullets, numbered items, bold and italic. There are no tables, images, links, code blocks or footnotes, and text cannot be placed anywhere except in the flowing column.
- There is no visual page preview. The live estimate gives the word count, the laid-out line count, the page count and the first 20 lines as plain text, and that is what stands in for a preview.
- Layout choices are fixed sets: A4, Letter or Legal, portrait or landscape, three margins, base font 10 to 16 pt, line spacing of 1.15, 1.5 or 2, and footer page numbers on or off. There is no header text, no font choice and no image placement.
- The PDF is built locally with jsPDF and nothing is uploaded, so the result is real selectable text rather than a picture of a page.
When to use it
- A student converts lecture notes into a printable PDF with page numbers before an exam.
- An office worker turns a pasted email thread into a clean document to attach to a report.
- A developer exports a README or a set of instructions as a PDF for a colleague who prefers print.
- Someone preparing a form or a letter needs a specific page size and margin that a text editor cannot set.
- A teacher turns a plain list of questions into a numbered, paginated handout.
Practical tips
- Check the unsupported character count before generating if your text contains Thai, Chinese, Japanese, Korean, Arabic, Hindi or emoji, because those characters cannot be printed with the built-in fonts.
- Use the line spacing of 1.5 for anything longer than a page: it costs paper but reads far better.
- Leave page numbers on for documents that will be printed and handled, and turn them off for a single page.
- Start a new paragraph with a blank line, since the tool treats a blank line as a paragraph break and a single newline as a line break.
- For a long document, generate once and check the page count against the estimate: they are computed the same way, so a mismatch would indicate a problem worth reporting.
Why use this tool
- Produce a properly paginated PDF from plain text without opening a word processor or creating an account.
- Control the page size, margins, font size and line spacing, which is what makes a document actually readable in print.
- See an honest page and line estimate before generating, calculated by the same layout code that writes the file.
- Find out immediately which characters cannot be printed, instead of discovering it in the finished document.
- Choose exact millimetre page sizes such as A4, Letter or Legal, and switch between portrait and landscape.
When this is not the right tool
- The document must contain Thai, Arabic, CJK or full Vietnamese diacritics — A word processor, LibreOffice or LaTeX, all of which embed a Unicode font. No font can be added here, and the fallback characters are not acceptable in a real document.
- The source is an existing PDF whose text has to be changed — PDF to Text to get the characters out, edit them, then rebuild the layout here, or open the original in a PDF editor. This tool starts from plain text only.
- A table, a form or precise element placement is required — A word processor, or a spreadsheet exported to PDF. This tool flows paragraphs into a single column and cannot draw a table or a grid.
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
- Merge PDF — Free Merge PDF tool — combine multiple PDF files into a single document in seconds.
- Split PDF — Free Split PDF tool — extract specific pages or page ranges from any PDF file.
- Compress PDF — Free PDF Compressor — reduce the size of a PDF by re-rendering each page as a JPEG image.
- Rotate PDF — Free Rotate PDF tool — turn PDF pages 90, 180, or 270 degrees with visual preview.
- Watermark PDF — Watermark PDF adds text or image watermarks to PDF documents.
- Page Numbers PDF — Page Numbers PDF adds page numbers to your PDF documents.
- Unlock PDF — Free Unlock PDF tool — remove password protection and security restrictions from PDF files.
- Sign PDF — Free Sign PDF tool — add digital signatures to PDF documents using drawing (mouse or touch), typed text with cursive fonts, or uploaded signature imag
- Document Scanner — Free Document Scanner — scan documents using your phone or webcam camera, similar to CamScanner and NAPS2.
- PDF to Text — PDF to Text extracts all text content from PDF documents.
- PDF to JPG / PNG — PDF to Image converts PDF pages to high-quality JPEG or PNG images.
- Rearrange PDF — Rearrange PDF lets you reorder pages within a PDF document by dragging and dropping.