Skip to main content
UFOZoo

Text to PDF Converter: TXT & Plain Text to PDF Online

Text to PDF converter online: turn TXT and plain text into a formatted PDF with font, size, and margin options for printing.

Updated 2026-08-26

Related Tools

Features

  • Paste any plain text or open a .txt file from your device and convert it to a PDF in one click
  • Automatic pagination: long notes, logs and drafts flow onto multiple pages with clean page breaks
  • Choose the paper size (A4 for international documents, Letter for North America) in portrait or landscape orientation
  • Add page numbers at the bottom of every page for multi-page documents
  • Three margin presets (narrow, normal, wide) control how much text fits on each page
  • Font size from 10 to 24 pt: dense handouts, comfortable reading, or large-print documents
  • Optional bold first line renders a title, a heading, or your name on a resume
  • Chinese text (GB2312) is fully supported with an embedded font; no boxes, real selectable characters
  • Line breaks and empty lines are preserved exactly; lists, notes and code blocks keep their structure, and long lines wrap at the page width without splitting words in half
  • The output is real vector text: selectable, copyable and searchable in any PDF reader; not a flat image
  • Live character and line counters update as you type or paste
  • No watermark is added; the PDF contains only your text, page numbers, and the layout options you chose

How to Use

  1. 1Paste your text into the editor, or click Open TXT to load a .txt file from your device
  2. 2Choose the paper size: A4 for most of the world, Letter for North American printers
  3. 3Pick portrait or landscape orientation; landscape suits wide tables, timelines and code listings
  4. 4Tick Page numbers to print a number at the bottom of every page
  5. 5Pick a margin preset: narrow fits the most text per page, normal is balanced, wide reads comfortably
  6. 6Select a font size: 10 pt for dense documents, 12 pt for standard reading, up to 24 pt for large print
  7. 7Enable Bold first line to render the first line as a heading
  8. 8Click Preview to generate the PDF; pages are laid out on the fly and the page count and file size appear
  9. 9Click Save PDF to download the file; the PDF is generated locally
  10. 10Notes example: turn scattered meeting notes or lecture notes into one tidy PDF for archiving or sharing with your team
  11. 11Code example: export code snippets or server logs as a PDF so colleagues can read them without losing indentation
  12. 12Resume example: write your resume as plain text, set A4 with wide margins and a bold title, then save a print-ready PDF

Frequently Asked Questions

How do I make a PDF from a text file?

Click Open TXT and choose any .txt file from your device, or paste text into the editor. Adjust the paper size, margins and font size, click Preview to generate, then save the result.

Can I choose A4 or Letter paper size?

Yes. Choose A4 for international use or Letter for North America. The paper size sets the dimensions of the output PDF and determines how many lines fit on each page.

Can I adjust the margins?

Yes. Three presets are available: narrow fits the most text per page, normal is a balanced default, and wide leaves generous white space around the text.

Are line breaks and paragraphs preserved?

Yes. Every line break and empty line in your text is kept in the PDF, so notes, lists and code blocks keep their structure. Long lines wrap automatically at the page width.

Can I convert Chinese text to PDF?

Yes. Chinese text (GB2312, the standard set of 6,763 common characters, plus full-width punctuation) is rendered with an embedded Chinese font, so Chinese PDFs come out as real selectable text. Very rare characters outside that set fall back to a placeholder box.

Why do some characters show as boxes in the PDF?

The PDF embeds three fonts: Helvetica for Latin text, a Chinese font covering the GB2312 character set, and a symbol font covering currency signs, arrows, math operators and emoji (rendered in monochrome). Only characters outside all three (extremely rare symbols) are drawn as a box so the conversion still succeeds.

Is the text in the PDF vector or an image?

It is real vector text, not an image: every word can be selected, copied and searched in any PDF reader. That makes the output easy to quote, search and reuse; for resumes, notes or any document.

Can I make the first line bold as a title?

Yes. Enable Bold first line and the first line is rendered as a bold heading, which works well for a document title or your name at the top of a resume.

Can I convert my notes to PDF?

Yes. Paste meeting notes, lecture notes or study summaries, choose a paper size and font, and generate a paginated, structured PDF that is easy to archive or share with your team.

Can I convert a very long document?

Yes. Text of any length is split into pages automatically: the tool counts how many lines fit per page based on your paper size, margins and font size, and adds as many pages as needed.

What font does the output use?

Latin text uses the built-in Helvetica standard font, with a bold variant for the optional title line; every PDF reader displays it identically and the file stays tiny. When your text contains Chinese, an embedded GB2312 font is added so the characters render correctly in any reader.

Can I add page numbers to the PDF?

Yes. Tick the Page numbers option and every page gets its number centered at the bottom, inside the margin so it never collides with the text. Useful for long documents that get printed or read in parts.

Can I create a landscape PDF?

Yes. Switch the orientation to landscape; the paper dimensions rotate, so wide content like tables, timelines and code listings gets more characters per line. Combined with A4 or Letter, it covers slides-style handouts too.

How do I fit all my text on one page?

Pick A4 (or Letter), choose the narrow margin preset and the smallest font size (10 pt); that combination fits the most lines per page. The tool then lays out as many pages as the text needs, so if it still overflows, the content is simply longer than one page: trim the text, or use your PDF reader's print-to-scale option for a hard squeeze.

Can I convert rich text with bold, colors or images?

No. This converter takes plain text only (the one exception is the optional bold first line, used as a title). Formatting pasted from Word or HTML is not preserved. If you need bold, colors or images in the PDF, export from Word/Google Docs directly, or use a dedicated HTML-to-PDF tool.

Can I make a resume as a PDF?

Yes. Write your resume as plain text, choose A4 (or Letter), select wide margins and 12 pt, and enable Bold first line so your name becomes the heading. The result is a clean, print-ready PDF.

Does it work on my phone?

Yes. The tool works on any device with a modern browser: paste text or open a .txt file on mobile, and the PDF is generated locally with the same settings and quality.

Why does my text to pdf converter produce more pages than I expected?

PDF layout is not a word processor: pages break by the font metrics in use, so text that fits on one page in Notepad or Word often wraps differently here. The default Helvetica at 12 pt with normal margins fits roughly 45-50 lines per A4 page, and long lines or wide characters (CJK, uppercase) take more space. Use a smaller font size, narrow margins, or the landscape orientation to fit more per page; the 'fit on one page' hint in the tool explains the tightest combination.

Why does my text to pdf converter online break the alignment of space-aligned columns?

Because the output font is proportional: spaces align only when the editor uses a monospaced font, but PDF text with proportional fonts renders each character at its own width, so columns drift. Turn on the tool's monospaced font option (or keep the source in a fixed-width font like Courier), and prefer real tab stops for alignment. This is a typography rule, not a bug in the converter.