AM Jarvis

TXT to PDF Converter: Plain Text Files to Clean PDF Pages

Turn a plain .txt file into a PDF with a fixed-width font that keeps your line spacing, after an encoding check in your browser.

TXT to PDF converter

Drop a .txt file here or click to choose Plain text files (.txt). Checking the converter…

Your file is sent over HTTPS to our conversion server, converted, and deleted: the upload as soon as the job ends, the result 30 minutes after it is ready. Nothing else is sent.

In short

Drop a .txt file into the box. Your browser checks the text encoding and counts lines first. Click Convert to PDF and our server lays the text out on standard pages in a fixed-width font, so spacing and simple columns line up as they do in Notepad. Long lines wrap onto the next line. Save files as UTF-8 for accents and symbols.

On this page
  1. How to convert TXT to PDF
  2. What the PDF looks like
  3. Encoding: why € or é turns into a box or disappears
  4. Long lines and wide tables
  5. Example: a packing list for a courier portal
  6. Tidy the text before converting
  7. Other quick ways to make a PDF from text
  8. Common jobs
  9. Privacy and limits

Plain text files are everywhere: notes, logs, exported chats, lyrics, code, packing lists, the output of a script or an AI tool. They open anywhere, but they do not print well, they cannot carry a page layout, and many forms and upload portals only accept PDF. Converting a .txt file to PDF gives it pages, margins and a fixed look that every device shows the same way.

This converter checks your text file in the browser first, then lays it out on our server with LibreOffice. The result uses a fixed-width font, the same kind Notepad uses, so anything you lined up with spaces stays lined up. Here is what to expect and how to avoid the one common problem: broken symbols from the wrong encoding.

How to convert TXT to PDF

  1. Drop the .txt file onto the box, or click to choose it.
  2. Read the check under the file name. UTF-8 means every character will come through. Not UTF-8 means some symbols may break; see the encoding section below.
  3. The check also shows the number of lines and characters, and warns you about long lines and tabs.
  4. Click Convert to PDF.
  5. The PDF downloads on its own. Scroll through it to check line breaks and special characters.

What the PDF looks like

We converted sample files with accents, tabs, long lines and several scripts to see exactly how the text lands on the page:

In the text fileIn the PDF
Every lineKept as its own line, in a fixed-width font
Blank linesKept, so paragraphs stay separated
Spaces used to line things upKept exactly, because every character has the same width
Lines longer than the page (about 90 characters)Wrapped onto the next line
TabsKept, but tab stops differ from your editor, so tab-aligned columns may shift
Accented letters (é, ü, ñ) in a UTF-8 fileCorrect
Long documentsFlow onto as many pages as needed

There is no formatting to keep, because plain text has none: no bold, no headings, no images. If you want those, put the text into a word processor first, format it, and convert with DOCX to PDF.

Encoding: why € or é turns into a box or disappears

A text file is just bytes, and the encoding is the rule that says which byte means which letter. Plain English letters are the same in every encoding. Accented letters, currency symbols and other scripts are not.

  • UTF-8 covers every language and symbol. It is the default in Notepad on Windows 10 and 11, on Macs, on Linux and on the web. These files convert cleanly.
  • Windows-1252 (often called ANSI) and Latin-1 are older Western encodings. Files saved in them by old software or older Windows versions can lose characters such as € in conversion; in our tests the euro sign from a Windows-1252 file did not survive.
  • UTF-16 (shown as "Unicode" in some editors) is detected and fine.

The fix takes ten seconds. In Notepad, choose File > Save as, set Encoding to UTF-8, and save. In TextEdit on a Mac, choose File > Duplicate, then File > Save, and pick Unicode (UTF-8) under Plain Text Encoding. Then convert the new copy.

Note: Scripts other than Latin, such as Arabic, Urdu, Hindi or Chinese, come out only as well as the fonts on our server support them in a fixed-width layout. Right-to-left text in particular can look wrong in a plain text layout. Check the PDF, and for important documents in those scripts, paste the text into a word processor and convert from there.

Long lines and wide tables

