Processed on-device · jsPDF

Text to PDF Converter — with page numbers, footer, and heading controls

Paste text directly or upload a .txt file, choose page size, margins, fonts, page numbering, and optional headers or footers, then export a printable PDF — all inside your browser.

Heading, footer filename, and page numbers can each be positioned independently — left, center, or right. If two items use the same position, the tool automatically combines them into one footer line to avoid overlap.

See how it works
6 page-number formats Independent left/center/right placement Page heading support Runs locally in your browser
Built & maintained by Bhavin J. Sheth | Updated

Create Your PDF from Text

Upload or paste text, customize layout and page numbering, preview the output, and download the final PDF.

Local Browser Processing

Your text stays inside your browser during conversion. The tool does not require an account or store uploaded content on AllInOneTools servers.

1. Provide your text

Drag & drop a .txt file here

or click to browse

or

2. PDF output settings

Page & font

Page heading

Footer

If the footer filename and page number share a position, they are automatically combined onto a single footer line.

What this converter genuinely does

Real page structure, not just body text

A document is more than its paragraphs — headings, page numbers, and footers matter too.

What it genuinely does

  • Adds a consistent page heading to every page, positioned left, center, or right.
  • Shows the filename in the footer, independently positioned from the page number.
  • Supports six standard page-number formats with automatic total page calculation across multi-page documents.
  • Automatically combines the filename and page number on one line if you set them to the same position, preventing overlap.
  • Full control over page size, orientation, margins, font, and font size.

What it doesn't do

  • Doesn't preserve rich text formatting — this tool is designed for plain text, so styling from Word, HTML, or Markdown will not carry over.
  • Doesn't build a table of contents — the heading appears on every page identically, not per-section.
  • Doesn't detect headings within your text automatically — the page heading is a single value you type once, not extracted from content.

Four steps from text to finished PDF

Provide your text, configure the layout, then convert.

1

Provide your text

Upload a .txt file, or paste your content directly into the text area.

The uploaded filename becomes the default output name and footer text.
2

Configure the output

Set page size, orientation, margins, and font, then turn on a heading, footer filename, and page numbers as needed — each with its own position.

3

Convert

Click Convert to PDF. Your heading, footer, and page numbers are applied to every page automatically.

4

Review and download

Check the interactive preview, verify the layout, and download your file.

Printable PDF Output Browser-based processing

What this converter is genuinely good for

And where a different tool serves you better.

Situations where the text to PDF converter fits, and situations needing a different tool
Use caseWhyFit
Turning plain notes into a shareable PDFReal page numbering and a footer make it look like a finished document.Strong fit
A multi-page report with consistent headersThe page heading appears identically on every page automatically.Strong fit
Code snippets or plain-text logsCourier font option keeps monospaced content aligned correctly.Good fit
Converting a richly formatted Word documentOnly plain text is supported — bold, colors, and styling won't carry over.Use Word to PDF instead
A document needing a real table of contentsThe heading is identical on every page, not a per-section outline.Not a fit
Automatic Footer Layout & Pagination

Six page-number formats, and how they combine

Each page number format works with any supported page size and can be aligned independently from the filename footer.

Page 1
Just the page number
Page 1 of 3
Page number and total
1 of 3
Shorter version of the above
1 / 3
Slash-separated
Page No. 1
Formal labeling
- 1 -
Classic centered style
1

Body text is laid out first, across as many pages as it needs

The full page count is calculated once all content has been wrapped and paginated, ensuring multi-page totals like "Page 1 of 3" reflect the exact page count.

2

A second pass adds the heading and footer to every page

With the final page count established, each page receives the header at the top and the footer at the bottom in your selected positions without overlapping body text.

3

Shared positions are merged automatically

If the footer filename and page number share the same alignment (such as Left or Center), they are joined into a single clean line instead of overlapping.

When something doesn't work as expected

What's actually happening, and the fastest way through it.

Symptom
Why it happens
Fix

The footer looks crowded on one side

The filename and page number are both set to the same position, so they've been combined on one line.

Set them to different positions (e.g. filename left, page number right) to spread them out.

"Page 1 of 3" shows the wrong total

The page count is determined dynamically after pagination. If content is added after generating, the previous count may display.

Click "Convert to PDF" again to recalculate the page total with the updated content.

"Please select a valid text file"

The file's reported MIME type wasn't recognized as plain text by the browser.

Confirm the file has a standard .txt extension or paste the text directly into the text box.

The heading isn't showing up

The "Add a heading to every page" checkbox is off, or the heading text field is empty.

Turn the checkbox on and make sure you have typed text into the heading field.

Footer looks crowded

Why: Filename and page number share a position.

Fix: Use different positions for each.

Wrong page total

Why: Text changed without re-converting.

Fix: Click "Convert to PDF" again.

"Please select a valid text file"

Why: File type wasn't recognized.

Fix: Confirm the .txt extension or paste directly.

Heading not showing

Why: Checkbox off or text field empty.

Fix: Enable it and type a heading.

Getting a clean, finished result

A few habits that make a real difference.

Spread footer items across positions

Setting the filename on the left and the page number on the right provides a balanced, readable document footer.

Use "Page 1 of 3" for printed copies

Knowing the total page count helps readers verify complete document delivery for multi-page printouts.

Choose a readable font size

For documents intended for printing or sharing, 11–12 pt is a practical starting point for body text.

Check the preview before downloading

Use the page navigation buttons on the preview to verify header alignment and footer spacing across all pages.

Text to PDF FAQs

Common questions regarding text conversion, pagination, and file privacy.

What page number formats are available?

Available formats include: Page 1, Page 1 of 3, 1 of 3, 1 / 3, Page No. 1, and - 1 -. Each can be positioned left, center, or right in the footer independently of other elements.

Can I show the filename in the footer?

Yes, positioned left, center, or right, independently of the page number. If both are set to the same position, they are combined on one line rather than overlapping.

Can I add a heading to every page?

Yes. A page heading you type appears at the top of every page, positioned left, center, or right, separate from the footer.

Is it safe to upload my text here?

Yes. This tool converts text locally inside your browser. Your content is not uploaded to AllInOneTools servers during conversion.