Convert plain text into a fully formatted, paginated PDF — page settings, fonts, headers/footers, watermark, metadata, batch mode and encryption, entirely in your browser.
📤 Drag & drop .txt files or a .zip here, or click to choose (optional — you can also just paste text below)
Preview updates after you click "Convert to PDF" below. It shows the same file that downloads.
The original TXT to PDF tool did one job well: paste or upload plain text, pick a page size and font size, and get back a properly paginated PDF with sensible word-wrapping — no manual page breaks, no fuss. That covered the basic case, but a real document workflow needs more: multiple files converted in one pass, confidence that an oddly-encoded file (a UTF-16 export from an old Windows program, or a Notepad "ANSI" save) won't turn into garbled text, control over margins, fonts and alignment, a header and footer with page numbers, a watermark for drafts, proper PDF metadata for searchability, and — when the content is sensitive — genuine password protection. The Professional TXT to PDF Converter keeps the original tool's instant, in-browser simplicity and builds a complete document-conversion workbench around it: encoding auto-detection, full page and font control, headers/footers, watermarking, metadata, batch and ZIP conversion, AES-256 encryption, and a live preview — all computed locally, with nothing ever uploaded.
Bring your text in however suits you: drag and drop one or more .txt files (or a .zip archive full of them), paste directly into the text box, or use the Import from Clipboard button for a one-click paste from whatever you last copied. Every uploaded file is decoded using the correct character encoding — auto-detected from byte patterns, or chosen explicitly from UTF-8, UTF-16, ASCII, ANSI (Windows-1252) and ISO-8859-1 — so text that would previously have turned into question marks or empty boxes now converts correctly. File information (name, size, detected encoding), live statistics (characters, words, lines, paragraphs, estimated pages, reading time) and validation warnings (empty input, unusually large files, likely wrong encoding) update as you type or upload.
Upload individual .txt files one at a time or several at once, or upload a single .zip archive and every .txt file inside it is automatically extracted and queued for conversion — handy for a folder of notes or exported logs you'd otherwise have to open one by one. When multiple files are loaded, a batch mode switch lets you choose between merging everything into one continuous PDF (each file starting on a fresh page) or producing a separate PDF per file, delivered together as a single ZIP download.
Plain text files don't carry a label saying what encoding they use, which is exactly why so many "mystery garbled text" problems happen. This tool inspects the raw bytes of each file: a UTF-8, UTF-16LE or UTF-16BE byte-order-mark (BOM) is detected immediately and decoded correctly; without a BOM, the bytes are validated against strict UTF-8 rules, and if they pass, they're decoded as UTF-8 (the overwhelmingly common case for modern files); if they fail, the tool falls back to Windows-1252 (ANSI), which correctly handles the vast majority of older Western European text files. You can also select an encoding explicitly — UTF-8, UTF-16 (what Windows Notepad calls "Unicode"), ASCII, ANSI/Windows-1252, or ISO-8859-1 — if you already know what your file uses or the auto-detected guess needs overriding.
Choose from Arial, Helvetica, Times New Roman, Courier, Calibri, Roboto and Noto Sans, set font size, color, bold, italic and underline, and fine-tune line height, letter spacing and paragraph spacing. Align text left, center, right, or fully justified (with real word-spacing distribution, not a fake stretch). Add a header and footer with any combination of custom text, automatic page numbers, the source file name, and the current date and time. Layer on a watermark — text or an uploaded image — with adjustable opacity, rotation and position. Set the PDF's metadata (title, author, subject, keywords, creator) so the file is properly labelled wherever it's opened, searched or filed.
Seven standard page sizes are built in — A3, A4, A5, Letter, Legal, Executive and Tabloid — plus a fully custom size in millimetres for anything else. Switch between portrait and landscape orientation, and choose a margin preset (Normal, Narrow, Wide) or set the top, bottom, left and right margins individually in millimetres for exact control over how much text fits on each page.
When your content needs to stay private, tick "Password-protect the PDF" to encrypt the finished document with genuine AES-256 encryption — the same open-source QPDF engine that powers this site's dedicated Protect PDF tool, loaded only when you actually use this option so the converter itself stays fast and lightweight by default. Set an open password (required just to view the file), an owner password (controls permissions), and restrict printing or copying independently — the encryption happens entirely in your browser, and the password never leaves your device.
Every conversion — decoding, word-wrapping, pagination, watermarking, and even the optional encryption — happens entirely inside your browser. No file, no pasted text, and no password is ever uploaded to a server. The tool works offline once loaded (aside from optional CDN libraries for ZIP handling, PDF preview and encryption, each loaded once), needs no account, and includes no AI-powered functionality anywhere.
The Professional TXT to PDF Converter is a free, entirely browser-based tool for turning plain text — a single note, a full report, or a whole folder of exported files — into a properly formatted, paginated PDF. It grew out of a simple upload-and-download converter, but real conversion needs are rarely that simple: files arrive in different encodings that can silently corrupt special characters, a batch of dozens of files needs converting the same way rather than one at a time, and the resulting PDF often needs a header, a page number, a watermark, or a password before it's ready to send. This tool handles all of that, entirely on your own device, with nothing ever uploaded.
At the centre of the tool is a proper text pipeline rather than a naive one. Plain text files carry no information about their own character encoding — a file can be UTF-8, UTF-16, or one of several legacy 8-bit encodings, and opening it with the wrong assumption produces the classic symptom of "mojibake": readable text replaced with boxes, question marks, or nonsense characters. This converter inspects the raw bytes of every file it's given, checks for a byte-order-mark that unambiguously identifies UTF-8 or UTF-16, and if none is present, validates the bytes against strict UTF-8 rules before falling back to Windows-1252 (ANSI) — the encoding responsible for the overwhelming majority of older Western text files that aren't UTF-8. You can also pick an encoding explicitly, including plain ASCII and ISO-8859-1, for the rare file where the automatic guess needs a human override.
Once the text is decoded correctly, the layout engine takes over. Seven standard page sizes — A3, A4, A5, Letter, Legal, Executive and Tabloid — plus a fully custom size, in either portrait or landscape orientation, with margin presets or fully custom top/bottom/left/right values in millimetres, define the page itself. Word-wrapping respects your chosen font, size, and letter spacing precisely, rather than approximating, and text can be aligned left, centred, right-aligned, or fully justified with real inter-word spacing distribution rather than a crude stretch. Bold, italic and underline are all genuinely rendered using the correct font variant rather than a faked visual effect, and paragraph spacing adds breathing room between blocks of text exactly where blank lines appear in your source.
Font choice matters for how a document feels, so this tool offers seven named fonts — Arial, Helvetica, Times New Roman, Courier, Calibri, Roboto and Noto Sans. Arial, Helvetica, Times New Roman and Courier are rendered using their exact standard PDF equivalents, guaranteed to display identically on every PDF reader without needing any font file to be downloaded or embedded. Calibri, Roboto and Noto Sans are rendered using the closest standard PDF-compatible font (Helvetica) for the same reason: embedding genuine copies of those font files would mean fetching and bundling large external font resources on every conversion, adding real load time and a dependency on a remote font host succeeding — a trade-off this tool avoids in favour of staying fast, lightweight, and reliable even on a slow connection. The visual difference is modest for body text, and every measurement used for word-wrapping is calculated against the actual font being rendered, so line breaks always match what you see.
Beyond the page itself, a header and footer can carry custom text, automatic page numbers, the source file's name, and the current date and time, in any combination you choose. A watermark — plain text or an uploaded image — can be placed at the centre or any corner of the page, rotated to any angle, and set to any opacity from a faint background mark to a bold overlay, which is exactly what a "DRAFT" or "CONFIDENTIAL" stamp needs. Proper PDF metadata — title, author, subject, keywords and creator — is written into the file itself, so it shows up correctly when the PDF is searched, filed, or opened in any document viewer, rather than showing a generic blank title.
For files that need to travel further than your own desk, batch conversion handles multiple .txt files, or an entire .zip archive of them, in one pass — merged into a single continuous PDF with each file starting on its own page, or kept as separate PDFs delivered together in one ZIP download, whichever suits how you plan to use them. And when a document is genuinely sensitive, this tool's Security tab applies real AES-256 encryption using the same open-source QPDF engine that powers this site's dedicated Protect PDF tool — an open password to require before the file can even be opened, an owner password controlling permissions, and independent restrictions on printing and copying — loaded only when you actually switch encryption on, so the converter itself stays quick and light for the far more common case of just needing a clean PDF. A live preview, rendered with the same PDF engine your browser and every PDF reader uses, shows you exactly what you're about to download — page by page, zoomable — before you commit to it. Every part of this runs locally: your text, your files and your passwords are never transmitted anywhere, the tool works offline once loaded, and there is no account, no signup, and no AI-powered functionality anywhere in it.
The same guide in Hindi / यही जानकारी हिंदी में।
Professional TXT to PDF Converter एक फ्री, पूरी तरह ब्राउज़र-आधारित टूल है जो plain text — एक note, एक पूरी report, या exported files से भरा एक पूरा folder — को एक सही तरीक़े से formatted, paginated PDF में बदल देता है। यह एक साधारण upload-and-download converter से शुरू हुआ था, पर असली conversion ज़रूरतें शायद ही कभी इतनी सरल होती हैं: files अलग-अलग encodings में आती हैं जो special characters को चुपचाप ख़राब कर सकती हैं, दर्जनों files का एक batch एक ही तरीक़े से convert करना होता है न कि एक-एक करके, और बनी हुई PDF को अक्सर भेजने से पहले एक header, page number, watermark, या password चाहिए होता है। यह टूल यह सब करता है, पूरी तरह आपके अपने डिवाइस पर, कुछ भी upload किए बिना।
टूल के केंद्र में naive के बजाय एक सही text pipeline है। Plain text files अपने character encoding की कोई जानकारी नहीं रखतीं — एक file UTF-8, UTF-16, या कई legacy 8-bit encodings में से कोई हो सकती है, और ग़लत मान्यता के साथ खोलने पर "mojibake" का classic लक्षण दिखता है: पढ़ने-योग्य text की जगह boxes, question marks, या बेमतलब characters। यह converter हर file के raw bytes जाँचता है, byte-order-mark के लिए check करता है जो UTF-8 या UTF-16 को स्पष्ट रूप से पहचानता है, और अगर कोई न हो, तो Windows-1252 (ANSI) पर वापस जाने से पहले bytes को सख़्त UTF-8 नियमों के विरुद्ध validate करता है। आप explicitly एक encoding भी चुन सकते हैं, plain ASCII और ISO-8859-1 सहित, उस दुर्लभ file के लिए जहाँ automatic अनुमान को इंसानी override चाहिए।
Text सही तरीक़े से decode होने के बाद, layout engine काम संभालता है। सात standard page sizes — A3, A4, A5, Letter, Legal, Executive और Tabloid — प्लस एक पूरी तरह custom size, portrait या landscape orientation में, margin presets या पूरी तरह custom top/bottom/left/right values millimetres में, page को ख़ुद परिभाषित करते हैं। Word-wrapping आपके चुने font, size, और letter spacing का ठीक-ठीक सम्मान करती है, अनुमान नहीं लगाती, और text को left, center, right, या पूरी तरह justify किया जा सकता है असली inter-word spacing distribution के साथ, न कि एक कच्चे stretch के साथ। Bold, italic और underline सभी सही font variant इस्तेमाल करके genuinely render होते हैं, न कि एक नक़ली visual effect के रूप में।
Font का चुनाव मायने रखता है कि एक document कैसा महसूस होता है, इसलिए यह टूल सात नामित fonts देता है — Arial, Helvetica, Times New Roman, Courier, Calibri, Roboto और Noto Sans। Arial, Helvetica, Times New Roman और Courier अपने exact standard PDF equivalents इस्तेमाल करके render होते हैं, हर PDF reader पर बिल्कुल एक जैसे दिखने की गारंटी के साथ, बिना किसी font file को download या embed किए। Calibri, Roboto और Noto Sans निकटतम standard PDF-compatible font (Helvetica) इस्तेमाल करके render होते हैं इसी वजह से: उन font files की असली कॉपी embed करने का मतलब होगा हर conversion पर बड़े बाहरी font resources fetch और bundle करना — एक trade-off जिससे यह टूल बचता है ताकि धीमे connection पर भी तेज़, lightweight और reliable बना रहे।
Page के अलावा, एक header और footer custom text, automatic page numbers, source file का नाम, और मौजूदा तारीख़ व समय किसी भी संयोजन में ले जा सकते हैं। एक watermark — plain text या एक uploaded image — page के center या किसी corner पर रखा जा सकता है, किसी भी angle पर rotate किया जा सकता है, और हल्के background mark से लेकर bold overlay तक किसी भी opacity पर सेट किया जा सकता है — बिल्कुल वही जो एक "DRAFT" या "CONFIDENTIAL" stamp को चाहिए। सही PDF metadata — title, author, subject, keywords और creator — फ़ाइल में ही लिखी जाती है, ताकि यह किसी भी document viewer में सही दिखे।
उन files के लिए जिन्हें आपकी अपनी desk से आगे जाना है, batch conversion कई .txt files, या उनके पूरे .zip archive को, एक ही बार में handle करती है — एक single continuous PDF में merge किया गया जहाँ हर file अपने ख़ुद के page से शुरू होती है, या अलग PDFs के रूप में रखा गया जो एक ही ZIP download में साथ दिए जाते हैं। और जब कोई document genuinely sensitive हो, इस टूल का Security tab असली AES-256 encryption लगाता है, उसी open-source QPDF engine का इस्तेमाल करते हुए जो इस साइट के dedicated Protect PDF टूल को चलाता है — एक open password जो फ़ाइल खुलने से पहले चाहिए, एक owner password जो permissions नियंत्रित करता है, और printing व copying पर स्वतंत्र प्रतिबंध — जो सिर्फ़ तभी load होता है जब आप वाकई encryption चालू करते हैं। एक live preview, आपके browser जैसे ही PDF engine से render की गई, ठीक वही दिखाती है जो आप download करने वाले हैं। इसका हर हिस्सा locally चलता है: आपका text, आपकी files और आपके passwords कभी कहीं transmit नहीं होते, लोड होने के बाद टूल offline काम करता है, और इसमें कोई account, कोई signup, और कहीं भी कोई AI-powered functionality नहीं है।
Yes, completely free with no signup, no account and no limit on how many files you convert. / हाँ, यह पूरी तरह मुफ़्त है, बिना signup या account के।
No. Every conversion — decoding, layout, watermarking and even encryption — runs locally in your browser; nothing is ever uploaded. / नहीं, सब कुछ आपके ब्राउज़र में ही होता है।
Individual .txt files (one or several at once) or a .zip archive containing .txt files, which are automatically extracted. / .txt files या .txt files वाली .zip archive convert कर सकते हैं।
The tool checks for a UTF-8 or UTF-16 byte-order-mark first; without one, it validates the bytes against strict UTF-8 rules and falls back to Windows-1252 (ANSI) if that fails — covering the vast majority of real-world text files correctly. / पहले BOM जाँचा जाता है, फिर UTF-8 validation, न मिलने पर ANSI पर fallback।
The auto-detected or selected encoding likely doesn't match the file's actual encoding. Try switching the Encoding dropdown to a different option (UTF-8, UTF-16, ANSI/Windows-1252, or ISO-8859-1) and re-check the preview. / ग़लत encoding चुनने पर text गड़बड़ दिख सकता है, encoding बदलकर देखें।
It's the label Windows Notepad historically used for UTF-16LE — this tool uses the same familiar naming so files saved with that option decode correctly. / "Unicode" यहाँ UTF-16LE को दर्शाता है, Windows Notepad की तरह।
Yes — upload several .txt files or a .zip archive, and choose whether to merge them into one PDF or produce a separate PDF per file (delivered as a ZIP). / कई files एक साथ upload करके merge या separate PDFs बना सकते हैं।
A3, A4, A5, Letter, Legal, Executive, Tabloid, and a fully custom size in millimetres, in either portrait or landscape orientation. / A3 से Tabloid तक सात standard sizes, प्लस custom size।
Yes — choose Normal, Narrow or Wide presets, or enter exact top, bottom, left and right margins in millimetres. / Normal, Narrow, Wide presets, या custom margins mm में सेट कर सकते हैं।
Arial, Helvetica, Times New Roman, Courier, Calibri, Roboto and Noto Sans, each with bold, italic and underline options. / सात fonts उपलब्ध हैं, bold/italic/underline के साथ।
Embedding genuine copies of those font files would require downloading and bundling large external font resources on every conversion. To stay fast and reliable, this tool substitutes the closest standard PDF-compatible font (Helvetica) instead — word-wrapping is calculated against the actual rendered font, so line breaks always match what you see. / असली fonts embed करने से बचने के लिए नज़दीकी standard font (Helvetica) इस्तेमाल होता है।
Yes — left, center, right and full justify are all supported, with justify distributing real extra space between words rather than a crude visual stretch. / Left, center, right, justify — सभी alignment options उपलब्ध हैं।
Yes — custom header text, plus a footer that can combine custom text, automatic page numbers, the source file name, and the current date and time. / header text और footer में page number, file name, date/time जोड़ सकते हैं।
Yes — a text watermark or an uploaded image, with adjustable opacity, rotation angle and position (center or any corner). / text या image watermark, opacity/rotation/position के साथ।
Yes — Title, Author, Subject, Keywords and Creator are all written into the finished PDF's document properties. / Title, Author, Subject, Keywords, Creator सभी PDF में सेव होते हैं।
Yes — enable "Password-protect the PDF" in the Security tab for genuine AES-256 encryption via the same QPDF engine used by this site's dedicated Protect PDF tool, with separate open and owner passwords and independent print/copy restrictions. / Security tab में AES-256 से PDF को password-protect कर सकते हैं।
No. The encryption engine (QPDF compiled to WebAssembly) runs entirely in your browser; your file and your passwords never leave your device. / encryption भी पूरी तरह आपके browser में होती है।
Compressed uses PDF object streams to reduce file size; High Quality skips that compression for maximum fidelity and easier low-level inspection. For plain text content the visual difference is negligible either way, since there are no images to lose quality. / Compressed छोटी file size देता है, High Quality बिना extra compression के।
It's a simplified, archival-friendly output using only embedded standard fonts and no transparency or scripting — reasonably close to PDF/A in practice for plain text, but not independently validated against the full PDF/A conformance test suite. For certified archival compliance, verify with a dedicated PDF/A validator. / यह archival-friendly output है, पर पूरी तरह certified PDF/A validation नहीं।
No fixed limit, but very large files (tens of megabytes) take longer to process since everything runs on your device's own processing power rather than a server. / कोई तय सीमा नहीं, पर बहुत बड़ी files में ज़्यादा समय लगता है।
Yes — click "Import from Clipboard" to paste whatever you last copied directly into the text box, subject to your browser's clipboard permission prompt. / Clipboard button से copy किया गया text सीधे paste हो जाता है।
Yes — after converting, a live preview renders the actual generated PDF page by page using the same rendering engine your browser uses, with zoom and page navigation. / Convert करने के बाद असली PDF preview page-by-page दिखता है।
Empty input, an unusually large file, or replacement characters in the decoded text (a sign the encoding may be wrong) are all flagged before you convert. / Empty input, बहुत बड़ी file, या ग़लत encoding के संकेत फ़्लैग होते हैं।
Yes — every control is a native, keyboard-operable HTML element, status updates use ARIA live regions, and High Contrast and Large Fonts toggles are available in Settings. / Keyboard navigation, screen reader labels, high contrast और large fonts समर्थित हैं।
No. Encoding detection, word-wrapping, pagination and every layout calculation are deterministic, hand-written logic — no AI anywhere. / नहीं, इसमें कोई AI शामिल नहीं है।
Yes, once the page has loaded. ZIP handling, PDF preview and encryption each load a small library once when first used; the core conversion itself needs no ongoing connection. / लोड होने के बाद यह मुख्यतः offline काम करता है।