Toolstia / Text to PDF converter

Convert text to PDF

Sometimes all you need is a PDF with some text in it: a note to attach to an email, a set of instructions to print, a draft to hand over, a log you want to keep in a fixed format. Opening a word processor for that is more work than the task deserves. This tool takes whatever you type or paste and turns it into a PDF with even margins, wrapped lines and as many pages as the text needs.

You choose the page size, A4 or US Letter, one of three fonts and a text size from 6 to 40 points. Pressing Create PDF builds the file and downloads it as text.pdf, and a short message tells you how many pages it has and how large the file is. The PDF is made in the page itself using a PDF library, so your text is not uploaded anywhere.

It is intentionally plain. There is no bold, no headings, no images and no colour. What it does well is reliable plain text, and it is good to know in advance what happens with long lines, special characters and indentation, which the sections below explain.

This makes a plain text PDF in one of the standard PDF fonts, which cover English and many European languages. Bangla, Arabic, Chinese and emoji are not supported and are replaced with a question mark.

How it works

  1. Type or paste your text.
  2. Choose the page size, font and text size.
  3. Press Create PDF.

Plain and tidy

The PDF has even margins and uses the standard PDF fonts: sans-serif, serif or monospace. Long lines wrap at the margin and a new page starts when the text reaches the bottom.

Supported characters

The standard fonts cover English and many European languages with accents. They do not include Bangla, Arabic, Chinese, Hindi or emoji. Those characters are replaced by a question mark, and the tool tells you how many.

For other scripts

To make a PDF in another script, write it in a word processor and use Save as PDF, which embeds the right fonts.

Line breaks

Your own line breaks and blank lines are kept, and tabs become four spaces.

Layout: margins, line height and how many lines fit

Every page has a margin of 56 points on all sides, which is about 19.8 mm or 0.78 inch. Line spacing is the text size multiplied by 1.35. At 12 points that means 16.2 points per line, and a full A4 page holds 45 lines. A US Letter page is shorter, so it holds 42 lines at 12 points. At 10 points an A4 page fits 54 lines, and at 14 points 38 lines.

A new page is started automatically when the next line would fall below the bottom margin. Blank lines count as lines and are kept, so two empty lines in your text become a visible gap of two lines.

How lines are wrapped

Text is split at your own line breaks first, and each line is then wrapped to fit the width between the margins. Wrapping happens at spaces, using the real width of the characters in the chosen font. A word that is longer than a whole line, such as a long web address, is cut at the margin and continues on the next line. As an example, in Courier at 12 points each character is 7.2 points wide, so an A4 line holds 67 characters, and a 150-character unbroken string would be shown as lines of 67, 67 and 16 characters.

In the proportional fonts, Helvetica and Times, lines hold more characters on average, and the exact number depends on the letters. Tabs are replaced with four spaces.

Leading spaces are not kept

Spaces at the start of a line are dropped, so indentation does not survive. Spaces in the middle of a line are kept, so two spaces between words remain two spaces. If you are turning source code, a table drawn with spaces or a poem with deliberate indents into a PDF, the alignment at the left edge will be lost. Use a word processor or a code editor's print function for that. Courier is the right font for aligned columns inside a line, but not for a first column that starts with spaces.

Which characters work

The tool uses the standard PDF fonts, which do not need to be embedded in the file. They cover English and many European languages, including accented letters such as e with an acute accent, n with a tilde and the German sharp s, plus typographic quotes, dashes, bullets and the euro sign. They do not cover letters outside that Western set. Polish l with a stroke and Turkish s with a cedilla, for example, are not available, and neither are Bangla, Arabic, Hindi, Chinese, Japanese, Korean or emoji.

Any character that cannot be shown is replaced with a question mark, and the result message tells you how many were replaced. Check the message before sending the file. For those scripts, write the document in a word processor and use its Save as PDF function, which embeds suitable fonts.

Choosing a font and a size

Helvetica, the sans-serif choice, is the easiest to read on screen. Times suits letters and long reading passages. Courier gives every character the same width, which keeps columns of numbers and simple ASCII tables lined up. A size of 11 or 12 points is comfortable for printing. Going below 8 points makes small print, and the tool rejects sizes below 6 or above 40.

Limits

There is no fixed length limit, but a very large text takes longer to lay out and you may see the button show Working for a moment. The button stays disabled until there is some text that is not only whitespace. The output has no title, author, page numbers or bookmarks in it. For those, use the PDF page numbers tool on the finished file.

Questions

Is my text uploaded?

No. The PDF is built in your browser.

Can I make the PDF bold or add headings?

No. This tool makes plain text pages. For formatting, use the AI text to Word tool or a word processor.

Why did some characters become ?

The standard PDF fonts cannot show them. See the note on supported characters.

Is there a length limit?

No fixed limit, but very long texts take longer.

Can I choose the file name?

No. The file downloads as text.pdf. Rename it on your device after saving.

Does it keep my line breaks and blank lines?

Yes. Each line break in your text starts a new line, and blank lines stay as blank lines. Only lines that are too wide get wrapped further.

Why did my indented lines lose their indentation?

Leading spaces at the start of a line are removed during wrapping. Spaces inside a line are kept.

Can I make a PDF in a language like Bangla or Arabic?

Not with this tool, because the built-in PDF fonts do not contain those letters and they would show as question marks. Use a word processor and export to PDF.