Free tool · Files Text to PDF: turn plain text into a tidy PDF in seconds
Paste text or open a .txt file, choose the paper size, margins and font size, and download a PDF with proper line wrapping and page numbers. CSV files become tables and Markdown keeps its headings and lists. Nothing is uploaded: the PDF is made in your browser.
- Files stay on your device
- TXT, CSV, Markdown
- Chinese and other scripts
Convert text to PDF
Type or paste text, or open a file. Set the layout and click Create PDF; the file downloads straight away.
Opening a .csv or .md file switches this automatically.
Type or paste text above, or open a file. Then click Create PDF.
Landscape fits wide tables with many columns.
Monospace keeps columns of code and aligned text in line.
English and Western European text uses the standard PDF fonts. Chinese and other characters use Noto Sans SC (SIL Open Font License), loaded only when needed; only the characters you use are embedded.
How much text fits on a page
With normal 1 inch (25.4 mm) margins and 1.4 line spacing. Chinese characters are all one em wide, so the count per line is exact.
| Font size | Lines per A4 page | Lines per Letter page | Chinese characters per A4 line |
|---|---|---|---|
| 10 pt | 49 | 46 | 45 |
| 11 pt | 45 | 42 | 41 |
| 12 pt | 41 | 38 | 37 |
| 14 pt | 35 | 33 | 32 |
Lines per page = (page height − top and bottom margins) ÷ (font size × line spacing), rounded down. An average English line at 11 pt holds about 80 to 90 characters.
Version v1.0Updated Update history
What the PDF looks like
The PDF is real text, not an image, so it can be searched, selected and copied.
Line wrapping
Long lines wrap at the right margin without splitting English words. Very long strings such as URLs are broken where they hit the margin. Blank lines and leading spaces are kept.
Chinese, Japanese and Korean
East Asian text can break between any two characters, and punctuation such as ,。)never starts a line. Characters outside the Latin set use Noto Sans SC; rare characters that the font does not contain are shown as □ and listed.
Pages
At 11 pt with normal margins an A4 page holds 45 lines. Page numbers sit centred in the bottom margin as “1 / 5”.
File size
Latin-only PDFs use the built-in PDF fonts and are usually a few kilobytes. With Chinese, only the characters used are embedded, so a page of Chinese text is typically tens of kilobytes rather than the full font size.
Need to combine the result with other PDFs? Use merge PDF; to turn the PDF back into text, use PDF to text.
Convert text to PDF in four steps
The defaults (A4, normal margins, 11 pt, page numbers) suit letters, notes and reports.
-
1
Add the text
Paste it into the box or open a .txt, .csv or .md file. The encoding is detected for you.
-
2
Check the content type
Plain text keeps your lines as typed; CSV becomes a table; Markdown turns # into headings and - into lists.
-
3
Set the page
Pick A4 or Letter, the margins and the font size. Use Landscape for wide tables and Monospace for code.
-
4
Create the PDF
Click Create PDF. The file downloads at once; adjust the settings and create it again if needed.
How the text is laid out
The tool measures each word with the font that will draw it, fills lines up to the margin, and moves to a new page when the next line would cross the bottom margin. pdf-lib then writes the PDF in your browser.
- Usable width = page width − 2 × margin; an A4 page with 1 inch margins leaves 451 pt (159 mm)
- Line height = font size × line spacing; lines per page = usable height ÷ line height, rounded down
- Breaks are allowed after spaces and between East Asian characters; closing punctuation stays with the character before it
- Text files are read as UTF-8 by default; a byte-order mark selects UTF-8 or UTF-16, and files that are not valid UTF-8 are tried as Chinese GBK (GB18030) before Windows-1252
- CSV columns get the width of their longest cell; if the table is too wide, columns shrink in proportion and cells wrap
| Document | Settings | Why |
|---|---|---|
| Letter, notes, essay | A4 or Letter, 11–12 pt, normal margins | Comfortable to read and print |
| Code, logs, config files | Monospace, 9–10 pt, narrow margins | Columns line up; long lines wrap less |
| Spreadsheet export (CSV) | Landscape, 9–10 pt, header row on | More columns fit; header repeats on each page |
| Draft for comments | Double line spacing | Room for handwritten notes |
How many pages will 3,000 lines of text take?
A plain-text log of 3,000 short lines, printed on A4 with normal margins.
| Step | Calculation | Result |
|---|---|---|
| 1. Usable height | 841.89 − 2 × 72 | 697.89 pt |
| 2. Line height at 12 pt, 1.4 | 12 × 1.4 | 16.8 pt |
| 3. Lines per page | 697.89 ÷ 16.8, rounded down | 41 |
| 4. Pages | 3,000 ÷ 41, rounded up | 74 pages |
At 10 pt the same log needs 62 pages (49 lines each); with compact 1.2 spacing it drops further. Lines longer than the page width wrap and add to the count.
Where text to PDF goes wrong
Most problems come from the file encoding or from content that is wider than the page.
Garbled characters
Text saved by old Windows programs is often not UTF-8. The tool detects GBK and Windows-1252; if the preview looks wrong, re-save the file as UTF-8.
Wide tables in portrait
A CSV with ten columns squeezed onto a portrait page wraps every cell. Switch to Landscape and a smaller font.
Proportional font for code
Indentation and aligned columns only line up in a monospace font. Choose Monospace for code, logs and fixed-width reports.
Uploading private notes
Online converters usually upload your file. This tool makes the PDF in your browser, so the text never leaves your device.
The same privacy-first approach in our analytics
This converter keeps files on your device. TapCub applies the same idea to analytics: collect what you need, keep personal data out.
Cookieless visitor ID
Visitors are told apart by a keyed hash of the site, a salt, the IP address and the browser type. Nothing is written to the browser and the IP is never stored.
Learn moreCompliance centre
Choose balanced or strict, switch on IP truncation for some regions only, set the geography level and retention.
Learn moreSafeguards
Encryption in transit, sensitive fields encrypted at rest, masking by role, export and deletion of one person's data.
Learn moreText to PDF questions
Still have a question?
Chat with the team behind TapCub — we usually reply within a few hours on business days.
How do I convert a text file to PDF?
Open the .txt file in the tool above (or paste the text), choose the paper size and font size, and click Create PDF. The PDF downloads immediately.
Is my text uploaded?
No. The PDF is built by pdf-lib inside your browser. After the page and the PDF engine have loaded, the tool works offline.
Can I select and search the text in the PDF?
Yes. The text is written as real text with embedded fonts, not as an image, so it can be selected, copied and searched.
Does it support Chinese and other languages?
Yes. Chinese, Japanese kana, Greek, Cyrillic and accented Latin letters are drawn with Noto Sans SC, which is loaded only when your text needs it. About 6,700 common Chinese characters (the GB2312 set) are included; rarer ones and emoji appear as □.
How do I convert a Notepad file to PDF without Word?
Open the file here instead of printing from Notepad. You get page numbers and proper margins, and old Windows encodings such as GBK are detected so the characters come out right.
Can I change the font?
You can choose sans serif (Helvetica) or monospace (Courier), the size and the line spacing. Custom font files are not supported.
Update history
New features, fixes and data refreshes for this tool, newest first.
-
· v1.0
LaunchedFirst release.
Missing something or found an error? Tell us — requests that come up often go into the next update. All tool updates
Analytics that keep personal data out
TapCub counts visits without cookies and never stores IP addresses, with a compliance centre for stricter regions.