A page fits about 90 characters per line in this layout. Most prose files are written with shorter lines or as one long line per paragraph, and both are fine: long paragraphs simply wrap. Text that was designed to be wide, such as a log with long entries or a table made of spaces, wraps in the middle of the row and becomes hard to read. Options:

  • Shorten the lines in a text editor before converting.
  • For tables, paste the text into a spreadsheet, split it into columns and convert with Excel to PDF, which can fit a sheet to a landscape page.
  • For code, keep lines under about 90 characters, which most style guides recommend anyway.

Example: a packing list for a courier portal

A seller keeps packing lists as text files generated by a spreadsheet macro. A courier's portal asks for a PDF attachment with each shipment.

  1. Drop packing-1042.txt into the box. The check says UTF-8, 78 lines, and warns that one line is longer than 90 characters.
  2. That long line is the delivery address. Open the file, break the address into two lines, save, and drop it in again.
  3. Click Convert to PDF. The items, quantities and prices stay lined up in their columns, because the macro used spaces, not tabs.
  4. Upload the PDF to the courier portal.

The same habit pays off for any recurring text file: fix the template once (spaces instead of tabs, lines under 90 characters, UTF-8), and every PDF after that comes out right.

Tidy the text before converting

  • Remove trailing blank lines at the end, so the PDF does not end with an empty page.
  • Replace tabs with spaces if you need columns to line up exactly.
  • Add a title line and a date at the top; plain text has no header or footer.
  • Check the word and character count if a portal limits the length.

Other quick ways to make a PDF from text

  • Windows: open the file in Notepad, choose File > Print and select Microsoft Print to PDF.
  • Mac: open it in TextEdit and choose File > Export as PDF.
  • Any computer: drag the .txt file into a Chrome or Edge window and print it with Save as PDF.

Those work well when you are at a computer with the file. This converter helps on phones and tablets, on locked-down work computers without a PDF printer, and when you want the encoding check before you send a PDF to someone else.

Common jobs

Transcripts and AI output

Transcripts from the audio transcription tool, chat exports and text written by AI tools usually arrive as TXT. A PDF is easier to share with a client or attach to a report, and it cannot be edited by accident.

Logs and technical files

Support teams often ask for a log as a PDF attachment. The fixed-width font keeps columns of timestamps and codes aligned, which makes the log readable on paper.

Forms and portals that want PDF

Job applications, visa portals and school systems often only accept PDF uploads. A plain cover letter or statement written in Notepad converts in a few seconds.

Several text files at once

Convert each file, then join the PDFs with Merge PDF in your browser. Name the files with a number at the start (01-intro.txt, 02-notes.txt) so they sort in the right order before you merge them.

Privacy and limits

The encoding check reads the start of the file in your browser. When you click Convert, the file is sent over HTTPS to our server, converted and deleted: the upload as soon as the job ends, the PDF 30 minutes after it is ready. A daily number of free conversions and a maximum file size apply, both shown on the tool.

Frequently asked questions

Which font does the PDF use?

A fixed-width (monospaced) font, where every character takes the same space, like in Notepad. That keeps spacing, indentation and anything aligned with spaces exactly as in the text file. If you want a different font or formatting, paste the text into a word processor, style it, and convert that document instead.

Why are some characters missing or wrong in my PDF?

The text file was probably saved in an older encoding such as Windows-1252 rather than UTF-8. The check under the file name warns you about this. Open the file in Notepad, choose Save as, set Encoding to UTF-8, save, and convert again.

Are long lines cut off?

No. Lines longer than the page width, about 90 characters, wrap onto the next line, so no text is lost. Wide tables built with spaces become hard to read when they wrap, though. Shorten the lines first, or put the table in a spreadsheet and convert that.

Can I convert TXT to PDF on my phone?

Yes. Open this page in your phone browser, tap the box and choose the text file from your files. The encoding check and the conversion work the same as on a computer, and the PDF downloads to your phone when it is ready.

Can I convert several text files into one PDF?

Convert the files one at a time here, then combine the PDFs with the Merge PDF tool, which runs in your browser. Alternatively, paste all the text into one file, with a blank line between parts, and convert that file once.

Does the PDF keep my text searchable?

Yes. The PDF contains real text, not an image, so you can search it, select it and copy it. Screen readers can read it too. Only the look is fixed: the words remain text.