Skip to content
All tools
English

Convert text to PDF

Turn a .txt file or pasted text into a tidy, printable PDF.

Your files never leave your device

Add text files

or drag and drop them here

TXT · or type below · processed on your device

    Options

    Line breaks are kept. Files and pasted text each become their own PDF.

    Typeface

    How to use it

    1. Add text

      Drop one or more .txt files, or paste text into the box. No file is needed.

    2. Set the page

      Page size, margins, font size and typeface, including monospace for code and logs.

    3. Download

      Each file, and the pasted text, becomes its own PDF.

    What you get

    Plain text has no page: it reflows differently in every editor and prints however the printer likes. This tool fixes it on pages. Long lines wrap at word boundaries, your own line breaks and indentation are kept, tabs become spaces up to the next tab stop (every four characters), and a form-feed character starts a new page. Pick Monospace for code, logs and tables drawn with spaces, so the columns stay aligned.

    Selectable text, or images for other scripts

    English and other Western European text is written with the standard PDF fonts as real text, so the file is tiny and you can select, search and copy from it. Those fonts have no Arabic, Hebrew, Cyrillic, Greek, Asian characters or emoji. When your text contains any of them, your browser lays the lines out itself, with correct letter joining and right-to-left alignment, and each page is stored as an image. It looks right and prints well, but that text cannot be selected; run OCR on the result if you need it searchable.

    What it does not do

    This is a plain-text converter: Markdown symbols, HTML tags and CSV commas are printed as they are, not formatted. There are no headers, page numbers or bold text. To combine the result with other documents, use Merge PDF.

    More PDF tools: Convert to PDF

    Frequently asked questions

    Is my text sent anywhere?
    No. The PDF is built by your browser on your device. Neither the file nor what you type is uploaded.
    Can I convert Arabic text?
    Yes. Arabic is drawn by your browser with correct shaping and right-to-left alignment, and the pages are saved as images, so the text is not selectable in the PDF.
    My file shows strange characters. Why?
    The file is probably saved in an old encoding. Open it in a text editor, save it as UTF-8 and convert it again.
    Will Markdown be formatted?
    No. The tool prints the characters exactly as they are in the file, including # and * marks.