Zero Signup ToolsFree browser tools

PDF Tools

Text to PDF Converter

Convert plain text to a real multi-page PDF in your browser. Pick page size, font, margins, alignment, and add page or line numbers. No upload.

0 words0 characters0 linesMax 500,000 characters

Or drop a .txt file

.txt, .md, .log, .csv up to 10 MB

Page and font

Page size

Orientation

Font family

Clean sans-serif. Good for screen reading and reports.

Style

12 pt is the standard for body text; 10 pt is common for letters.

1.0 is single spacing, 2.0 is double spacing, 1.4 is a good default.

Default is 20 mm. US Letter documents often use 25.4 mm (1 inch).

Alignment

Page size

595 x 842 pt

Lines per page

43

Approx chars per line

80

What this tool does

  • Standard 14 PDF fonts. Helvetica, Times Roman, and Courier are built into every PDF reader, so no font data is embedded and the output PDF stays small.
  • Real pagination. Text is word-wrapped at the column width using AFM font metrics, then broken into pages at the chosen size, orientation, and margin.
  • Alignment options. Left, center, right, and justified. Justify spreads extra width across word gaps but leaves the last line of each paragraph natural.
  • Drop a file or paste. Plain text files (.txt, .md, .log, .csv) up to 10 MB are accepted, or paste up to 500,000 characters directly.
  • Optional page numbers. Adds "Page X of Y" centered in the bottom margin.
  • Optional line numbers. Renders the source line number in a left gutter, ideal for code and review drafts.
  • Local only. All processing runs in your browser. The text you paste and the file you drop never leave your device, and the resulting PDF is generated and downloaded locally.
  • Compatible output. The output is a valid PDF 1.4 file that opens in Preview, Adobe Acrobat, Chrome, Edge, Firefox, Safari, and every other major viewer.

How to use

  1. Paste or type the text you want in your PDF into the editor, or drop a plain text file onto the drop zone. Files up to 10 MB and pastes up to 500,000 characters are supported.
  2. Optionally type a title in the Document title field; it appears centered at the top of page 1 and as the PDF metadata title in the file properties.
  3. Pick a page size, orientation, font family, style, font size, line height, margin, and alignment. The Lines per page and Chars per line previews update so you can size the layout before building.
  4. Toggle Add page numbers to print Page X of Y in the bottom margin, or Add line numbers to render the source line number in a left gutter for code or review drafts.
  5. Click Build PDF and then Download to save the file. Everything runs in your browser, so the text you paste and the PDF you build never leave your device.

About this tool

Text to PDF Converter turns plain text into a real, multi-page PDF document, entirely in your browser. Paste or type text into the editor, or drop a .txt, .md, .log, or .csv file, then pick a page size (A4, US Letter, US Legal, A3, A5, B5, Tabloid, or Executive), orientation, font family (Helvetica, Times Roman, or Courier), font size, line height, margin, and alignment (left, center, right, or justify). The tool word-wraps your text against the column width using the same Adobe AFM font metrics that PDF readers use to lay out the Standard 14 fonts, paginates the result, and emits a valid PDF 1.4 file with one Type1 font reference and one content stream per page. Because the fonts are part of the PDF specification, no font data is embedded, so the resulting PDF is small and opens cleanly in Preview, Adobe Acrobat, Chrome, Edge, Firefox, Safari, and every other major viewer. Optional extras include a centered title block on page 1, Page X of Y numbering centered in the bottom margin, and line numbers in a left gutter for code and review drafts. Justify alignment spreads extra width across word gaps but leaves the last line of each paragraph natural so the layout reads correctly. Curly quotes, en and em dashes, ellipses, ligatures, the Euro sign, and the common Unicode space characters are normalized to their WinAnsi equivalents before encoding so the output never breaks on extended characters. Useful for writers turning a draft into a printable PDF, students saving notes for class, support agents archiving chat transcripts, engineers attaching logs to bug reports, developers printing snippets of source code, anyone replacing a paid online text-to-PDF service, and any time you need a quick PDF from a body of text without installing a desktop converter. The text you paste, the file you drop, and the PDF you generate all stay on your device. Nothing is uploaded.

Free to use. Works in your browser. No signup, no login.

Related tools

You may also like

All tools
All toolsPDF Tools