UtilityNest

Markdown to PDF

Paste Markdown from your notes app, a README or a docs folder and download a properly paginated A4 PDF, plus a Word file you can keep editing. Headings, lists, tables, code blocks and links come out as a real document, and the text never leaves your device.

A4 pages with 2 cm margins, Arial body text and dark-blue headings. Images from web links are included when the site allows it; images pasted as data URLs always are.

How to use Markdown to PDF

  1. 1Paste the Markdown into the box, press Open .md file to load a .md, .markdown or .txt file, or press Sample to see what is supported.
  2. 2Press Make PDF. A progress bar shows the text being read, the pages being laid out and each page being drawn. Stop cancels a long run.
  3. 3Press Download PDF. The file takes its name from the file you opened, or document.pdf if you pasted.
  4. 4Press Download Word (.docx) if you want to edit the result, or Edit and remake to change the text and build it again.

When this is the right tool

Markdown is pleasant to write and awkward to hand over. A client wants the project brief as a PDF, a teacher wants an assignment printed, a manager does not read raw text with pound signs and asterisks. Meeting notes, README files, changelogs and documentation drafts all live as .md files, and this page turns them into something anyone can open without a special app. It also helps when you write in a plain text editor because you like it, and only need a formatted copy at the end.

What is supported

Headings at six levels, paragraphs, bold, italic, strikethrough, inline code, links, numbered and bulleted lists including nested ones, blockquotes, fenced code blocks, tables and horizontal rules all convert. The page is A4 with 2 cm margins, Arial body text and dark-blue headings; code uses a monospaced font on a light grey background, and links are blue and underlined.

An image is included when it sits on its own line. Images given as data URLs are always embedded; images on the web are embedded when the hosting site allows other pages to load them, and otherwise the alt text appears in square brackets. An image written inside a sentence is shown as its alt text. HTML tags inside the Markdown are removed and only their text is kept, and math notation is printed as plain text rather than rendered as formulas.

What happened when we tested it

We opened a 9.1 KB handbook file of 1,751 words: six sections, each with four paragraphs, a nested bullet list, a three-column table, a code block and a quote. Make PDF finished in about 3.2 seconds in headless Chromium and produced 5 A4 pages. Every heading, table border and list indent was in place, and the text could be searched and copied: extracting the first page returned the title and opening paragraph exactly. The PDF came to 2.06 MB and the Word copy to 39 KB. The built-in Sample converted to a single page in under half a second.

The size difference is worth understanding. Each PDF page is drawn as a 200 DPI picture, 1654 by 2339 pixels on A4, with an invisible text layer on top, which is why the text is selectable but the file is larger than a typical text PDF. If you need a small file for email, run the result through Compress PDF, or download the DOCX and save it as PDF from a word processor.

Writing Markdown that converts cleanly

Leave a blank line before and after tables, lists and code blocks; without it, many lines are read as one paragraph. Close every fenced code block with a matching line of three backticks, because an unclosed fence swallows the rest of the document and is the most common reason for the "could not build the PDF" message. In tables, keep the separator row under the header, such as |---|---|, and give every row the same number of cells. Put each image on a line by itself if you want it shown as a picture.

Limits

The page size, margins and fonts are fixed. There is no table of contents, page numbering, cover page or custom theme. Very long code lines wrap onto the next line, and a table with a dozen columns gets columns so narrow that longer words break in the middle. For any of those, download the DOCX, adjust it in Word or another word processor and export your own PDF from there.

Frequently asked questions

Is the Markdown sent anywhere?

No. Conversion runs on your device. The draft is saved in this browser so a refresh does not lose it, and nothing is uploaded. Only web images you link to are fetched from their own sites.

Can I change the font or page size?

Not on this page. The output is A4 with Arial body text. Download the DOCX and change the styles in a word processor if you need Letter size or another font.

How long can the document be?

There is no fixed limit. A 1,751-word file became 5 pages in about 3 seconds in our test; long manuals take proportionally longer, and the progress bar shows each page as it is drawn.

Why is the PDF larger than I expected?

Pages are stored as high-resolution images with a hidden text layer, about 400 KB per text page in our test. Compress PDF reduces that a lot and keeps the text searchable.

Does it support GitHub task lists and footnotes?

Not fully. In our check, task-list items came out as ordinary bullets with no checkbox, so open and done items look the same, and footnote markers such as [^1] were printed literally with the note text left where it was written. Write a done item as "Done:" or move notes into the text before converting.