Skip to content
YouNeed Tools
Free VPN

TXT to PDF

Turn a plain text file into a tidy PDF with the font and page size you choose, in any language. Free, no sign-up.

Drop a text file here

Up to 50 MB.

or drag and drop here

How to convert TXT to PDF

  1. Choose the text file (.txt, .log or .md), or drop it here.
  2. Pick how it looks: font, text size, A4 or US Letter, and line numbers.
  3. Convert and download the PDF.

What the PDF looks like

  • Every line of your file starts a new line in the PDF; empty lines stay empty.
  • Lines longer than the page wrap onto the next line instead of being cut off.
  • Tabs are kept (8 characters wide), so text tables line up in the monospace font.
  • Margins are even on every page, and the text is real text: you can search and copy it.

Text in any language

Text files don’t say which language or font they use, so a converter without the right fonts shows boxes instead of letters. Ours has fonts for the world’s main scripts, including Urdu, Arabic, Hindi, Bengali, Chinese, Japanese and Korean, and lines written right to left are set right to left. If letters come out as strange symbols, the file was probably saved in an older encoding; open it in Notepad and save it as UTF-8, then convert again.

Common uses

  • Notes and drafts you want to print or attach to an application.
  • Logs and code, with line numbers, to share in a report.
  • Markdown files, kept as plain text with their symbols (to print formatted Markdown, open it in a Markdown editor and print from there).

For text with formatting (bold, tables, pictures), save it as Word or RTF and use Word to PDF or RTF to PDF. To get the text out of a PDF instead, use PDF to Text.

Frequently asked questions

How do I convert a TXT file to PDF?
Choose the .txt file, pick a font, text size and page size, and press Convert to PDF. Long lines wrap to fit the page; nothing is cut off.
Does it work with Urdu, Arabic, Hindi, Chinese and other languages?
Yes. Text in any language is shown with a matching font, and lines written right to left (Urdu, Arabic, Hebrew, Persian) run right to left. UTF-8 and UTF-16 files are read correctly, and older Windows text files too.
Which font should I choose?
Monospace keeps columns, code, logs and text tables lined up, because every letter has the same width. Sans-serif or serif read better for letters, notes and stories.
Can I number the lines?
Yes, tick Number the lines. Handy for code, logs, transcripts and legal text you need to refer to by line.
Is there a length limit?
Files up to 50 MB are accepted, and up to 200,000 lines are converted; the result screen says so if a file was longer.
Is there a limit?
Files can be up to 50 MB, and one conversion can take up to 60 seconds. There is no daily limit and no account. To keep the converter fast for everyone, each visitor converts one file at a time, up to about 10 a minute.

Last updated: 2026-11-21