# Text to PDF

> Turn pasted text or .txt, .md, .csv, .log and code files into a clean PDF with selectable text. A4, Letter or Legal, fonts, margins, page and line numbers.

URL: https://tools.cuelark.com/text-to-pdf
Publisher: Cuelark Team (https://cuelark.com)
Updated: 2026-11-16
Price: free, no sign-up
Privacy: runs in the browser; files are not uploaded

Paste text or open .txt, Markdown, CSV, log and code files and get a tidy PDF with real, searchable text: long lines wrap at word boundaries, tabs keep their indentation, and you can add page numbers, a title header or line numbers. It all happens in your browser, so private notes never leave your device.

## How to use it

1. Paste or type your text, or drop one or more text files (TXT, MD, CSV, LOG, JSON or source code).
2. Choose the paper (A4, Letter or Legal), orientation, font, size, line spacing and margins. The preview shows each page exactly as it will be laid out.
3. Turn on page numbers, a title header or line numbers if you want them.
4. Click Download PDF. With several files, choose one combined PDF or separate PDFs in a ZIP.

## What happens to your text

Every line you paste stays a line in the PDF. A line that is wider than the page wraps at the last space that fits, and the wrapped part starts at the left margin; a word or link with no spaces that is still too wide breaks between characters, so nothing runs off the page. Tabs become spaces at 4-column stops, which keeps code, tables made of spaces and indented lists lined up, especially in the monospace font.

With line numbers on, each original line gets its number once, even when it wraps over several printed lines, so the numbers match your editor. Blank lines are kept, trailing spaces are dropped, and a form-feed character starts a new line.

## Hindi, Tamil, Arabic, Chinese and emoji

Scripts such as Devanagari, Tamil, Bengali and Arabic need text shaping: letters join and change form depending on their neighbours. A PDF made directly from a font without shaping would show broken or empty characters, so the tool checks your text first and tells you which scripts it can't draw. You then get two working options.

Download image PDF lays out the text with your device's own fonts and saves each page as an image inside the PDF: it looks right in any language, but the text can't be selected or searched. Print → Save as PDF opens a print view where your browser shapes the text; choosing Save as PDF (or Microsoft Print to PDF) gives a PDF with selectable text in any script.

## Details

- **Input:** Typed or pasted text; .txt, .md, .csv, .log, .json, .xml, .yaml and most source-code files (UTF-8, UTF-16 or Windows-1252), up to 8 MB each
- **Paper:** A4 (210 × 297 mm), US Letter (8.5 × 11 in) or Legal (8.5 × 14 in), portrait or landscape
- **Fonts:** Noto Sans or Noto Sans Mono, embedded (SIL Open Font License); covers Latin, Greek, Cyrillic, ₹ € £ and common symbols
- **Text in the PDF:** Selectable and searchable; only the characters you use are embedded, which keeps files small
- **Other scripts:** Hindi, Tamil, Arabic, Chinese, emoji and more via an image PDF or your browser's Print → Save as PDF
- **Privacy:** Runs in your browser; text and files are not uploaded

## Questions

### Will the text in the PDF be selectable and searchable?

Yes. Download PDF writes real text with an embedded font, so you can select, copy and search it, and screen readers can read it. Only the image PDF option (for scripts the font can't draw) produces pages that are pictures of text.

### Is my text uploaded anywhere?

No. The page lays out and writes the PDF in your browser. Your text and files are not sent to a server, and the tool keeps working if you go offline after the page has loaded. Your layout settings are remembered on this device; your text is not.

### Can I convert several TXT files at once?

Yes. Drop or pick several files together. You can switch between them to check each preview, then download one PDF with each file starting on a new page, or a ZIP with one PDF per file.

### How do I make a PDF from code or a log file?

Open the file and the tool switches to Noto Sans Mono, a monospace font, so columns and indentation line up. Turn on line numbers to number each original line, and use landscape or a smaller font size for very long lines.

### Why do some characters show a warning?

The embedded fonts cover Latin, Greek and Cyrillic alphabets plus common symbols such as ₹, € and £. For other scripts, such as Hindi, Tamil, Arabic, Chinese or emoji, use Download image PDF or Print → Save as PDF, which use your device's fonts instead.

### Does it keep Markdown formatting like headings and bold?

No. Markdown is printed as plain text, exactly as written, which is what you want for notes, READMEs and documentation drafts you need to share as a fixed file. Headings, lists and code blocks keep their line breaks and indentation.

## Related tools

- [Merge PDF](https://tools.cuelark.com/merge-pdf)
- [Add page numbers to a PDF](https://tools.cuelark.com/add-page-numbers-to-pdf)
- [Compress PDF to a size you choose](https://tools.cuelark.com/compress-pdf)
- [Word counter](https://tools.cuelark.com/word-counter)
- [Image to text (OCR)](https://tools.cuelark.com/image-to-text)
- [JPG to PDF](https://tools.cuelark.com/jpg-to-pdf)
