Text to PDF
Create A4 or Letter PDFs with checked font coverage, wrapped text, titles and local TXT import.
This tool runs entirely in your browser. Your data is never uploaded, never stored, and never leaves your device.
Create a plain-text PDF on A4 or Letter paper with a title, font choice and automatic wrapping; unsupported characters stop creation.
How to use it
- 1Paste text or load a UTF-8 TXT file, then add an optional title.
- 2Choose paper size, orientation, font and a 6–32 pt size.
- 3Create the PDF, resolve any character errors, then download the result.
What happens to your data
Conversion happens locally. Standard fonts use limited WinAnsi coverage, not all Unicode. Editing any input invalidates the old download.
Last updated October 2026
Paste plain text or load a UTF-8 TXT file to create a downloadable PDF with a choice of A4 or Letter paper, portrait or landscape orientation, and Helvetica, Times Roman or Courier. An optional title appears above the body and is saved as the document title. Text and headings wrap within the page margins, including long unbroken strings, and additional pages are added as needed.
The three fonts use WinAnsi character coverage: English, many Western European characters and selected punctuation and symbols. They do not cover every Latin-script character or all Unicode. If any title or body character is unsupported, creation stops with its location and Unicode code point. No word is silently removed and no partial PDF is offered as a successful result.
How it works
PDF creation happens in your browser using pdf-lib. Before drawing text, the tool validates the settings, checks each character against the selected font’s supported character set, then measures line widths in PDF points. Paper dimensions and 48-point margins determine the available area. The body uses the selected whole-number font size from 6 to 32 points; the title uses 1.5 times that size and wraps across lines if necessary.
Spaces and blank lines are preserved in the layout. Each tab becomes four spaces, and CRLF or CR line endings become LF. Lines that are too wide wrap at token boundaries where possible; an unbroken token is split into pieces that fit. The resulting PDF adds visual line breaks, so text copied back out by a PDF reader may not have the exact original line structure. Courier provides equal-width characters for simple aligned text, while proportional fonts do not turn space-separated columns into tables.
The body limit is 50,000 UTF-16 code units, the title limit is 300 and the document limit is 100 pages. These limits are checked rather than silently truncating the input. An unsupported-character error reports a line number and one-based code-point position within that line. A decomposed accent such as an ‘e’ followed by U+0301 may fail even when the precomposed ‘é’ is supported; the tool does not silently normalize or transliterate text.
Downloads contain actual selectable PDF text, with the title in document metadata when supplied. This is a plain-text converter: Markdown remains literal, images are not imported, custom Unicode fonts are not embedded and PDF accessibility tags are not generated. The tool does not claim PDF/A archival conformance. Editing any input invalidates the old download, and leaving the tool releases the temporary browser URL. Your body and title are not uploaded for conversion.
Worked example: a short two-paragraph note
- Input
- Title: Meeting notes Paper: A4 portrait; font: Helvetica 12 pt Text: First paragraph. Second paragraph.
- Result
- A one-page PDF with a larger Meeting notes heading and one blank body line between the two paragraphs.
The title is also stored in PDF metadata. The body remains selectable text rather than a page image.
Common use cases
- Turning a short note into a printable PDF
- Sharing plain-text instructions with fixed page sizes
- Creating a simple landscape handout
- Preserving blank lines and aligned text with Courier
Frequently asked questions
Does this support Hindi, Chinese, Arabic or emoji?+
No. The bundled standard fonts use WinAnsi coverage and do not support those scripts or emoji. Creation stops at the first unsupported character. Use an editor that embeds an appropriate Unicode font for those documents.
Are all Latin letters supported?+
No. WinAnsi includes many Western European letters but not every Latin-script character or combining mark. The selected font’s actual character set is checked, and an unsupported character receives a precise error instead of being omitted.
Will long words or a long title run off the page?+
Long tokens and headings are measured and split into lines that fit the page area. The title can span multiple lines. Body text continues onto new pages until the 100-page limit, at which point the request is rejected without a partial download.
Can I preserve indentation and blank lines?+
Yes. Spaces and blank lines are retained, and tabs expand to four spaces each. Choose Courier for equal-width columns. This is not a tab-stop layout engine or a table formatter, and wrapped lines may change where columns appear.
Can I convert an existing TXT file to PDF?+
Yes. Load a .txt file saved as UTF-8, up to 200,000 bytes and 50,000 decoded UTF-16 code units. Invalid UTF-8 is rejected and a UTF-8 byte-order mark is removed. Loading text does not guarantee the PDF font supports it: Create PDF checks character coverage before producing a download.
Is the PDF tagged for screen readers or archival use?+
No. The file contains selectable text and optional title metadata, but no accessibility structure tags or PDF/A conformance. Use a document authoring workflow that explicitly supports those requirements when they are needed.
Why does changing a setting remove the download?+
The downloaded document must match the current text, title and layout. Every edit invalidates the old result, including edits made while a PDF is being created. Press Create PDF again after finishing your changes.
Standards and limitations
Related tools
DOCX to PDF
Preview a Word DOCX locally, then use your browser's print dialog to save it as PDF.
Merge PDFs
Combine multiple PDF files into a single document.
Watermark PDF
Stamp text across every page of a PDF — diagonal, tiled or footer — at the color and opacity you choose.
Extract Text from PDF
Pull the selectable text out of a PDF to paste elsewhere. It reads the text layer, so scans give nothing.