TXT to PDF Converter
This TXT to PDF converter works in three steps: drop in a text file or type straight into the box, choose a layout and click “Create PDF”. Line numbers, page numbers and a title are optional. Everything happens in your browser – no upload, no sign-up.
Source: Adobe – ISO 32000-1:2008 Document management – Portable document format (PDF 1.7). Updated: .
How it is calculated
A TXT file opens anywhere, but it looks different on every device – and many portals, agencies and application forms only accept PDF. This tool typesets your text cleanly onto pages: real word wrapping, even line spacing and adjustable margins. The text stays selectable and searchable in the PDF.
How it works
- Drop in a TXT file – or simply type or paste text into the box. The sample is only there as a preview.
- Choose the page size (US Letter, US Legal, A4, A5), orientation, font, size and margins.
- Optionally add a title, page numbers (“1 / 3”) and line numbers – handy for minutes, code and proofreading.
- Click “Create PDF”, check the first page in the preview and download.
Background: fonts and special characters
Helvetica, Times and Courier are among the 14 standard fonts every PDF reader knows (ISO 32000-1, 9.6.2.2). They are not embedded, so the file stays tiny – but they only cover Western European characters. If your text contains, say, Polish, Turkish, Greek or Cyrillic letters, the tool automatically embeds the free Noto Sans font. Characters none of these fonts have (such as emoji or Chinese and Japanese script) are replaced and listed. Tabs are expanded to stops every four characters; with Courier, columns and indented code line up exactly. A form feed character in the file starts a new page.
Honest limits
- Plain text only: Markdown characters such as
#or**are printed, not formatted. - Files are read as UTF-8 or Windows-1252; other legacy encodings may show wrong accented letters.
- Up to 20 MB per file or 5 million characters.
To go the other way, use PDF to text. To combine several PDFs into one: Merge PDF. Photos instead of text? Images to PDF.
Frequently asked questions
How do I convert a TXT file to PDF?
Drop the TXT file in here, choose page size and font and click “Create PDF”. Download the PDF right away – no upload, no sign-up.
Can I paste text instead of choosing a file?
Yes. Just type or paste your text into the box (Ctrl + V) and click “Create PDF”.
How do I convert TXT to PDF on Windows 10 or 11?
In Notepad via File → Print → “Microsoft Print to PDF” – but without control over margins, font or page numbers. This browser tool lets you set all of that.
Can I convert TXT to PDF on an iPhone?
Yes, in Safari: pick the TXT file from the Files app or paste the text, create the PDF and save it to Files.
Are accented and special characters shown correctly?
Western European accents always. For Eastern European, Turkish, Greek and Cyrillic letters Noto Sans is embedded automatically. Emoji and Asian scripts are replaced and reported.
Is the text in the PDF searchable?
Yes, it is set as real text, not as an image, so you can select, copy and search it.
Sources and legal basis
- Adobe – ISO 32000-1:2008 Document management – Portable document format (PDF 1.7)
- pdf-lib – Andrew Dillon (MIT)
- ISO 32000-1:2008, 9.6.2.2 Standard Type 1 Fonts (14 standard fonts) and 8.3.2.3 User Space (1 pt = 1/72 inch)
- ISO 216 paper sizes A4/A5 (ISO)
- Noto Sans – Google Fonts (SIL Open Font License 1.1)
- WHATWG Encoding Standard – UTF-8, UTF-16, windows-1252 (TextDecoder)
- Open-source licenses of the libraries used (MIT, LGPL-3.0)
As of:
Related tools
- PDF to Text ConverterConvert PDF to text: copy the text of every page or save it as TXT, with clean paragraphs and OCR for scanned pages. Free, right in your browser, no upload.
- Images to PDF: convert JPG, PNG and HEIC to PDFConvert JPG, PNG, WebP or HEIC to PDF and combine several images into one PDF – A4, Letter or image size, with margins. No upload, free, in your browser.
- Merge PDF filesCombine several PDFs into one file, even with JPG and PNG images. Reorder with arrows. No upload, no sign-up, no watermark – runs in your browser.
- Text CleanerRemove line breaks, extra spaces, empty lines and invisible characters, delete duplicate lines and sort lists. Free, instant and private in your browser.
- Word Counter and Character CounterCount characters with and without spaces, words, sentences, paragraphs and reading time – live, with limits for X, Instagram, TikTok, LinkedIn, SMS and more.
- Add Border to ImageAdd border to image online: white or colored border, instant-photo style, rounded corners and a transparent frame, with preview. Free, no upload.