Text to PDF Converter
Paste text or upload a TXT file and get a PDF with the page size, margins, font and spacing you choose, plus optional page numbers and a title.
Convert text to PDF in seconds. Type, paste or upload a TXT file, choose the page size, font and margins, and download a clean PDF. Works with any language. Fast, free and no signup.
Your text is converted inside your browser. It is never uploaded, saved or stored on our servers.
If the preview does not show on your device, use Download PDF or Open in new tab.
Type or paste it, or upload a .txt file from your device.
Pick the page size, margins, font, size, spacing and page numbers.
Preview the result and download it. Nothing is uploaded.
Need to convert a TXT file to PDF quickly? This free TXT to PDF converter turns plain text into a clean, professional PDF in a few seconds, with no signup, no software to install and no file upload. Type or paste your text, or upload a .txt, .md, .csv or .log file, then choose your page size (A4, US Letter, US Legal or A5), portrait or landscape orientation, margins, font, font size, line spacing and text alignment. You can add page numbers, a title and even join broken lines into proper paragraphs. The tool works as a text to PDF converter, a Notepad to PDF tool and a txt file to PDF maker in one place, and it runs entirely in your browser, so your text never leaves your device. Standard mode creates small PDFs with real, selectable text using the built-in PDF fonts, and Any language mode lets you convert Urdu, Arabic, Hindi, Chinese, Japanese, Korean and other scripts that standard PDF fonts cannot display. Whether you want to share notes, print a document, archive a log file or send a readable copy by email, this free online converter gives you a ready-to-use PDF in one click.
Paste text or upload a TXT file and get a PDF with the page size, margins, font and spacing you choose, plus optional page numbers and a title.
Convert Urdu, Arabic, Hindi, Chinese and other languages to PDF with right-to-left support, using the fonts available on your device.
The PDF is built inside your browser. Your text and your file are never sent to a server, which makes this converter safe for private notes and documents.
A TXT file is the simplest kind of document. It stores plain text and nothing else, with no fonts, no page layout and no formatting. That makes TXT files small, portable and easy to open in any text editor, but it also means they look different on every device, and they are not designed for printing or for sharing as a finished document. A PDF, short for Portable Document Format, stores the page layout together with the text, so it looks the same on every phone, tablet and computer, in every PDF reader and when printed.
Converting TXT to PDF is useful whenever you want a document that looks consistent and professional. You can email meeting notes, send a story or an article to a reader, hand in an assignment, print a contract draft, save a log file or a code listing for your records, or keep a tidy copy of a note for the long term. Because the PDF has fixed page sizes and margins, it prints predictably, and because PDF readers are available everywhere, the person you send it to does not need to install anything.
Turning a text file into a PDF takes only a minute. Follow these steps.
The converter offers two ways to create your PDF, because PDF files handle text in two very different ways. This comparison helps you choose.
| Feature | Standard mode | Any language mode |
|---|---|---|
| Languages | English and Western European languages | Any language your device can display, including Urdu, Arabic, Hindi and Chinese |
| Text in the PDF | Real text, selectable, copyable and searchable | Pictures of text, not selectable or searchable |
| File size | Very small | Larger, because each page is an image |
| Fonts | Helvetica, Times or Courier built into PDF readers | Fonts installed on your own device |
| Right-to-left text | Not supported | Supported |
| Justified text | Supported | Not supported |
| Best for | Notes, articles, code, logs and email attachments | Urdu, Arabic and other scripts, and mixed-language documents |
If your text contains characters that Standard mode cannot show, such as Urdu letters, the tool tells you how many characters were replaced and offers to switch to Any language mode.
Standard PDF fonts only cover the basic Latin alphabet and a few accented letters, so they cannot display Urdu, Arabic, Hindi, Chinese, Japanese, Korean, Thai or Cyrillic text. Any language mode solves this by drawing each page with your browser's own text engine, which supports complex scripts, joined letters and right-to-left direction, and then placing the pages into the PDF as images. The result looks exactly as it does on your screen. For Urdu, you can choose the Urdu Nastaliq font if it is installed on your device, and the tool falls back to Naskh and other system fonts if not. Because the pages are images, the text in the PDF cannot be selected or searched, and the file is larger than a Standard mode PDF, so use Any language mode only when you need it.
Choose the page size that matches how you will print or share your PDF. A4 is the standard in most of the world, including Pakistan, India, Europe and the UK. US Letter and US Legal are used in the United States and Canada. A5 is half of an A4 sheet and suits booklets and small notebooks.
| Page size | Millimetres | Inches | PDF points |
|---|---|---|---|
| A4 | 210 × 297 mm | 8.27 × 11.69 in | 595 × 842 pt |
| US Letter | 215.9 × 279.4 mm | 8.5 × 11 in | 612 × 792 pt |
| US Legal | 215.9 × 355.6 mm | 8.5 × 14 in | 612 × 1008 pt |
| A5 | 148 × 210 mm | 5.83 × 8.27 in | 420 × 595 pt |
In Standard mode you can choose between three fonts that every PDF reader has built in: a sans-serif font similar to Arial and Helvetica, a serif font similar to Times New Roman, and a monospace font similar to Courier. Sans-serif is clear on screens, serif is traditional for printed documents and long reading, and monospace keeps every character the same width, which keeps aligned columns, code listings and log files tidy. A font size of 11 or 12 points is a comfortable choice for most documents, and a line spacing of about 1.4 improves readability. Double spacing is common for drafts and assignments that need room for comments.
Margins give your text breathing room and protect it from being cut off by printers. Normal margins of one inch suit most documents, narrow margins fit more text on each page, and wide margins create a more formal look. Left alignment is the easiest to read for most text, justified alignment creates even edges like a printed book, and centre or right alignment can work for poems, headings and short notes. Page numbers in the footer, shown as Page 1 of 5, make longer PDFs easier to navigate and refer to, especially when printed.
Many plain text files, especially emails, e-books and text copied from older systems, break each line at a fixed width, often around 70 or 80 characters. In a PDF, those hard line breaks make paragraphs look ragged and leave short lines in the middle of sentences. Turn on Join broken lines into paragraphs and the converter treats every blank line as the end of a paragraph, joins the lines inside it and lets the text flow across the full width of the page. Leave this option off for poems, code, lists and tables, where each line break matters.
If your PDF shows strange symbols or question marks, the cause is usually one of two things. The first is file encoding. A text file can be saved in different encodings such as UTF-8, UTF-16 or Windows-1252, and reading it with the wrong one produces garbled letters. This converter detects the common encodings automatically, but if a file still looks wrong, open it in a text editor, save it again as UTF-8 and upload it again. The second cause is characters that the PDF font cannot display. In Standard mode, characters outside the Western European set are replaced by a question mark. Switch to Any language mode and they will appear correctly.
Many online converters upload your file to a server, which is a concern for private notes, contracts, passwords lists, medical text or business documents. This tool does not upload anything. The PDF is created by code running in your browser, so your text stays on your device from the moment you paste it until you download the result. When you close the page, the text is gone. This also means the converter keeps working even when your connection is slow.
The converter handles plain text. It does not read formatting from Word documents or HTML, it does not add images, tables or links, and it does not support bold or italic text inside your content. The PDFs it makes are standard PDFs, not tagged accessibility files and not PDF/A archive files, because they use the built-in PDF fonts instead of embedding fonts. In Any language mode the text is part of an image, so screen readers and search tools cannot read it. If you need a fully accessible document, a Word processor with a tagged PDF export is a better tool. For very long texts, Any language mode limits the PDF to about 150 pages, and Standard mode has no fixed page limit but is limited by your device's memory.
After you create your PDF, you can turn its pages into pictures with our PDF to Image converter, which is useful when you need JPG or PNG pages for presentations or websites.
People find the TXT to PDF by searching for TXT to PDF, convert text to PDF online, paste text to PDF, plain text file to PDF, text to PDF with font and margins and Urdu text to PDF. All of these searches describe the same job, and this free online tool handles it with no signup, no watermark and no software to install, on Windows, Mac, Linux, Android and iPhone.
Our TXT to PDF converter is free to use with no registration, no watermark and no limits on how many files you convert. It works on desktop, tablet and mobile, in any modern browser, and it never asks for an account or an email address.
Quick answers to common questions about converting text files to PDF online.
Paste your text or upload your TXT file, choose the page size, font and margins, then click Convert to PDF. Check the preview and download your PDF.
It is completely free with no signup and no watermark. The PDF is created in your browser, and your text and files are never uploaded or stored on a server.
Yes. Choose Any language mode. It supports Urdu, Arabic, Hindi, Chinese and many other scripts, including right-to-left text, using the fonts on your device. In this mode the text in the PDF is not selectable.
Standard mode uses built-in PDF fonts that only support Western European characters, so other characters become question marks. Switch to Any language mode to show them correctly.
Yes. You can choose A4, US Letter, US Legal or A5, portrait or landscape, three margin sizes, three fonts, the font size, line spacing, alignment, an optional title and page numbers.
In Standard mode, yes. The PDF contains real text that you can select, copy and search. In Any language mode the pages are images, so the text cannot be selected or searched.
Standard mode handles long texts of up to about two million characters, depending on your device. Any language mode is limited to about 150 pages because each page is an image. For very long documents, split the text into parts.
Merge, split, compress, edit and convert PDF files with ease. Explore free PDF tools to manage all your documents in one place.
Explore All PDF Tools →