Skip to content
Mardna Open the editor

Convert Markdown to PDF Online

Markdown is a fine format to write in and an awkward one to hand to somebody. Mardna turns it into a PDF that reads like a designed document — with real, selectable text — without uploading your file to a conversion service.

How to convert Markdown to PDF

  1. Bring in your Markdown

    Paste it into the editor, or drop a .md file anywhere on the page.

  2. Choose how it should look

    Pick a theme and a font. The preview shows the exact typesetting the PDF will use, so there is no guessing at this stage.

  3. Export

    Press ⌘P, or open the export menu with ⌘⇧E and choose PDF.

  4. Save it

    In your browser's print dialog, set the destination to Save as PDF. The suggested filename comes from the document's first heading.

A real document, not a screenshot

The export runs through the browser's own print engine against a print stylesheet written for the purpose, so the result behaves like a document rather than an image of one:

  • Text stays text — selectable, searchable, copyable, and indexable by whatever your reader stores it in.
  • Links keep working, and external ones also print their destination in small type so the address survives on paper.
  • Page breaks are handled. Headings never strand themselves at the bottom of a page; code blocks, tables, blockquotes, images and diagrams are kept whole where they fit.
  • Long code lines wrap instead of being cut off at the page edge.
  • Diagrams and equations stay sharp — diagrams print as vector art and equations as text, so both hold up at any zoom.
  • Fonts are embedded by the print engine, so the file reads the same on a machine that has never had them installed.

Decide how it looks before you export

The PDF inherits whatever the preview is showing, which makes the theme the main decision. Academic sets the document in a serif face with paper-like proportions and suits reports and papers. Editorial gives it magazine-scale headings. GitHub keeps the familiar repository look for a README you are circulating as a handout. Minimal Mono is a good fit for technical specifications.

Light or dark carries through as well — export in dark mode and the PDF is a dark page, not a dark rectangle floating on white. Paper size, orientation, scale and whether the browser prints its own header and footer stay in the print dialog, where you can also choose page numbering.

Nothing to upload, nothing to trust

Most Markdown-to-PDF converters ask you to upload a file to a server you know nothing about. That is a poor trade for a design document, a contract draft, an internal runbook or an unpublished paper.

Mardna converts locally: the Markdown never leaves the tab, so there is no copy on somebody else's disk, no retention policy to read and no queue to wait in. It works with the network disconnected, which is the simplest proof that nothing is being sent.

Frequently asked questions

How do I convert Markdown to PDF for free?

Open Mardna, paste or drop in your Markdown, pick a theme, then press ⌘P (Ctrl+P) and choose Save as PDF in the print dialog. There is no charge and no account.

Is my file uploaded in order to convert it?

No. The conversion happens entirely in your browser using its own print engine, so the document never leaves your machine.

Will the PDF have selectable text?

Yes. The export produces real text with embedded fonts, so it can be selected, searched and copied — it is not an image of the page.

Do code blocks, tables and diagrams survive the export?

Yes. Highlighted code, tables, diagrams and equations are all printed, and page breaks are placed so that none of them is split down the middle.

Can I set page size, margins or page numbers?

Page size, orientation, scale and page numbering come from your browser’s print dialog. Page margins are set by the print stylesheet at roughly 18mm top and bottom and 16mm at the sides.

Can I convert several Markdown files at once?

Not in a batch — Mardna exports the document that is open. For a set of files, open and export them one at a time, or concatenate them into a single Markdown document first.

Export a PDF now

Paste your Markdown, choose a theme, press ⌘P. Nothing is uploaded at any point.