Obsidian to PDF
Paste a note from Obsidian and download a PDF you can share with someone who doesn't use it. Callouts keep their boxes, wikilinks read as plain words and properties stay out of the way. Pick a style made for paper, with page numbers. Free, and nothing is uploaded.
Download PDF opens your browser's print dialog. Choose Save as PDF as the destination.
Getting your note in
md2pdf.me needs the note's Markdown, the text you see while editing it. There are two ways to get it here:
- Copy the note. In Obsidian, switch the note to Source mode, which shows its Markdown exactly as written: click the editing-mode icon in the status bar at the bottom of the window and choose Source mode. Click in the note, press Ctrl+A (⌘+A on a Mac) to select everything, and copy it.
- Paste it into the editor above, replacing the example, and choose a style.
- Click Download PDF and choose Save as PDF in the print dialog.
Or open the file itself. Every note is a .md file in your vault's folder. Right-click the
note in Obsidian's file list and choose Reveal in Finder (Show in system explorer on
Windows) to find it. Then drop the file on this page, or use Open file above the editor.
How Obsidian's syntax comes out
Most of a note is standard Markdown and comes out as it does in Obsidian: headings, lists, tables, task
lists, footnotes, code, math in $…$ and
Mermaid diagrams. The syntax that only Obsidian has is handled like
this:
- Properties, the block between
---lines at the top, are left out of the PDF. If the note has no#heading, itstitle:property names the PDF. - Callouts such as
> [!tip] Getting aroundbecome boxes with their title. Each type takes the color of the closest GitHub alert, so[!info]looks like a note and[!danger]like a caution. A PDF can't fold, so foldable callouts ([!faq]-) print open. - Wikilinks print as plain words, since a link to another note has nowhere to go in a
PDF.
[[Alfama]]prints as “Alfama”,[[Lisbon ideas|the ideas list]]as “the ideas list”, and[[Hotels#Shortlist]]as “Hotels > Shortlist”. A link to a heading in the same note, such as[[#Booking]], stays a link you can click in the PDF. - Embedded notes,
![[Packing list]], can't be filled in here, because md2pdf.me only has the note you gave it. They print as a short line in muted italics, “Embedded note: Packing list”, so you can see what's missing. To include one, paste its text in place of the line. Embedded PDFs, audio and video print the same way, as “Embedded file:” and the file's name. - Embedded images,
![[photo.png]], need the image file. See images in your vault. - Tags like
#travelprint as written.
Three more pieces of Obsidian syntax print exactly as written, so look for them before you download:
- Comments,
%%like this%%, only show in Obsidian's editing view, but do print here, along with the%%marks. Delete any you don't want the reader to see. - Highlights,
==like this==, print with their==marks and without the highlight. Use**bold**instead, or delete the marks. - Block IDs, the
^abc123at the end of a paragraph that a block link points to, print at the end of that paragraph. Delete them.
Images in your vault
![[photo.png]] and  point to a file in your vault. Obsidian
finds it there. md2pdf.me runs in your browser and can't read files on your computer, even when you open
the note itself, so the image is missing from the preview and the PDF. There are three ways around
it:
- Put the image online and use its full address, starting with
https://, as in. Images that are already on the web, with anhttps://address, load as they do in Obsidian. The troubleshooting guide explains what makes an address work. - Use Obsidian's own export for a note that is mostly pictures. It can read your vault (see the comparison).
- On a Mac, use md2pdf's command-line version, which gives the same styles and reads images from your disk. It finds an image when the path in the note leads to it from the note's own folder. Setting Obsidian's New link format to Relative path to file, under Settings → Files and links, writes paths that way. The command-line version page explains how to install it.
md2pdf.me or Obsidian's own export?
Obsidian can make a PDF itself: open the note, then choose Export to PDF… from the note's More options menu or the command palette. Which one is better depends on the note.
Obsidian's export is the better choice when the note relies on your vault. It has your images, which md2pdf.me can't read, and it works offline without copying anything.
md2pdf.me is the better choice when you want the PDF to look like a document rather than a screen:
- Styles made for paper. Thirteen designs, from a book-like Classic and a Résumé that fits one page to themed styles for stories and games, with no CSS to write. Obsidian's export always uses light styling, and changing how it looks means writing a CSS snippet.
- Page numbers. Most styles number the pages, and the Report style repeats the note's
#heading at the top of each page. Obsidian's export dialog has options for page size, orientation, margins and scale, but none for page numbers or headers. - Any device with a browser. The Obsidian app on phones and tablets can't export to PDF. md2pdf.me needs only a browser and the note's text, so it also works on a computer that doesn't have Obsidian.
- The rest of your vault stays out. Only the note you paste goes into the PDF, and wikilinks to your other notes print as plain words.
Frequently asked questions
Is my note uploaded anywhere?
No. md2pdf.me makes the PDF in your browser, so the text never leaves your computer. Images with an
https:// address are loaded from wherever they point, as on any web page.
Can I put several notes in one PDF?
Paste them one after another. To start each on a new page, put
<div class="page-break"></div> on its own line between them. The
page breaks guide has more.
Why does my PDF show “Embedded note:” or “Embedded file:”?
The note embeds another note or a file, such as a PDF, with ![[…]]. md2pdf.me only has
the text you gave it, so it marks the spot instead. Paste the other note's text there to include
it.
Do community plugins' blocks work, such as Dataview?
No. A block like dataview needs its plugin to draw it, and md2pdf.me doesn't have
Obsidian's plugins, so it shows the block as code.
Related pages
- Markdown guide: all of Markdown on one page
- README to PDF: more on GitHub alerts
- Troubleshooting: fixes for common problems with the PDF