AnyFormat

00 TXT → PDF

TXT to PDF

Re-wraps to the page rather than cutting long lines off.

01TXT in
02PDF out
03Options 7

72 points is an inch. 56 is about 2 cm, which is a normal book margin.

1.45 is comfortable for continuous reading. 1.15 is tighter; 2 is double-spaced.

On for poetry, code or anything already laid out. Off re-wraps paragraphs to the page width.

  • No upload The conversion runs in this tab. Your file never travels — not to us, and not to the advertising.
  • No sign-up, no email, no daily cap There is no account system to sign up to.
  • No size limit we invented Only your device's memory — about ~2 GB on a desktop browser, ~400 MB on a phone.
  • Turn your Wi-Fi off and convert anyway The conversion needs nothing but this page. Ads will not load without a connection; your file will still convert. That is the whole claim, and it takes five seconds to check.

Typesets a plain text file into a PDF. The word wrapping is measured against the actual font, so long lines re-flow to the page instead of running off the right edge — which is what happens when a text file is simply printed.

Re-wrapping, and when not to

By default a blank line starts a new paragraph and single line breaks within a paragraph are treated as soft wraps, so the text re-flows to whatever page width you choose. That is right for prose written in a text editor with hard wraps at 72 or 80 columns.

It is wrong for anything where the line breaks are meaningful: poetry, song lyrics, source code, ASCII tables, log files. Turn on Keep every line break for those, and pair it with the monospaced typeface so columns line up.

Page breaks are measured, not guessed

Lines are laid out against the font's real metrics and a new page begins when the next line would fall below the margin. Nothing is cut in half at a page boundary, and a heading is never left stranded at the foot of a page without at least one line under it.

Latin script only, and why

PDF has fourteen built-in fonts that every reader already has, and they cover WinAnsi — Latin letters, accented European characters, curly quotes, the euro and pound signs. Nothing else.

Writing Chinese, Japanese, Korean, Arabic, Hebrew, Thai, Devanagari or Cyrillic means embedding a font that contains those glyphs, and a font with usable CJK coverage is several megabytes. Downloading that on the chance a visitor needs it is not a reasonable trade for a page that mostly converts English.

So instead of producing a document full of blank boxes, unencodable characters become a question mark and the conversion tells you exactly how many were affected and which script they belonged to. If your text is in one of those scripts, this is the wrong tool and you should use a desktop converter — that is a more useful answer than a broken file.

Encoding

UTF-8, UTF-16 with a byte-order mark, and Windows-1252 are all detected automatically, so a file written on an old Windows machine reads correctly rather than as mojibake. A UTF-8 byte-order mark is stripped so it does not appear as an invisible first character.

Other names for this

Also searched as “text to pdf”, “convert txt to pdf”, “notepad to pdf”.

Questions

My poem lost its line breaks.
Turn on “Keep every line break”. Re-wrapping is the default because most text files are hard-wrapped prose.
Can I convert a log file?
Yes — keep the line breaks and choose the monospaced typeface so the columns stay aligned. Consider landscape for wide logs.
Is there a watermark?
No, and no page limit or sign-up either.
Is my file uploaded?
No. The PDF is built in this tab and handed to you as a download. That matters here more than most places: the documents people convert to PDF are contracts, CVs, medical letters and manuscripts.
Can I convert several files at once?
Yes. Drop as many as you like, or a whole folder. Each becomes its own PDF keeping its original name.