esc
TXT → PDF

Text (TXT) to PDF:
Converter

TXT to PDF that keeps your line breaks and lines up columns.

Reverse PDF → TXT

How to convert Text (TXT) to PDF

  1. 01Add TXT filesChoose files or drop them on the page.
  2. 02Converted on your deviceNothing is uploaded. Adjust settings if you like.
  3. 03DownloadSave each file, or all of them as one ZIP.

Convert text (TXT) files to a clean PDF with proper margins, page breaks and a readable font. It suits notes, logs, transcripts, plain-text reports, code and Markdown files. The text to PDF conversion happens in your browser, and the words stay selectable in the PDF.

Which files work

Plain text files ending in .txt, .text or .log, plus Markdown (.md). The encoding is detected for you: UTF-8 and UTF-16 files with a byte-order mark, UTF-8 without one, and older Western European Windows text files are all read correctly, so accented letters come through.

Markdown files are formatted: headings, bold, italics, lists, links, code blocks and tables are rendered instead of showing raw # and * marks.

What the settings do

  • Page size. A4, US Letter or A3.
  • Text size. 11 pt by default, from 8 to 18 pt. Monospace text is set a little smaller so long lines fit.
  • Font. Auto picks Sans (Helvetica) for ordinary prose and Monospace (Courier) when many lines contain aligned columns, tabs or box-drawing characters, as in logs, tables and code. You can also force Sans, Serif (Times) or Monospace. Markdown files always use the sans font.

How the text is laid out

Pages have three-quarter-inch margins, and long lines wrap at the margin instead of running off the page. A blank line starts a new paragraph, while single line breaks and leading indentation are kept, so addresses and lists stay as written. Tabs become four spaces, and a form-feed character starts a new page.

In a prose file, a short block of lines aligned in columns is set in monospace on its own, so a small table or ASCII diagram stays lined up while the rest stays in the normal font.

Text outside Western European languages

The PDF’s built-in fonts cover English and Western European languages. Text in other scripts, such as Cyrillic, Greek, Arabic, Hindi or Chinese, is drawn with your device’s fonts as small images. It looks right and prints well, but those words can’t be selected or searched in the PDF.

At a glance

Price
Free. No sign-up, no watermark.
Privacy
Files are processed in your browser and never uploaded.
Accepts
TXT, TEXT, LOG, MD
You get
PDF
Batch
Convert many files at once and download them as a ZIP
Works in
Chrome, Edge, Firefox and Safari, on phones and computers
Offline
After the first conversion, it keeps working without internet

Questions

Are my files uploaded?

Never. Text (TXT) to PDF conversion runs in your browser, so your files stay on your device.

Can I convert many at once?

Yes. Add as many as you like and download them all as one ZIP.

Is there a size limit?

No fixed limit. The whole file is read into your browser’s memory, so the practical limit is your device’s free memory; a computer handles bigger files than a phone.

Can I convert a Markdown file to PDF?

Yes. Add the .md file and it’s formatted with headings, lists and tables. For a web page instead, use Markdown to HTML.

Will my code or log file keep its alignment?

Yes. Auto switches to monospace when it spots aligned columns, or you can pick Monospace (Courier) yourself.

Is the text searchable in the PDF?

Yes, for Latin-script text. Other scripts are drawn as images.

Can I convert TXT to PDF without changing the format?

Line breaks, blank lines and leading indentation are kept as written, and tabs become four spaces. Lines longer than the page wrap at the margin. If your file depends on aligned columns, choose Monospace (Courier) so everything lines up as it does in a plain-text editor.