Convert TXT to PDF
Convert plain text files into a clean, readable PDF document.
How to convert a text file to PDF online for free
- 1
Bring your text in — as a .txt file or by pasting it
Click Select TXT files to pick one or several .txt files from your device (the picker accepts .txt / text/plain and supports multi-select), or tap Or paste text instead to type or paste content straight into a textarea. Both routes feed the same converter — pick whichever is closer to hand.
- 2
Set the page look on the right
Choose Page size A4 or Letter, a Font size (Small 10pt, Medium 12pt, Large 14pt), a Margin (Small, Normal, Big) and Line spacing (1.0, 1.15 or 1.5). With multiple files loaded you also get a Merge into one PDF switch — on gives you a single combined.pdf, off gives you one PDF per file.
- 3
Click Convert to PDF and download
The tool wraps your text to fit the printable area, paginates as many pages as needed and hands back the finished PDF (or PDFs) to your browser's normal download flow. Single files come out named after the source; a combined batch is saved as combined.pdf and a pasted snippet becomes pasted-text.pdf.
Works with Hindi, where most converters fail
Try converting a paragraph of Hindi, Marathi or Sanskrit in most free online text-to-PDF tools and you'll see the same disappointing result: rows of question marks, empty boxes, or roman transliteration instead of Devanagari. The reason is boring but simple — those converters build the PDF with the standard font that has been shipped with PDF viewers since the 1990s, and that font only knows a handful of Latin characters. Anything beyond it, including every Devanagari matra and conjunct, gets replaced with a placeholder because the font has no glyph for it.
This converter takes a different route the moment your text contains a non-Latin character. It loads real Noto Sans Devanagari fonts inside the browser, uses the same shaping engine your browser uses to display Hindi on a normal web page, and paints each page onto a high-resolution canvas — so matras attach to the right base letters, conjuncts like क्ष and ज्ञ render as proper ligatures, and half-forms connect the way native readers expect. English content, on the other hand, still goes through the fast selectable-text path, so a plain Latin document doesn't pay for the Hindi machinery at all. The tool picks the right pipeline automatically for each conversion.
From plain text to a presentable document
A .txt file is a strange thing to hand someone. It has no page structure, opens in whatever editor the recipient happens to have set as default, wraps differently on every screen and looks nothing like what you saw when you wrote it. Converting the same content to PDF pins everything down: real margins, a real font size, real page breaks, and identical rendering on every device that opens the file.
That's why portals, professors and hiring managers keep asking for a PDF instead of the notepad export they somehow received: it prints cleanly, attaches to any email client, uploads without odd line-wrapping and is impossible to accidentally re-format in transit. Convert once here and the same file is ready for every one of those destinations.
Clean page layout
Every PDF ships with proper A4 or Letter dimensions, the margin you picked (36, 54 or 90 points), the font size you chose and 1.0 / 1.15 / 1.5 line spacing. Long lines are wrapped to fit the printable width and the text flows onto as many pages as it needs — no truncation, no crushed lines.
Multi-language support
Latin-1 English text is embedded as crisp, selectable vector text using the PDF standard font. When the input contains characters beyond that — Hindi, Marathi, Sanskrit, Chinese, Japanese, Arabic and other Unicode scripts — the tool automatically switches to a shaping pipeline that uses Noto Sans Devanagari and Noto Sans so matras, conjuncts and glyph joining come out correctly.
Private conversion
The whole conversion runs inside your browser tab, so notes, journals, drafts and personal letters never leave your device. There's no server-side upload of your text and no queue on our side — once the page loads, the actual conversion keeps working even if the connection drops.
No length limit
There is no artificial page or character cap. The tool wraps your text line by line and adds pages until every wrapped line has a home — a 3-line note becomes a 1-page PDF; a 10,000-line log paginates into as many pages as it needs. The practical ceiling is your device's memory.
When do you need to convert text to PDF?
Assignments and application portals that only accept PDF
University submission systems, government forms and job portals routinely reject .txt attachments and demand a PDF. Convert your draft here and the same content becomes an acceptable upload without you having to open a word processor just to hit File → Export.
Notes exported from Notepad, code editors or note apps
Content copied out of Notepad, VS Code, Sublime, Obsidian or Apple Notes usually lives as a raw .txt or a paste on the clipboard. Turning it into a PDF gives the recipient a document that opens the same way on every device, with real margins and page breaks instead of a raw text stream.
Archiving logs and records in a fixed, printable format
Chat logs, server output, invoice line lists and any other plain-text record are safer to archive as PDFs — the layout is frozen, printing is predictable, and the file survives any future changes to the source app. This tool paginates the log cleanly so you can file or print it without surprises.
Turning a Hindi or English letter into a document ready to send
Whether you're drafting a leave letter, a complaint, a bio or an offer note in Hindi or English, converting the plain text into a PDF makes it presentable enough to attach to an email or upload to a portal. The Hindi pipeline means Devanagari matras render correctly instead of collapsing into boxes.
Frequently asked questions
How do I convert a TXT file to PDF for free?+
Open this page, click Select TXT files and pick your .txt file (or paste text with the Or paste text instead link). Choose a page size, font size, margin and line spacing on the right, then hit Convert to PDF. A PDF named after your source file downloads to your device — no account, no card, no watermark added.
Can I convert Hindi text to PDF?+
Yes — and getting Hindi right is one of the main reasons this tool exists. When the input contains Devanagari characters, the converter automatically switches to a shaping pipeline that uses Noto Sans Devanagari, so matras stay attached to their base letters and conjuncts like क्ष, त्र and ज्ञ render as proper ligatures. Marathi and Sanskrit written in Devanagari behave the same way. The trade-off is that Hindi pages are drawn as high-resolution images inside the PDF, so the text is not selectable in a viewer — but it prints and displays correctly everywhere.
Why do other converters show "????" for Hindi?+
Most free converters embed the standard PDF font (Helvetica), which only knows the first 256 Latin characters — Devanagari letters live far outside that range, so the encoder replaces each unknown character with a question mark. This tool detects that your text contains characters above that range and switches to a different pipeline that loads a proper Devanagari font in the browser and draws the shaped text onto the page. Same input, correct output.
Can I paste text directly instead of uploading a file?+
Yes. On the start screen there's a small Or paste text instead link under the file dropzone — tap it to switch to a paste view with a textarea, type or paste your content, and press Convert to PDF. The output is saved as pasted-text.pdf. You can flip back to file mode at any time with the Use a file instead link.
Will English text be selectable in the PDF?+
Yes. When your input stays inside the standard Latin-1 range (English and most Western European languages), the tool takes a fast vector path that embeds the text using the standard PDF Helvetica font — so you can select, copy and search it in any viewer. The moment a Devanagari or CJK character appears, the tool switches to the image-based pipeline for that job and the output note tells you the pages aren't selectable.
Do my files get uploaded to a server?+
No. Your .txt content and pasted text are read, converted and packaged into a PDF entirely inside your browser tab, so the words themselves never leave your device. To render Hindi and other non-Latin scripts, the browser does download the Noto Sans and Noto Sans Devanagari font files from Google Fonts the first time they're needed — but that request only fetches the font, it never carries your text back the other way.
Can I change font size or page size?+
Yes — both, from the sidebar. Page size toggles between A4 and Letter, and Font size offers Small (10pt), Medium (12pt) and Large (14pt). You can also pick a Margin (Small, Normal, Big) and Line spacing (1.0, 1.15 or 1.5). Every setting affects both the vector and the image-based pipelines the same way.
Is there a file length limit?+
No artificial cap on characters, lines or pages. The tool wraps each line to the printable width and adds pages until every line has a slot, so a five-word note becomes a one-page PDF and a very long log paginates into as many pages as it needs. Practical limits come from your device's memory, especially in the image-based Hindi pipeline where each page is a high-resolution image.
Can I convert on my phone?+
Yes. The whole tool is a web page, so on a phone Select TXT files opens the standard file picker (Files, Drive, iCloud, etc.), the paste option opens a normal textarea for typing or pasting, and Convert to PDF hands the finished document to the browser's usual download flow. No app to install and no permissions to grant beyond picking the file itself.
How do I do the reverse — PDF to text?+
Use the reverse tool: PDF to Text. It reads the text layer of a PDF and lets you copy the whole document to the clipboard or download it as a .txt file. Everything happens in the browser there too, so the PDF you're extracting from never leaves your device.