Skip to content
TabShedKitsMy desk

Plain Text to PDF: Keeping Line Breaks, Choosing a Font Style, Combining Files

Updated 5 min readBy

Turn pasted text or .txt files into a PDF. How line breaks and paragraphs are treated, which style to use, and when you need a real document editor.

Text to PDFType or paste text, download a PDF
Open Text to PDF
On this page
  1. How line breaks are treated
  2. Step by step
  3. Choosing a style
  4. Languages and symbols
  5. Combining several files
  6. Where your draft lives
  7. Worked example: a log for a bug report
  8. Worked example: a poem or a speech
  9. When you need more than text
  10. Common problems
  11. FAQ

Plain text is the most durable format there is, and the most awkward to hand to someone: they get a file with no margins, a font they did not choose, and line breaks that depend on their window width. A PDF fixes that. If all you have is text, such as notes, a poem, a log, a letter drafted in a text editor or a transcript, turning it into a PDF should not require a word processor. The Text to PDF tool does it in your browser, and the details below explain what it does with the shape of your text.

How line breaks are treated

This is the first question for anyone converting text, because text files use line breaks in two different ways: as the end of a line and as the end of a paragraph.

In your textIn the PDF
A single line breakStays a line break
A blank lineStarts a new paragraph

That makes the tool a good fit for poems, lyrics, addresses and logs, where every line break matters, and a less natural one for text exported from an email or a hard-wrapped file where a line ends at column 72 in the middle of a sentence. If your text has hard wraps, every wrapped line will become a line in the PDF. Remove the extra breaks first (a find and replace in your editor, or paste into the document editor and join lines), or choose a style and margins that make the lines wrap again.

Step by step

  1. Type or paste your text, or drop one or more .txt files. A blank line starts a new paragraph.
  2. Choose A4 or Letter, the margins, a Clean, Serif or GitHub style, the text size and whether to number the pages.
  3. Download the PDF. One file gives a PDF; several files give a ZIP of PDFs, or one combined PDF.

Choosing a style

  • Clean is a neutral sans-serif; good for notes, logs and lists you will print.
  • Serif reads like a book or a letter; good for prose, speeches and poems.
  • GitHub gives the technical look of a repository page; fine for plain-text documentation.

Size matters more than style. Aim for text that is comfortable on paper at arm's length; the middle size is usually right, and a larger size suits handouts for people who read from a distance. Page numbers are worth switching on for anything over a page, so a printed copy can be referred to.

Languages and symbols

Vietnamese, Cyrillic and Greek text are embedded as real text, so they remain selectable and searchable. Chinese, Japanese, Korean and emoji are drawn as small pictures: they look correct but cannot be searched. If you need text in those scripts to be searchable, use the document editor and export to Word or HTML rather than PDF.

Combining several files

Drop several .txt files to get a ZIP with one PDF each, or switch on the combined option to join them into one PDF. This works well for turning a folder of meeting notes or chapter drafts into one document. Name files so that the order is obvious, and check the order before downloading. Add page numbers to the combined file for easy reference.

Where your draft lives

The PDF is made in your browser, and the text is not uploaded. A draft is kept only in this browser so it is still there when you come back. That is convenient, but remember that a different browser or a cleared cache will not have it; keep your own copy of the text file if it matters.

Worked example: a log for a bug report

You have a 300-line log that a support person asked for as a PDF. Paste the text, choose Clean with a smaller size so lines do not wrap awkwardly, and turn on page numbers. Check the preview: very long lines wrap, and if the log has fixed columns, the alignment may shift with a proportional font. If the layout matters, a monospaced style helps; if the tool offers only the three styles, consider whether the person really needs a PDF and not the original text file.

Worked example: a poem or a speech

Each stanza is separated by a blank line, which becomes a paragraph gap, and the line breaks inside a stanza stay as they are. Choose Serif, a larger text size and wide margins, and add page numbers only if the piece runs over several pages. Print one copy and read it aloud; the PDF is a handy handout.

When you need more than text

Text to PDF cannot do headings, bold, lists or pictures, because plain text has none of them. If you write with # headings and lists, use Markdown to PDF. For visual formatting, tables and pictures, write in the document editor. To sign or annotate the result, open it in the PDF editor.

Common problems

  • Odd characters appear. The file may use an old encoding. Save it as UTF-8 in your editor and try again.
  • Every line is a paragraph. The source had a blank line between each line; remove them.
  • Everything runs together. The source had no blank lines between paragraphs; add them.
  • Too many pages. Reduce text size or margins, or turn off page numbering to gain a line.

FAQ

Is my text uploaded?

No. The PDF is made in your browser.

Are line breaks kept?

Yes. A single line break stays a line break and a blank line starts a new paragraph.

Is there a watermark or an account?

No watermark, no account and no page limit.

Can I convert many .txt files?

Yes, as a ZIP of PDFs or one combined PDF.