TXT to PDF Converter

Drop a file or paste straight into the box. Pick a page size and margins; the PDF is typeset here in your browser with your line breaks and indentation intact.

  • Free & unlimited
  • No upload — runs in your browser
  • No sign-up, no watermark
Text to PDF

Turn a plain text or Markdown file — or text you paste — into a typeset PDF.

📝
Drop a .txt or .md file here
or click to choose a file — or just paste text below
Choose file

    🔒 Private by design: files are converted in your browser and never uploaded.

    How text to pdf works

    1

    Add your text

    Drop a .txt, .md or .log file — or paste text directly into the box.

    2

    Choose page size and margins

    US Letter or A4, with normal, narrow or wide margins.

    3

    Download the PDF

    Typeset with an embedded font, so it reads the same on every machine.

    Two formats, two sets of rules

    A .txt file is treated literally: every line break you typed is a line break in the PDF, and leading spaces or tabs are kept as real indentation. That is what you want for logs, code, addresses and ASCII tables. A .md file follows Markdown conventions instead: wrapped lines rejoin into flowing paragraphs, # headings are set larger and bold, - and 1. lists get proper markers, **bold** and *italic* are applied, and fenced code blocks keep their indentation. Pasted text is checked for Markdown markers and handled accordingly.

    Long lines and long files

    Lines too wide for the page wrap instead of running off the edge, and a single unbroken string longer than the page is split so nothing is lost. Files of thousands of lines convert fine — the work happens on your device, so it just takes a moment longer.

    What it doesn't do

    This is a typesetter, not a document renderer: Markdown tables, images and raw HTML are not drawn, and there is no syntax highlighting for code. Text is set in DejaVu Sans, which covers Latin, Cyrillic and Greek.

    Text to PDF — FAQ

    Which file types can I convert?
    .txt, .md, .markdown, .text and .log — or paste text straight into the box without a file at all.
    Are my line breaks and indentation kept?
    Yes. In a .txt file every line break is preserved and leading spaces or tabs become a real indent, so code and outlines stay readable.
    Can I choose A4 and change the margins?
    Yes — page size (US Letter or A4) and margins (normal, narrow or wide) are both options on the tool.
    Does it support full Markdown?
    It covers what people actually use: headings, bullet and numbered lists, bold, italic, inline code, block quotes, horizontal rules and fenced code blocks. Tables, images and raw HTML are not rendered.
    Is the pasted text sent anywhere?
    No. Like every tool here, it is typeset in your browser — the text never leaves the page.

    Related guides

    More free tools

    On a phone or tablet?

    The free app converts Word to PDF offline, straight from Files or the share sheet.