Laid out in your browser

Text to PDF — with a heading, footer and page numbers

Type, paste or open a text file and turn it into a clean PDF. Choose the page size, margins, font and line spacing, add a heading to every page, the file name and page numbers in the footer, and check every page before you download. Gujarati, Hindi and other scripts are shown correctly.

See how it works
  • Six page-number styles
  • Selectable, searchable text
  • Gujarati and Hindi work
  • Not uploaded to our server

Turn your text into a PDF

Type, paste or open a text file, choose the page layout, heading and page numbers, and create the PDF.

Your text is turned into a PDF in your browser. It isn't uploaded to our server.

Your text

Type, paste, or open a text file

 

Text files up to 10 MB: .txt, .md, .csv, .log, code and more. A form feed character starts a new page.

Page layout

Text
Heading and footer

 

 

Page 1

What this tool does

Plain text in, a finished document out.

Notes, a letter, a log or an exported chat become a PDF with proper margins, a heading and numbered pages, ready to print, email or attach.

What you get

  • A4, Letter or Legal pages, portrait or landscape, with narrow, normal or wide margins.
  • Sans, Serif or Mono text from 9 to 16 pt, with single, normal or double line spacing.
  • A heading on every page, the file name and page numbers in the footer, each on the left, centre or right.
  • Long lines wrapped at the margin, blank lines and indents kept, tabs lined up.
  • Text you can select and search; Gujarati, Hindi and other scripts shown correctly.
  • Every page of the finished PDF to check, at any size, before you download.

What it can't do

  • Keep bold, colours or tables from Word or a web page. Only the plain text is used; for a Word file, use a Word to PDF tool.
  • Turn Markdown or HTML into formatting. A .md or .html file is printed as you see it in a text editor.
  • Make a table of contents. The heading is the same on every page.
  • Keep Gujarati or Hindi text selectable in Create PDF. Those pages are pictures; Print or save as PDF keeps the text selectable.

How to turn text into a PDF in three steps

Write, set up the page, create.

Add your text

Type or paste it into the box, or press Open a text file, or drop a .txt file on the box. You can still edit it there.

Set up the page

  • Page size, margins, font and spacing.
  • A heading, the file name and page numbers.
  • The name of the PDF.

Create and download

Press Create PDF, look through the pages, then Download PDF. Change anything and press Create PDF again; your text stays.

  • No sign-up
  • Not uploaded to our server

Which settings for your text

Common jobs and what to choose for each.

Your textWhat you needWhat to set
Meeting notes or a short reportA tidy document to shareFirst line as a large title, Heading on every page, Page 1 of 3 on the right.
A letter or applicationSomething that looks typed and formalSerif, 12 pt, Normal margins; page numbers off for a one-page letter.
Code, a log or a config fileColumns that line up and lines you can refer toMono, 9 or 10 pt, Line numbers, Landscape for long lines.
An email or old .txt broken into short linesNormal flowing paragraphsJoin lines into paragraphs. A blank line still starts a new paragraph.
Notes in Gujarati or HindiEvery letter shown rightCreate PDF for a PDF that looks right everywhere, or Print or save as PDF for text you can select.
Several printouts of one projectPages you can tell apartFile name in the footer on the left, page numbers on the right.

The details

Six page-number styles

Choose one under Page numbers; the total is counted after all the text is laid out, so "of 3" is always right.

  • Page 1Just the number
  • Page 1 of 3Number and total
  • 1 of 3Shorter, with total
  • 1 / 3Compact
  • Page No. 1Formal
  • - 1 -Classic, often centred

How your text is laid out

What happens to lines, spaces, the heading and the footer.

Line breaks

Every line break you type is kept, and lines longer than the page wrap at a space. A word too long for one line, such as a web address, is split. Blank lines stay blank.

Spaces and tabs

Spaces at the start of a line are kept, so indented text stays indented. A tab moves to the next column of four, which lines up exactly with Mono.

Joined paragraphs

With Join lines into paragraphs, lines next to each other become one paragraph. A blank line, a line starting with a space, a dash, a bullet or a number like 1. still starts a new one.

Heading and footer

They sit in the top and bottom margins, so they never cover your text. When the file name and page number share a position they go on one line, and very long ones shrink to fit.

Gujarati, Hindi and more

The PDF's built-in fonts only have Western letters. For any other script, Create PDF draws each page as a sharp picture with your device's fonts, so every letter and joined form is right. Print or save as PDF keeps it as text.

The rupee sign

₹ isn't in the built-in fonts either. With Write ₹ as Rs. on, it is written as Rs. and the PDF stays real text. Turn it off to keep the sign; the pages are then saved as pictures.

When something doesn't look right

What usually causes it, and what to change.

Problem
Why it happens
Fix

Letters look wrong, like é

The file was saved in an older encoding. The line under Your text says which one was used.

Open it in Notepad, save it as UTF-8, and open it here again; or copy the text and paste it.

Short, broken lines

The text has a line break every 70 or so characters, common in emails and old files.

Tick Join lines into paragraphs.

Columns don't line up

Sans and Serif letters have different widths, so spaces can't line text up.

Choose Mono; every letter is the same width there.

Text can't be selected

The text has letters outside the Western set, so pages were saved as pictures. The note above Create PDF says so.

Use Print or save as PDF and pick Save as PDF as the printer.

A .docx won't open

Word files aren't plain text; they hold formatting in a zipped format.

Use a Word to PDF tool, or copy the text from Word and paste it here.

A cleaner PDF every time

Small choices that make a real difference.

Spread the footer

File name on the left and page numbers on the right is easy to read.

Use Page 1 of 3 for printouts

Readers can see straight away if a page is missing.

11 or 12 pt for reading

Smaller sizes suit code and logs; larger ones suit notes read on a phone.

Name the PDF

Type a clear name in PDF file name; it is also what the footer shows.

Check one page full size

Click a page to see the heading and footer exactly as they print.

Keep the text editable

Save your .txt too; changing it and creating the PDF again is quicker than editing a PDF.

Common questions about Text to PDF

If something's not covered here, the sections above likely have it.

Which page number styles can I use?

Six: Page 1, Page 1 of 3, 1 of 3, 1 / 3, Page No. 1 and - 1 -. Each can sit on the left, centre or right of the footer. The total is counted after the whole text is laid out, so it always matches the number of pages.

Can I add a heading to every page?

Yes. Tick Heading on every page, type the heading and choose left, centre or right. It sits in the top margin of every page. To give the document a big title only once, tick First line as a large title instead.

Can the footer show the file name and the page number?

Yes. Tick File name in the footer; it shows the PDF file name you typed. If the file name and the page number are set to the same position, they are joined on one line with a separator instead of overlapping.

Can I change the text or settings after creating the PDF?

Yes. Your text and settings stay on the page. Change anything and press Create PDF again; a note under Your PDF is ready tells you when the shown PDF no longer matches your changes.

Does it work with Gujarati, Hindi and other languages?

Yes. The PDF's built-in fonts only cover Western letters, so for other scripts Create PDF saves the pages as sharp pictures drawn with your device's fonts, and every letter looks right. That text can't be selected; Print or save as PDF keeps it as selectable text.

Which files can I open?

Plain text files up to 10 MB: .txt, .md, .csv, .log, .json, .xml, .html, code files and similar. UTF-8, UTF-16 and older Windows text are read. Word files, PDFs and pictures aren't plain text; copy their text and paste it instead.

Is my text uploaded?

No. The page loads its PDF engine from our server, then lays out your text and makes the PDF in your browser. The text is not uploaded to our server, and Start over or closing the tab clears it.