Text to PDF Converter

Turn plain text or a .txt file into a clean, readable PDF. Choose the page size, font, font size and margins, keep every line break, and add page numbers.

  • TXT, LOG, MD & more
  • Fonts, sizes & margins
  • Page numbers
Drop a .txt file here or click to choose Or type or paste your text in the box below · TXT, LOG, CSV, MD and other plain text files
Lines: 0 · Characters: 0

How to use the Text to PDF tool

  1. Add your textDrop a .txt file onto the box, or type or paste text into the text area.
  2. Choose the layoutPick the page size, orientation, font, font size and margins. Add a title if you like.
  3. ConvertClick “Convert to PDF”. The PDF downloads straight away.
  4. Or printUse “Print” to send the text to a printer, or choose “Save as PDF” in the print window.

Features

  • Line breaks keptEvery line, blank line and indent of your text appears in the PDF exactly where it was.
  • Long lines wrappedLong lines are wrapped to the page width, or kept on one line for logs and code.
  • Any languageUnicode text in any script, including accented letters, Hindi, Bengali, Arabic and emoji.
  • Print-ready layoutA4, US Letter, Legal or A5, portrait or landscape, with narrow, normal or wide margins.
  • Encoding detectedUTF-8, UTF-16 and older Windows-1252 text files are read correctly.

Why convert text to PDF?

A .txt file is the simplest document there is, but it looks different on every device: some apps change the font, some don’t wrap long lines, and phones may not open it at all. A PDF keeps the same layout everywhere and is the format most portals and printers expect.

  • Submitting notes, transcripts or code listings where only PDF is accepted
  • Printing logs, configuration files or lyrics with page numbers
  • Sharing meeting notes or a draft that should look the same for everyone
  • Archiving chat exports and plain-text reports

Choosing the right settings

TextSuggested settings
Notes, letters, essaysSerif or sans-serif, 11–12 pt, normal margins, wrap on
Code, logs, CSVMonospace, 9–10 pt, landscape for long lines
Large print for readingSans-serif, 14–16 pt, wide margins

Ideas for using it

  • Notes and drafts written in Notepad or on your phone, turned into a document you can print or email.
  • Code and logs. Choose a monospace font so columns and indentation line up exactly as they do in your editor.
  • Letters and applications typed as plain text, when you want a neat page without opening a word processor.
  • Stories, poems and scripts, where every line break matters and should stay where you put it.
  • Chat exports and transcripts that need to be archived or shared as a fixed record.

Why a PDF and not the .txt file?

A text file looks different on every device, because each app picks its own font, size and line width. A PDF fixes the page: the same font, the same line breaks and the same page numbers for everyone, on screen and on paper. It also cannot be changed by accident, which matters for anything you submit or keep as a record.

If your text needs headings, bold words or tables, write it in our Word Editor or Markdown Editor instead. Both can save as PDF too.

Related tools

For headings, lists and bold text, write in the Markdown Editor and export a formatted PDF. To combine the PDF with other files, use Merge PDF.

Frequently asked questions

How do I convert a TXT file to PDF?
Drop the .txt file on this page, choose the page size and font, and click “Convert to PDF”.
Will my line breaks and spacing be kept?
Yes. Every line break, blank line, space and tab is kept. Turn off “Wrap long lines” to keep long lines on a single line.
Does it work with Hindi and other languages?
Yes. The converter handles Unicode text in any language. If a script doesn’t display correctly in the downloaded PDF, use “Print” and choose “Save as PDF”, which uses the fonts on your device.
Can I add page numbers?
Yes. Keep “Page numbers” ticked to number each page at the bottom, for example “2 / 5”.
Is there a size limit?
Text files up to 10 MB can be opened. Very long texts may take a few seconds to convert.