tomai
Log in
Free · Format Converters

Text/Markdown to PDF

Turn a .txt or .md file into a real PDF — free, in your browser

Recognizes # headings, - / * bullet lists, 1. numbered lists, ``` code blocks, and **bold** / *italic* text.

🔒

100% private — Files are converted right in your browser and never uploaded to any server.

Fonts, wrapping and CJK fallback

  • Text flows through word-wrap at your chosen margin, preserving blank lines as paragraph breaks.
  • Chinese/Japanese/Korean input switches to an embedded CJK font automatically instead of blank boxes.
  • The monospace option aligns code and ASCII tables column-for-column.

How it works

  1. 1

    Drop in your .txt or .md file.

  2. 2

    Choose a font size.

  3. 3

    Click Convert and download your typeset PDF.

Plain text deserves proper typography

📄

Markdown-aware typesetting

Headings, bullet and numbered lists, fenced code blocks with a shaded background, and **bold**, *italic* and `code` inline all render as real typography, not raw characters.

Chinese, Japanese and Korean fonts

CJK characters embed a real subsetted font instead of triggering an encoding error — a Chinese README or Japanese notes document typesets fully, with automatic page breaks on A4 pages.

🔒

Font size and pagination control

Pick 10, 11 or 13 point body text before converting. Long files paginate automatically, and each page keeps the same 54-point margin so printouts look consistent.

Frequently asked questions

Which Markdown features are supported?

Headings (#, ##, ###), bullet and numbered lists, fenced code blocks (```), and inline **bold** / *italic* / `code` text — the constructs people actually use most.

What happens to a plain .txt file?

It's typeset as regular paragraphs with automatic word-wrap and page breaks — no Markdown syntax required.

Is my file uploaded?

No — the PDF is built entirely in your browser using an on-page engine. Your file never leaves your device.

Is there a length limit?

Up to 20 MB of text. Long documents automatically flow across as many pages as needed.

Related tools

What Is Text to PDF Conversion?

Text to PDF conversion turns a plain .txt or Markdown .md file into a properly typeset PDF with real formatting. Notes, README files, documentation, and drafts written in plain text often need to be printed, sent, or archived as a PDF — and a raw text file pasted into a word processor rarely looks good. This tool typesets your text in the browser: headings, bullet and numbered lists, code blocks with shaded backgrounds, and bold and italic emphasis are all rendered correctly, with automatic page breaks and your choice of font size. Even long files typeset in a single pass, with automatic page breaks keeping every sheet neat.

What this tool can do

  • 📝 Renders headings, paragraphs, and inline bold, italic, and code styles
  • 📋 Bullet and numbered lists are laid out cleanly
  • 💻 Fenced code blocks get a shaded background, like in an editor
  • 🔤 Choose a small, medium, or large body font size
  • 📄 Automatic page breaks keep every page neatly filled
  • 🌏 Chinese, Japanese, and Korean text is fully supported

When you'll use it

  • 📄 Turn your notes into a printable PDF for a meeting or class
  • 📚 Export a README or documentation file as a clean PDF for distribution
  • ✍️ Draft a document in plain text, then typeset it for sharing
  • 🖨️ Create a tidy PDF version of a text archive that reads well on any device

Everything runs locally in your browser — your text file is never uploaded. The typesetter covers the common Markdown constructs — headings, lists, code fences, and bold or italic emphasis — but is not a full Markdown renderer: tables, links, and images are not drawn. Bold and italic styles render for Latin text, while CJK documents use a single weight, and other scripts such as Hindi or Cyrillic will show a clear error until fonts for them are added.

Related tools