← All text tools

TXT to PDF with font and margins

Turn a plain text file or pasted text into a tidy PDF with the font, size, margins and page size you choose, with line numbers and UTF-8 text support.

  • Free
  • No sign-up
  • Works on any device

About TXT to PDF with font and margins

A plain text file has no layout, so printing it from a text editor often gives cramped margins and odd line breaks. This converter lays your text out on real PDF pages: pick Courier, Times or Helvetica, set the size, margins and page size, choose the tab width, switch line numbers and wrapping on or off, and see how many pages the result will have before you download. Characters outside Western European alphabets, such as Arabic, Chinese or Cyrillic, are drawn as sharp images so they print correctly. The file is made on your device.

How to use TXT to PDF with font and margins

  1. Paste your text or open a text file.
  2. Choose font, size, margins, page size and the line options.
  3. Check the page count shown and press Create PDF to download it.

Why use this tool?

Also known as

Frequently asked questions

Is my text uploaded anywhere?

No. The PDF is built by your browser from the text on the page, and nothing is sent to a server.

Can I use Arabic, Chinese or other scripts?

Yes. Lines the standard PDF fonts cannot write are drawn from your device's own fonts as images, so they look right but the text in those lines cannot be selected or searched in the PDF.

What happens to very long lines?

With wrapping on they are broken at spaces, or inside a long word if needed. With wrapping off they run straight on and are cut off at the page edge.

Is TXT to PDF with font and margins free?

Yes. TXT to PDF with font and margins on Toolipedia is free to use, with no sign-up and no watermark.

Is it safe to use?

Yes. Everything is worked out in your browser, and nothing you enter is sent to our server.

Does it work on my phone?

Yes. It works in any modern browser on Android and iPhone, as well as on tablets and computers. There's nothing to install.

Do I need an account?

No. Just open the page and use the tool. There's no sign-up and no email needed.

Related tools