How to Create a PDF from Text with Headings and Fonts

Turn typed or pasted text into a clean A4 PDF. Set headings, font sizes, colors and alignment, fit it to a page count, then download it free.

Sometimes you do not need a full word processor. You need a short notice, a one-page letter, class notes or a simple report in PDF form, and you need it now. A PDF looks the same on every phone and printer, which makes it the safest format to send or print. This guide shows how to turn plain text into a tidy A4 PDF in a few minutes, with proper headings, readable font sizes and the page count you want.

When creating a PDF from text makes sense

Text to PDF is a good fit when the content is mostly words rather than complex layout. Typical uses include:

If you need photos, tables or a complicated design, a desktop editor is a better choice. For everything else, a plain PDF is quick and reliable.

Step-by-step: make a PDF from text

  1. Open the Text to PDF converter.
  2. Type your text into the editor, or paste it in from another app.
  3. Select a line and choose Heading 1 or Heading 2 from the style box for titles and section names. Leave normal text as Paragraph.
  4. Use the toolbar to set the font size, bold, italic, underline, text color and alignment.
  5. If you need a fixed length, set the number of pages in the Fit to box.
  6. Click Generate PDF and save the file to your device.

A useful habit: select a word or a line first, then apply a style. The change applies only to that part. With nothing selected, the setting applies to the text you type next.

Choose readable headings and font sizes

Good formatting is mostly restraint. A few simple rules make a plain document look professional:

Hit an exact page count

Many assignments say things like “minimum two pages” or “maximum three pages”. Instead of fiddling with sizes by hand, use the Fit to page(s) field. Enter the number of pages and the tool scales the text so the document fills them. Always look at the result before you submit. If the text has become too small to read comfortably, add more content or accept an extra page rather than shrinking it further.

Also remember that a page count is not the same as quality. Teachers and managers usually care more about clear writing than about stretching a document to a number.

Start from an existing PDF

If the words you want are already in a PDF, you do not need to retype them. Use PDF to Text to pull the text out, paste it into the editor here, and fix the formatting. The guide How to Convert a PDF to Text explains what to do when the file is a scan. If you only need to correct a few words inside the original file, editing the PDF directly keeps the layout intact.

Check the PDF before you send it

Privacy: your text stays with you

The PDF is generated locally in your browser. Nothing you type is sent to a server, which matters when the text is a private letter, a job application or personal notes. If you want to know why this approach is safer than uploading to a converter, read Are Online PDF Tools Safe?

Want to see every tool in one place? Browse the full list on the tools page.

Try it now: Text to PDFFree, no sign-up, and your files stay in your browser.
Open Text to PDF

Frequently asked questions

Is the PDF created on A4 paper?

Yes. Documents are exported on A4 pages, and longer text continues onto extra pages automatically.

Can I make the PDF exactly two or three pages long?

Yes. Use the Fit to page(s) option and choose how many pages you need. The tool adjusts the text size so the document fills that number of pages.

Can I change the font size and colors?

Yes. Font sizes from 8 to 72 are available, together with bold, italic, underline, several colors or a custom color, and left, center, right or justified alignment.

Is my text uploaded to a server?

No. The PDF is built inside your browser, so what you type stays on your device.

Keep reading

Related tools: PDF to Text (with OCR)