Text to PDF Converter
About this tool
About Text to PDF
Turn notes, a log file, a transcript, a code listing or any .txt file into a clean PDF that opens the same on every device. Pick one of 31 page styles, such as manuscript, academic paper, business report, ruled notebook, code listing or large print, to set fonts, spacing, title, page numbers and colours in one click. Paste text or open a file, choose A4, US Letter, Legal or A5 in portrait or landscape, set the margins in millimetres, the font size and the line spacing, and add an optional title at the top of each page, page numbers at the bottom and line numbers in the margin, which is handy for transcripts, contracts under review and code. Long lines wrap at word boundaries and tabs are expanded. Noto Sans covers accented Latin, Greek, Cyrillic and Vietnamese; Courier gives a monospaced look for code and logs. Characters a font can't draw are reported instead of silently vanishing. The PDF is built in your browser with pdf-lib, keeps real selectable text and downloads as soon as it is built. For Hindi, Chinese or emoji, Markdown to PDF uses your system fonts instead.
Built and maintained by Abhi JainUpdated
How to Convert Text to PDF
- 1
Add your text
Paste text into the Text box or open a .txt file. Click Sample to try it.
- 2
Pick a page style
Open Page styles and choose one, such as Standard manuscript, Business report or Ruled notebook. Your text and title stay.
- 3
Fine-tune the page
Adjust Page size, Font, Font size, Margin, Line spacing, Title style and Accent colour, and tick Landscape, Page numbers or Line numbers.
- 4
Create the PDF
Click Create PDF. It downloads straight away and a preview appears; change a setting and create it again if needed.
Text to PDF: questions and answers
Is the text in the PDF selectable?
Yes. The PDF contains real text, not an image, so you can search it, copy from it and have it read aloud. Run it through OCR PDF only if you start from a scan.
Why were some characters replaced with a question mark?
The chosen font has no shape for them. Courier, Times and Helvetica only cover Western European letters; Noto Sans adds Greek, Cyrillic and Vietnamese. For Indian scripts, Chinese, Arabic or emoji, use Markdown to PDF, which prints with your system fonts.
Can I keep my line breaks exactly?
Yes. Every line break in your text starts a new line in the PDF. Lines that are wider than the page wrap onto the next line, and with Line numbers on, the number is shown only on the first part of a wrapped line.
What do the page styles do?
A page style is a complete set of settings: font (built-in PDF fonts or open-licence fonts from the site's library), size, line spacing, margins, paper and text colours, a plain, ruled, banded or centred title, the page-number format, and extras such as notebook lines, a margin rule, a border or paragraph indents. Every style keeps text at WCAG AA contrast.
How many pages can it make?
There is no fixed limit; very long documents depend on your device's memory and take longer to build. The page count and file size are shown after you create the PDF.
Related Tools
- Markdown to PDFTurn Markdown into a styled PDF with selectable text in any language, using your browser's Save as PDF.
- Merge PDFCombine PDFs in any order and keep only the pages you need from each.
- Add Line NumbersNumber every line of text in any format (1. 1) [1] 001), with start, step and padding; or remove line numbers.
- PDF to TXTExtract the text of a PDF into a plain .txt file, with page separators.
- Compress PDFMake a PDF smaller in your browser: pick a quality level or an exact target size.