Markdown to PDF

Preview Markdown as a PDF. Images appear as text descriptions.

Free to use · No account needed · Files stay on your device

Text editor

About Markdown to PDF

A README, reading list or handout often needs to work on paper as well as in a text editor. Check the formatted document here before saving a PDF, especially when it includes links, code blocks or illustrations.

How to use this tool

  1. Paste your Markdown or select Open file.
  2. Check the rendered document and any image descriptions.
  3. Select the print button and choose a PDF destination.

Formats, options and limits

Input
Paste Markdown or open a UTF-8 .md, .markdown or .txt file up to 256 KiB.
Formatting
Headings, lists, blockquotes, emphasis, code blocks and pipe tables render in the preview.
Images
Markdown image syntax prints a bracketed description. An empty description prints as [Image].
Links
Web and email links can be opened from the saved PDF. Relative file paths have no active target.

Turn a working Markdown file into a readable handout

A project README often serves two audiences. A contributor reads the Markdown source in an editor, while a workshop participant needs instructions they can print or annotate. Open the UTF-8 file or paste its contents to see headings, emphasis, lists and code blocks rendered as a document. Keep the Markdown source for future edits and save a PDF copy for this particular audience.

Review the structure before printing. A real heading breaks a long sequence into recognizable tasks. A list keeps setup steps in order. A fenced code block separates a command or example from the paragraph around it. In the supplied reading list, a heading, a pipe table, bold text and a code block all appear in the one-page PDF.

Make tables and examples readable on paper

A pipe table works well for a short schedule or a list of options. Check the header row, column alignment and the longest entry in the preview. A table that fits a wide editor window may be hard to read at the paper width chosen in the print dialog. Shortening a column label or moving a long explanation below the table can leave more space for its actual values.

For code, check indentation and the end of the longest line. An example that crosses a page boundary can be difficult to follow on paper. Put an explanation close to the example it describes, then inspect the final pagination before saving. Raw HTML appears as literal text, so use Markdown syntax for the elements you want formatted.

Give links and missing images enough context

An absolute HTTP or HTTPS link can remain active in the printed PDF, as can an email link that uses mailto. Relative paths refer to files beside the original Markdown and have no active destination in the PDF. Replace a link to a local instructions file with a suitable public address if recipients should be able to open it.

The tool prints a bracketed description for each Markdown image and does not fetch the picture. Write the meaningful fact in the text when an illustration is essential to an instruction. For example, “The entrance is on the east side” will survive as a description. An empty image description yields only [Image]. Review that substitution before using a printout as an illustrated handout.

Inspect the final print copy

The workbench accepts UTF-8 .md, .markdown and .txt text up to 256 KiB. After the document preview is ready, open the browser’s print dialog, select a PDF destination and inspect the page where the widest table or longest code block occurs. With Markdown images present, the print button explicitly mentions image descriptions.

Open the saved PDF to check its links and use text selection on a paragraph or command. If the reader needs to see the Markdown delimiters exactly as written, Text to PDF keeps them visible. That is useful when the handout is teaching Markdown itself.

Try a checked example

Open the Markdown file. Select Print / Save as PDF and choose your browser’s PDF destination.

A one-page PDF with a heading, a table, bold text, and a code block.

Frequently asked questions

How do I save a .md file as a PDF?

Open the file and review the rendered page. Select Print / Save as PDF, then save to a PDF destination in the print dialog. With Markdown images present, the button reads Print PDF with image descriptions.

Will a linked image appear in the PDF?

The PDF contains the description in the image’s square brackets. For example, ![Floor plan](plan.png) prints as [Image: Floor plan]. The tool does not fetch or embed the picture, including when the URL is public.

Which links are clickable after printing?

Absolute HTTP, HTTPS and mailto links become active in the print copy. The preview lets you inspect their text. A relative path such as ./notes.md has no active target in the PDF.

Can I use a Markdown table and a fenced code block together?

Yes. The built-in sample includes both. In a saved reading-list fixture, an aligned table, a code snippet and the link to a reference manual all survived printing.

What happens to raw HTML in my Markdown?

Raw HTML appears as literal text. Use Markdown syntax for the structure you want to print, such as a heading or a table.

Why is the print button unavailable?

Printing becomes available after a nonempty, valid input has rendered. For a file, check its UTF-8 encoding and 256 KiB limit. The status beside the editor gives the reason for a rejected input.

Can I preview a note that refers to private or local images?

Yes. You can review the surrounding text, tables and image descriptions without giving the tool access to those image files. If the illustration itself must appear in the handout, this export will only give you its description.

Open a Markdown document for reading