↑ ↓ to move · Enter to open · Esc to close

Convert TXT files to PDF

Turn .txt, .log and other plain-text files into tidy, paginated PDFs with selectable text. Pages are laid out in your browser, and nothing is sent to a server.

Runs on your device — files are never uploaded. How to check

Drop .txt files here or choose files One or more files — one PDF per file
Font

About TXT to PDF

A text file has no pages. It is a stream of characters and line breaks, and its appearance depends on whichever editor opens it. This converter sets that stream on real pages, Letter by default or A4, with a 0.75-inch margin on every side. Long lines wrap at the margin rather than running off the edge, blank lines and leading indentation are preserved, and each tab becomes four spaces so indented blocks stay predictable. Wherever the file contains a form-feed character, a fresh page begins, the same convention old line printers followed.

You can choose between two typefaces. Sans, the default, suits notes, letters and prose. Monospace gives every character the same width, which keeps aligned columns, ASCII diagrams, source code and log output in their original shape. Font size can be 10, 11 (the default), 12 or 14 points.

Besides .txt, the tool accepts .log, .csv and .md files and treats every one as plain text. A CSV appears as its raw comma-separated lines, and Markdown keeps its pound signs and asterisks. If you want Markdown rendered with real headings, lists and tables, Markdown to PDF is the right tool.

How to use TXT to PDF

  1. Drop in your text filesChoose one or more .txt, .log, .csv or .md files, or drag them onto the tool. Each file is converted into a PDF of its own.
  2. Pick paper, typeface and sizeSelect Letter or A4, Sans or Monospace, and a font size between 10 and 14 points. Monospace is the better match for code, logs and anything aligned with spaces.
  3. Create and save the PDFsConvert, then download each PDF separately or, after converting several files, grab them all at once in a ZIP.

When people use it

  • A statement for a portal that wants PDF

    An HR system, a school or an insurer asks for a PDF, but you wrote your statement in a notes app that saves .txt. Convert it and upload a file that opens the same way on every device.

  • A log excerpt attached to a support ticket

    Choose Monospace so timestamps and columns line up. Long error lines wrap at the margin instead of vanishing past the page edge, so whoever reads the ticket sees each message in full.

  • Printing a stack of README or transcript files

    Add a whole set of text files in one go, choose the paper your printer uses, and download a ZIP containing one PDF per file, ready to print or archive.

How the text encoding is worked out

Plain-text files rarely say which encoding they use, so the converter looks for clues. UTF-8, the standard for modern editors, is assumed by default, and a UTF-8 byte order mark (BOM) at the start of the file is handled correctly. UTF-16 is recognised when the file opens with a BOM, which is how some Windows programs save “Unicode” text. Anything that fits neither is read as Windows-1252, the legacy encoding used by older Western-language Windows software.

That fallback is where garbled output comes from. A Russian file saved as Windows-1251 or a Japanese one saved as Shift-JIS will turn into a jumble of accented Latin letters and symbols. Open such a file in a text editor, save it as UTF-8, and convert it again.

Which fonts end up in the PDF

Text in the fileFont usedEffect on the PDF
Latin alphabetHelvetica (Sans) or Courier (Monospace)Built into PDF readers, so no font is embedded
Greek and CyrillicRoboto (Apache-2.0)Embedded, only the characters used
Chinese and JapaneseDroid Sans Fallback (Apache-2.0)About 4 MB, downloaded to your browser only when the text needs it; embedded as a subset
Korean (Hangul), Arabic, Hebrew, Hindi, Thai and similarNot supportedHangul has no font here and shows as question marks; the others are not laid out correctly

Subsetting means the PDF carries only the glyphs your text actually uses, so a page of Japanese doesn’t drag the whole multi-megabyte font into the file. Right-to-left scripts and scripts that need shaping, such as Devanagari or Thai, would come out with letters in the wrong order or unjoined, so use an app that handles those scripts for such documents.

What the finished PDF contains

Every character is real, selectable text, not a picture of text: you can search the PDF, copy from it and zoom in without blur. Files stay compact, especially pure Latin text, which needs no embedded font at all. A text file carries no styling, so neither does the result: one typeface, one size, no bold, color or images. If you want page numbers on the output, Add Page Numbers can stamp them on afterwards, and a title for the document properties can be set with Edit PDF Metadata.

Cases this converter doesn’t cover

  • Spreadsheet-style tables. A CSV is printed as raw lines with commas. For a proper grid, export the PDF from your spreadsheet app.
  • Formatted Markdown. Headings, bold text and lists need Markdown to PDF.
  • Several files as one document. Each text file becomes its own PDF; join them afterwards with Merge PDF.
  • Huge logs on a phone. Very long files need memory to lay out, and a computer copes with them better.

Your text is read and set on pages inside this browser tab; neither the file nor the finished PDF is uploaded. The privacy page lists checks you can run on that claim.

Frequently asked questions

How do I convert a text file to PDF?

Add the .txt file, choose the paper size, typeface and font size, then convert and download. Several files can be converted together and saved as a ZIP.

Can the PDF use a fixed-width font?

Yes. Choose Monospace and Latin text is set in Courier, so columns and indentation built with spaces line up exactly as they did in your editor.

Why do some characters come out garbled?

The file is probably in an encoding other than UTF-8, UTF-16 with a BOM or Windows-1252. Re-save it as UTF-8 in a text editor and convert it again.

Does it handle Chinese, Japanese and Korean text?

Chinese and Japanese, yes. When the text contains those characters, the browser downloads Droid Sans Fallback, about 4 MB, and only the characters used are embedded in the PDF. Korean Hangul is not covered by that font, so Korean letters come out as question marks.

What about Arabic, Hebrew or Hindi?

Those scripts aren’t laid out correctly here. Right-to-left text and scripts with joined or reshaped letters need software built for them.

How do I force a page break?

Put a form-feed character (U+000C) where the new page should begin. Without one, the text flows onto the next page whenever the current page is full.

Is the text in the PDF searchable?

Yes. The PDF holds real text, so search, selection and copy-and-paste all work in any PDF viewer.

Are my text files uploaded anywhere?

No. Conversion runs in your browser and the files never leave your device. The privacy page explains how to check.

Last updated October 8, 2026