Send feedback

Coming from the page: Text to PDF

One moment…

Selectable textArabic shaped correctlyA4, Letter, A5

Text to PDF

Type your text or open a TXT file, choose font and paper, then save it as a PDF.

The print window opens: choose “Save as PDF” as the printer, then Save. On iPhone: Share → Save to Files.

Preview

The PDF is made inside your browser and nothing is uploaded. Fonts other than IBM Plex load from Google Fonts.

How to convert text to PDF

1

Add your text

Type or paste it, or open a TXT file in any encoding.

2

Lay out the page

Font, size, alignment, paper size, margins and an optional title. The preview updates as you go.

3

Save the PDF

Press “Save PDF” and choose “Save as PDF” in the print window.

Good to know

Arabic comes out right. Letters are joined, right to left, with English words and numbers in place, because the browser draws the text exactly as on screen.

Text stays text. You can select, copy and search the text in the PDF: it is not an image.

Each line picks its direction. Arabic lines start on the right and English lines on the left, or choose one alignment for all.

Why the print window? PDF libraries that run in the browser (jsPDF, pdf-lib) don't join or order Arabic letters, so Arabic comes out broken or reversed. The browser's own “Save as PDF” gets it right. The file is made on your device and never uploaded.

FAQ

How do I convert text to PDF?

Paste the text, pick the font and size, and press “Save PDF”. In the print window choose “Save as PDF”, then Save.

How do I convert a TXT file to PDF?

Press “Open a TXT file” and pick it. UTF-8, UTF-16 and old Arabic Windows-1256 files are detected automatically.

Can I copy text from the PDF?

Yes. The PDF holds real text with embedded fonts, so you can select, copy and search it.

How do I save a PDF on a phone?

On Android, pick “Save as PDF” instead of a printer. On iPhone, tap Share in the print window, then “Save to Files”.

Why don't page numbers show?

Page numbers work in recent Chrome and Edge. In other browsers, turn on “Headers and footers” in the print window, or save without numbers.