Home/Converter Tools/TXT to PDF
📄

TXT to PDF

FREE

Turn plain text into an A4 PDF at a chosen font size

Free · No sign-up required
Loading...

What TXT to PDF does

This tool turns plain text into a clean PDF: A4 pages, Helvetica at the size you choose, consistent margins, page breaks where the text runs out of room. Paste text or open a .txt file, set the font size, and download. It is the fastest way to turn notes, logs, code, lyrics, a README or a transcript into a document that opens identically on every device, prints predictably and can be attached where .txt is refused. Everything runs in your browser.

Layout details

SettingValue
Page sizeA4 (210 × 297 mm)
Margins50 pt (about 18 mm) on all sides
FontHelvetica (standard PDF font, no embedding needed)
Font sizeYour choice; 12 pt default
Line height1.4 × font size
Lines per page at 12 ptAbout 44
Characters per line at 12 ptAbout 90 — longer lines run off the right edge

Lines are placed exactly as they appear in the source text. Very long lines are not automatically wrapped, so hard-wrap your text at 80–90 characters (for 12 pt) before converting, or lower the font size for wide content such as log output.

Choosing a font size

  • 10–11 pt — dense reference material, logs, code listings; about 105–115 characters per line.
  • 12 pt — normal reading; the standard for letters and essays.
  • 14–16 pt — large print for accessibility or reading at a distance.
  • 8–9 pt — fitting long lines such as wide tables or diffs; readable but small.

Common uses

  • Submitting notes, transcripts or code samples where the portal accepts PDF only.
  • Printing logs and configuration files with page numbers and predictable pagination (add numbers afterwards with Add Page Numbers).
  • Archiving text in a format that will render the same way for decades.
  • Turning meeting minutes or a plain-text draft into a shareable document without opening a word processor.
  • Producing a printable copy of an email or chat export.

Characters and encoding

Helvetica as a standard PDF font covers Latin characters with Western European accents (the WinAnsi set). Characters outside it — Thai, Chinese, Cyrillic, Greek, emoji, some symbols — cannot be drawn with that font and will be dropped or shown as blanks. For non-Latin text, use a word processor that embeds a Unicode font and export to PDF from there. Tabs are rendered as spaces; other control characters are ignored.

TXT to PDF vs printing to PDF

Every operating system can “print” a text file to PDF, and for occasional use that is fine. This tool is quicker when you have text on the clipboard rather than in a file, gives consistent margins and font regardless of platform, and works on phones and locked-down machines where the print dialog is awkward or unavailable.

Frequently asked questions

Why do long lines get cut off?

The tool does not wrap lines. Break long lines in a text editor first (most have a 'hard wrap' or 'reflow' command), or reduce the font size.

Can I change the page size or margins?

Not in this tool — it is fixed at A4 with 50 pt margins. Use Resize PDF Pages on the result to switch to Letter.

Can I use a monospaced font for code?

Not here; the output is Helvetica. For code, a text editor's print-to-PDF or a Markdown tool with syntax highlighting is better.

Why are my Thai / Chinese / emoji characters missing?

The standard Helvetica font does not contain them. Export from a word processor with an embedded Unicode font instead.

Does it add page numbers?

No. Run the output through Add Page Numbers if you need them.

Is my text uploaded?

No. The PDF is built with pdf-lib in your browser.

More tools in this category

🖼
JPG to PNG
Convert JPG to lossless PNG for editing or PNG-only uploads
🌐
JPG to WebP
Re-encode JPG as WebP for 25–35% smaller web images
🌐
PNG to WebP
Shrink PNG screenshots and graphics to WebP, transparency kept
🖼
WebP to PNG
Convert WebP downloads to lossless PNG with transparency
📱
HEIC to PNG
Convert iPhone HEIC photos to lossless PNG
SVG to PNG
Render an SVG to a PNG at any pixel size