Skip to content

Plain text to PDF converter

TXT to PDF treats the source as lightweight document text, then our document engine lay it out as a fresh PDF.

  • Converted with Document engine → PDF renderer · input deleted within 24 h
  • Free: 5 conversions a day · 5 MB each
  • Higher limits →

From real runs

What you get — and what changes

  • Plain text Kept

    ASCII and Latin text stayed selectable in the generated PDF in both TXT runs.

  • Single line breaks Changed

    Adjacent lines could be merged into one paragraph, such as Owner and Steps sharing a line in extracted text.

  • Blank lines Changed

    Blank-line spacing influenced paragraphs, but our PDF renderer recalculated page layout and wrapping.

  • Numbered text Changed

    Numbered instructions remained readable, but the output did not preserve original plain-text line positions.

  • Pseudo tables Changed

    Space-aligned columns collapsed into running text, so Name Score rows were not a real table.

  • Unicode Changed

    The rich TXT PDF text extraction showed café and naïve correctly, but 東京 extracted back as 東東.

  • Page numbering Changed

    Our PDF renderer added a page number at the bottom of the generated one-page PDF.

Sample conversions

Plain release note

Input
212-byte TXT with a title, owner line, three numbered steps, space-aligned scores, and Unicode text café, naïve, 東京.
Output
The PDF was 10 KB and one page. It merged Owner and Steps into one paragraph, flattened the score columns, and extracted 東京 as 東東.

Feedback Atlas text fixture

Input
Sample TXT with a board-prep title, metrics written as spaced columns, bullets, and two numbered actions.
Output
The 15 KB PDF kept the title, bullets, and action numbers. The metrics row collapsed into prose instead of table cells.

A real Plain text → PDF run

We converted our Plain text sample (440 B) with Document engine → PDF renderer on 2026-09-11. It took 48 ms and produced a 15 KB PDF file, 36× larger than the input. The engine raised no warnings.

Input · sample.txt · 440 B

13 non-empty lines, 71 words

Lines
13
Words
71

Output · sample.pdf · 15 KB

PDF 1.7, 1 page, selectable text (LibertinusSerif-Regular-Identity-H, LibertinusSerif-Regular, LibertinusSerif-Bold-Identity-H, LibertinusSerif-Bold), 0 image objects

Version
1.7
Pages
1
Fonts
LibertinusSerif-Regular-Identity-H, LibertinusSerif-Regular, LibertinusSerif-Bold-Identity-H, LibertinusSerif-Bold
Images
0
Text layer
yes

Options and when to change them

toc
Set only when the TXT contains Markdown-style headings that should generate a table of contents before PDF layout.

Do it yourself

pandoc with Typst

bash
pandoc input.txt --pdf-engine=typst -o output.pdf

Plain TXT has no table or layout model, so use Markdown if headings and tables must be interpreted intentionally.

Plain text to PDF by API or MCP

The HTTP API and the MCP server run the exact engine this page uses (Document engine → PDF renderer); the response carries the same warnings the web converter shows. Check support first with GET /api/v1/pairs?from=txt&to=pdf.

curl
curl -X POST https://filetypeconverters.com/api/v1/convert \
  -H "Authorization: Bearer $FTC_API_KEY" \
  -F "file=@input.txt" -F "from=txt" -F "to=pdf" \
  --output output.pdf
API reference

When this is the wrong conversion

  • If the text columns are real data, convert TXT as a delimited table instead of making a PDF.
  • If you need Word editing, /convert/txt-to-docx is easier to revise after conversion.
  • If exact monospace line layout matters, create a PDF from a text editor using the desired font and wrapping.

Plain text to PDF questions

Does TXT to PDF keep every line break?

No. Our document engine interprets plain text as document content and our PDF renderer wraps it into pages, so nearby lines can merge into paragraphs.

Can TXT to PDF preserve space-aligned tables?

Not as real tables. The tested score and metrics columns remained readable but collapsed in extracted PDF text.

Why did Japanese text extract incorrectly?

The rich run showed 東京 extracting as 東東 from the PDF. That may be a font or text-mapping issue, so CJK output needs visual and copy-paste checks.