Quick answer: to convert a text, Markdown or HTML file to PDF, open the file on this page or paste the text and press Create PDF. Check the preview, choose the page size, margins and font, then press Download PDF. The PDF has real, selectable text with proper headings, lists, tables and clickable links. Nothing is uploaded.
Key facts
- Price: free, with no account, no watermark and no page limit.
- Three inputs: plain text (.txt, .log, .csv and other text files), Markdown (.md) and HTML (.html), from a file or pasted.
- Real layout: headings, paragraphs, bullet and numbered lists, quotes, tables, code blocks, horizontal rules and clickable links.
- Selectable text: the PDF contains real text, so it is searchable and small, not a screenshot.
- What you see is what you get: the preview is the actual PDF.
- Privacy: the PDF is made on your device; your text is never uploaded.
How to convert TXT, Markdown or HTML to PDF
- Add your text. Click Select file and choose a .txt, .md or .html file, or paste text into the box, say whether it is plain text, Markdown or HTML, and press Create PDF.
- Check the preview. Every page of the new PDF appears on the left, exactly as it will download.
- Adjust the look. Choose A4, Letter or Legal, the margins, Helvetica, Times New Roman or Courier, the font size and page numbers. Plain text can be set as a normal document or in monospace for code and logs.
- Download. Press Download PDF. The file keeps the name of your text file.
Supported Markdown
| You write | In the PDF |
|---|---|
# Title, ## Section, ### Sub-section | Headings in three sizes |
**bold**, *italic*, ~~strike~~ | bold, italic, |
- item, 1. item, - [x] done | Bullet, numbered and task lists, also nested |
> quote | An indented quote with a side bar |
`code` and ``` fenced blocks | Monospace text and shaded code blocks |
| a | b | tables | Tables with borders and a header row |
[text](https://…) | Clickable links |
--- | A horizontal line |
YAML front matter at the top of a file (between two --- lines), as used by Obsidian, Jekyll and Hugo, is skipped automatically.
Who uses text to PDF?
- Writers and students: turn notes written in Obsidian, Typora, Bear, iA Writer or Notepad into a tidy PDF to submit or print.
- Developers: make a PDF of a README, changelog, documentation page or log file to share with clients.
- AI users: ChatGPT, Claude and Gemini answer in Markdown. Paste the answer here to get a properly formatted PDF instead of a messy copy.
- Web teams: save a simple HTML page, email template or newsletter as a PDF.
- Everyone: archive a plain-text letter, list or recipe as a PDF that looks the same on every device.
How plain text is laid out
In Document style, blank lines separate paragraphs and single line breaks are kept, so letters, lists and poems look the way you typed them. Long lines wrap neatly at the margin. In Monospace style every character keeps its place, which keeps the columns of logs, tables made with spaces and source code lined up.
Privacy and security
Your text is turned into a PDF inside your browser. It is not uploaded to a server, stored or seen by anyone, so private notes, code and internal documents stay private.
Good to know
- Fonts and languages: the PDF uses the standard PDF fonts, which cover English and Western European languages. Characters such as Urdu, Arabic, Hindi, Chinese and emoji cannot be drawn and appear as “?”. The tool tells you when this happens.
- HTML and CSS: HTML is converted by its structure (headings, paragraphs, lists, tables), not its CSS design, so colours, columns and custom fonts are not copied. To save a website exactly as it looks, use your browser's Print → Save as PDF.
- Images: images embedded in a file as data URLs are included. Images linked from the internet or a folder are left out.
- Word files are converted with Word to PDF.
Frequently asked questions
How do I convert a TXT file to PDF for free?
Open the .txt file on this page or paste the text, then press Download PDF. It is free with no sign-up and no watermark.
How do I convert Markdown to PDF?
Choose your .md file or paste the Markdown and select Markdown. Headings, lists, tables, code blocks and links are formatted automatically in the PDF.
Can I convert HTML to PDF?
Yes. Open an .html file or paste HTML. Its headings, paragraphs, lists, tables and links are laid out as a clean PDF document.
Is the text in the PDF selectable?
Yes. The PDF contains real text, so you can select, copy and search it, and the file stays small.
Are my files uploaded?
No. The PDF is created in your browser on your own device, and your text never leaves it.
How do I save a ChatGPT answer as a PDF?
Copy the answer, paste it into the box here, keep Markdown selected and press Create PDF. The headings, lists and code keep their formatting.
Can I change the font and page size?
Yes. Choose Helvetica, Times New Roman or Courier, 9 to 14 pt, A4, US Letter or US Legal, three margin sizes and page numbers on or off.
How do I keep code and logs aligned?
For plain text choose Monospace. In Markdown, put code between ``` lines. Both use a fixed-width font so columns stay aligned.
Why do some characters show as question marks?
The standard PDF fonts only cover Latin letters. Urdu, Arabic, Chinese, emoji and some symbols cannot be drawn with them.
Does it keep the CSS design of my HTML?
No. It keeps the structure, not the design. To save a web page exactly as it looks, use your browser's Print and Save as PDF option.
Does it work on my phone?
Yes. Paste text or open a file in any modern browser on Android or iPhone.