Skip to content
ToolsUnlocked

Text to PDF

Convert text to PDF: turn notes, letters, code or any plain text into a tidy document. Paste your text or open a .txt file, add an optional title, and choose the font, size, page size and line spacing. Long lines wrap neatly, new pages are added automatically and each page gets a number.

Runs in your browser Free, no sign-up
Text to PDF

0 words

How to convert text to PDF

  1. 1 Type or paste your text, or press Open .txt file.
  2. 2 Add an optional title.
  3. 3 Choose the font, size, page size and line spacing.
  4. 4 Press Create PDF to download it.

When a plain text PDF is the right choice

A text PDF looks the same on every device and printer, cannot be changed by accident, and is accepted by almost every upload form. That makes it ideal for letters, notes, logs and code you want to share or archive. Monospace font keeps code and columns lined up.

The built-in PDF fonts cover English and Western European letters. For documents with headings, images or tables, write them in a word processor and export as PDF instead. Need the reverse? PDF to Text pulls text out of a PDF, and Add Page Numbers and Merge PDF help you finish a longer document.

Features

Three fonts

Sans serif, serif or monospace for code.

Automatic layout

Lines wrap and pages are added as needed.

Page numbers

Each page is numbered at the bottom.

Open text files

Load a .txt file in one click.

When to use it

Letters

Make a neat PDF letter to email. Fix spacing in pasted text with Text Cleaner first.

Notes

Turn meeting notes into a document. Count words before converting with the Word Counter.

Code listings

Print code in a monospace font. Combine the new PDF with others using Merge PDF.

Plain-text exports

Convert logs or exports for sharing. Add a CONFIDENTIAL stamp with Add Watermark to PDF.

Related PDF tasks

Frequently asked questions

Is my file uploaded to a server?

No. Everything happens inside your own browser, so the file never leaves your device. That makes it safe for contracts, statements, ID documents and anything else private. Once the page has loaded, the tool even works offline.

Which characters are supported?

The standard PDF fonts cover English and Western European letters, numbers and common symbols. Other scripts, such as Urdu, Hindi or Chinese, are replaced with a question mark, and the tool tells you how many.

Can I add headings or bold text?

The title is bold. The rest is plain text. For rich formatting, write the document in a word processor and save it as PDF.

Does it keep my line breaks?

Yes. Every line break and blank line in your text is kept.

What page margins are used?

About 2.25 cm on every side, which suits printing.

Can I make the PDF from a .txt file?

Yes. Press Open .txt file and pick it.

Is there a length limit?

No fixed limit. Long texts simply produce more pages.

Can I convert a long document?

Yes. New pages are added automatically as the text flows, and each page is numbered at the bottom.

Which font should I choose?

Sans serif is clean and modern, serif suits letters and long reading, and monospace keeps columns of code or tables lined up.

Can I change the page size?

Choose A4 for most countries or US Letter for the United States and Canada.

Can I edit the PDF later?

The PDF is a finished document. Keep your text so you can make changes and create a new PDF.

Does it work on mobile?

Yes. Paste text from any app and create the PDF in your phone's browser.

Is the title shown on every page?

No. The title appears at the top of the first page and is also saved in the PDF's properties.

How this tool works. These PDF tools run entirely in your browser using two widely used open-source libraries: PDF.js, the PDF engine built into Firefox, to read and render pages, and pdf-lib to create and edit files. Each tool is tested with typed documents, phone scans and photo-heavy files before it goes live, and nothing you open is sent to a server.

HF

Built and reviewed by , founder and lead developer
Last updated · How we check our tools · Report a problem