Markdown to a styled PDF with tables, code and clickable links
Text to PDF
Paste notes, logs or a .txt file and get a tidy PDF with real, searchable text in seconds.
Loading tool…
How to use text to pdf
Paste or type your text, or open a .txt file.
Add an optional title.
Pick page size, orientation, font, text size and margins.
Select Make PDF and download it.
What this tool does
- Keeps your line breaks, blank lines and indentation.
- Wraps long lines and breaks very long words such as URLs so nothing runs off the page.
- Serif, sans serif or monospace fonts, six page sizes and optional page numbers.
- Produces real text that can be searched, selected and copied.
How the result is verified
The new PDF is reopened with pdf-lib and pdf.js, its page count is checked, and words from your text are read back from the first pages.
Frequently asked questions
How do I keep columns lined up?
Choose the monospace font. Every character then has the same width, so spaced columns and code stay aligned.
Can I convert text in Hindi, Chinese or Arabic?
The direct PDF uses the standard fonts, which do not include those scripts. Use Open print view and choose Save as PDF; your device's fonts then cover them.
Is my data uploaded to a server?
No. Everything you drop, paste or type is processed by code running in this browser tab. You can check it yourself: open your browser's developer tools, watch the Network panel, and use the tool. No request carries your data.
Related tools
Extract readable DOCX paragraphs and rebuild them into a clean paginated PDF.
Combine images into one PDF with page size, orientation, margins, and explicit ordering.
Combine multiple PDFs into one, with drag-free reordering and page-count verification.