Skip to content

Text or Markdown to PDF

Turn plain text or Markdown into a PDF.

0 characters

How to use Text or Markdown to PDF

  1. Add your text. Type or paste plain text or Markdown into Your text, or select Open a .txt or .md file to load a local document.
  2. Choose page layout and typography. Pick A4 or US Letter in Page size, choose Small, Medium, or Large in Text size, and select Sans, Serif, or Mono under Font.
  3. Toggle Markdown parsing. Keep Format Markdown checked to style headings, lists, and code blocks, or uncheck it for literal plain text.
  4. Create and download. Select Make PDF to build your paginated vector PDF locally and save it to your device.

Your files are processed on this device and never uploaded. They stay private, and there's nothing to delete afterwards.

Choose A4 or US Letter dimensions with Standard 14 PDF Type 1 fonts

Sharing meeting notes, technical README files, or plain .txt logs often requires turning raw text into a fixed-layout PDF that looks identical on every screen. Instead of pasting drafts into a word processor, you can paginate plain text or Markdown straight inside your browser using built-in Standard 14 PDF Type 1 fonts.

Choosing A4 vs. US Letter page size and margins

In Page size, A4 creates 595.28 by 841.89 pt sheets, while US Letter creates 612 by 792 pt sheets. The tool automatically defaults to US Letter when your browser locale is US, Canadian, or Mexican, and defaults to A4 elsewhere.

Every page applies a uniform 56 pt margin on all four sides, leaving clean whitespace for binding or printing. Under the Library of Congress PDF 1.7 (ISO 32000-1) format description, default user-space coordinates measure 72 pt per inch and allow word wrapping and page pagination calculations without external layout engines.

Selecting Sans, Serif, or Mono fonts and text sizes

Under Font, Sans maps to PDF Standard Helvetica, Serif maps to Times-Roman, and Mono maps to Courier. Text size lets you pick Small (10 pt), Medium (11 pt), or Large (13 pt) with 1.4x line spacing.

Because Standard 14 Type 1 fonts are built into every compliant PDF viewer, the generated PDF needs zero embedded font binaries and stays tiny. If you need to pull plain text back out of an existing PDF later, you can extract plain text back out of any PDF.

Which Markdown elements render automatically in the PDF?

Checking Format Markdown converts block-level syntax such as headings, lists, blockquotes, fenced code blocks, horizontal rules, and pipe tables into structured PDF blocks. Unchecking it treats every line as literal plain text with manual line breaks preserved.

Markdown syntax PDF rendering behavior Font & spacing details
# to ###### headings Scaled bold section titles 2x down to 1x base text size
-, *, 1. lists Indented bullet or numbered items Up to 3 nested indent levels
- [ ] and - [x] Task list checkboxes Rendered as [ ] and [x]
> blockquotes Indented quote block Vertical rule + muted grey text
``` code fences Monospace code block Courier at 0.9x size on tinted box
--- horizontal rules Full-width divider line Clean horizontal stroke across margin

Opening a .md or .markdown file enables Format Markdown automatically, and pasting text with # headings or - bullets turns it on too. Block parsing follows the core structure of the CommonMark 0.31.2 Markdown specification for predictable line wrapping.

For workflows centered exclusively on rich Markdown styling, you can also open the dedicated Markdown-to-PDF formatter. Both tools run locally in your browser with zero server round-trips.

Vector PDF typography vs. headless browser printing for code and tables

Long paragraphs wrap automatically at word boundaries to fit inside the printable width, and overly long URLs or unbroken tokens wrap character by character so nothing overflows the right margin. Direct vector PDF typography avoids the heavy memory overhead of headless browser printing while keeping headings paired with following text.

Rendering GFM pipe tables, task lists, and Courier code snippets

Pipe-delimited tables from the GitHub Flavored Markdown (GFM) specification render as bordered grid cells with a shaded header row. Column widths distribute evenly across the available content width, wrapping multi-word cell text cleanly onto additional lines.

Task lists support up to 3 levels of indentation using two-space steps, making project checklists easy to scan on paper. Fenced code blocks typeset monospace Courier code snippets at 0.9x size inside a shaded box with clean vertical breathing room.

Inside paragraphs, inline **bold**, *italic*, `code`, and ~~strikethrough~~ markers are stripped so raw punctuation does not appear in printed prose. Markdown hyperlinks convert to label (url) so printed readers can still see the full destination address.

If you need full CSS typography, custom web fonts, or inline bold/italic spans inside paragraphs, you can render full CSS styling and web layouts as PDF instead.

Why do emoji or non-Latin characters turn into question marks?

Emoji and non-Latin scripts turn into question marks because PDF Standard 14 fonts use WinAnsiEncoding, which covers Western European Latin characters only. Before drawing each line, the text cleaner replaces unsupported Unicode code points with ? so the PDF builder never crashes.

Understanding WinAnsiEncoding limits in Standard 14 fonts

Standard Helvetica, Times-Roman, and Courier include roughly 200+ Western European glyphs mapped to WinAnsiEncoding (Windows-1252). Whenever emoji, Cyrillic, Arabic, or East Asian characters appear in your draft, the result panel reports the exact count of replaced glyphs.

Tip: Put a # Title heading on the first line when pasting notes directly into the editor. The builder uses that heading automatically as the downloaded PDF filename instead of generic Document.pdf.

Working within the 5 MB file limit and automatic naming

You can drag and drop or open Markdown and .txt files up to 5 MB (5,000,000 bytes) directly from disk, which protects browser memory from accidental binary uploads. Larger log archives should be trimmed before loading so pagination remains responsive.

For structured spreadsheet exports rather than prose notes, you can turn comma-separated spreadsheets into PDF tables with automatic column alignment.

Questions

Which Markdown formatting syntax is supported in the PDF?

The parser formats level 1 through 6 headings, paragraphs, bulleted, numbered, and task lists, blockquotes, horizontal rules, fenced code blocks, and GitHub-style pipe tables. Unchecking Format Markdown renders every line literally.

Can I use emoji or non-Latin alphabets in Text to PDF?

Not in the current built-in font set. Standard 14 PDF fonts support Western European Latin characters only, so emoji, Cyrillic, Arabic, or CJK glyphs render as question marks and the result screen reports the exact count.

How large a .txt or .md file can I convert in the browser?

Uploaded .txt, .md, and .markdown files can be up to 5 MB (5,000,000 bytes). Files larger than 5 MB are blocked with a warning because plain text documents rarely exceed that threshold.

How are inline bold, italic, and link markers handled?

Inline asterisks, underscores, and backticks are stripped cleanly so they do not clutter printed paragraphs. Markdown links such as [Example](https://example.com) are formatted as readable plain text with the URL in parentheses.

How does the tool choose the output PDF filename?

When you upload a file, the PDF keeps that filename stem. When you type or paste text, it uses the first level-1 Markdown heading if present, or falls back to Document.pdf.

Are my private notes sent to a remote web server?

No. Parsing, word wrapping, and PDF page generation run inside a local Web Worker on your device, so 0 bytes of your private notes or drafts ever reach a remote web server.

Updated