Document Tools

Text to PDF

Turn Markdown, plain text, code or HTML into a PDF

Drop a text file here, or just paste below

Markdown, plain text, code or HTML

Your browser’s print dialog opens — choose "Save as PDF" as the destination.

Nothing is uploaded. Everything happens in your browser.

About the Text to PDF Converter

Sometimes what you have is text and what you need is a PDF: notes written in Markdown, a log file for a bug report, a snippet of code to attach to a ticket, or a page of HTML you want to archive. Opening a word processor to paste it in and export is more ceremony than the task deserves.

Paste or drop the text, pick how it should be treated, and save it through your browser's print dialog. Markdown is rendered properly — headings, lists, tables, code blocks and quotes all come out formatted. Code and logs are set in a monospaced font with lines preserved, which is what makes them readable in print. Plain text keeps its paragraphs, and raw HTML is rendered as written.

The text stays text in the finished PDF, so it remains searchable and selectable, and the file stays small. Nothing is uploaded — the conversion is done entirely by your browser, which also means it keeps working offline once the page has loaded.

How to convert text to PDF

Turn Markdown, plain text, code or HTML into a PDF.

  1. 1

    Add your text

    Paste it into the box, or drop a text file onto the upload area.

  2. 2

    Choose how to treat it

    Markdown renders formatting; code keeps a monospaced font and line breaks.

  3. 3

    Set the layout

    Pick page size, margins and font size.

  4. 4

    Save as PDF

    Click convert, then choose "Save as PDF" in your browser's print dialog.

Frequently Asked Questions

Which input formats are supported?

Markdown, plain text, code and logs, and raw HTML. Choose which one applies and the text is formatted accordingly.

Does Markdown formatting work?

Yes. Headings, lists, tables, code blocks, quotes and links are all rendered.

Why is code set in a different font?

Code and logs are laid out in a monospaced font with line breaks preserved, because alignment carries meaning in them. Prose is set in a proportional font instead.

Is the text in the PDF selectable?

Yes. The PDF is produced through your browser's print path, so the text stays real text — searchable, selectable and small in file size.