Markdown is pleasant to write and awkward to hand to someone who does not use it. Our free Markdown to PDF converter turns a .md file, or text you paste, into a tidy PDF with headings, lists, tables, code blocks, quotes and clickable links. It is made for README files, meeting notes, documentation, assignments and drafts you want to email, print or archive.
This guide covers every setting on the page, exactly which Markdown is understood, how the awkward parts (tables, code, pictures, other scripts) are handled, and what to do when the result is not what you expected. If you are specifically after a project README from GitHub, the step-by-step is in how to turn a GitHub README into a PDF.
What Markdown to PDF does
It reads your Markdown, works out the structure (headings, paragraphs, lists and so on) and draws that structure on PDF pages with standard fonts. It makes a clean, readable document version of your text. It does not copy the look of a Markdown preview on a website, so there are no coloured code themes, no web fonts and no page background.
Supported, as listed by the tool:
- Headings, paragraphs, bold, italic, strikethrough and inline code.
- Links, bullet lists and numbered lists (nested too), and task lists written as
- [ ]and- [x]. - GitHub-style tables, block quotes, fenced and indented code blocks and horizontal rules.
- Simple HTML such as
<br>, and pictures embedded in the text asdata:URLs.
Not supported: pictures that point to a web address (nothing is downloaded), syntax colouring in code, and rich formatting inside table cells.
How to use Markdown to PDF, step by step
- Open Markdown to PDF.
- Paste your Markdown into the box labelled "Markdown to convert", or press Open file and pick a
.md,.markdown,.mdownor.txtfile. "Try an example" fills the box with a sample that shows everything the tool supports. - Under "PDF options", choose the Page size, Margins, Font and Text size, and tick the page numbers box if you want it.
- Press "Convert to PDF & download". The download starts by itself.
- Check the result: a green "Done" line gives the page count, the Original and PDF sizes are shown, and a Preview lets you flip through pages with the arrow buttons. "Download again" saves the file a second time.
The Convert button stays disabled until there is some text. Clear empties the box and removes the result.
Every option explained
Page size
A4, US Letter or US Legal. In Bangladesh and most of the world, A4 is the normal choice. Pick US Letter only if the PDF will be printed in the United States or Canada.
Margins
Narrow is 1.27 cm, Normal is 2 cm and Wide is 2.54 cm. Narrow fits more on each page and suits long documents or wide tables. Wide gives a printed page room for hole punching and notes. The default is Normal.
Font
"Sans-serif (like Arial)" or "Serif (like Times)". Sans-serif is the default and reads well on screens. Serif looks more like a printed report. This changes body text and headings only: code blocks always use a typewriter font.
Text size
Small (9 pt), 10 pt, Normal (11 pt), 12 pt or Large (14 pt). Headings scale with it: at 11 pt a first-level heading is about 18 pt. Use 9 or 10 pt to shorten a long document and 12 or 14 pt for easier reading.
Page numbers
Tick "Page numbers at the bottom (Page 1 of 3)" to print a small grey "Page 1 of 3" line at the bottom centre of every page. It is off by default.
Changing any option clears the previous result, so after adjusting a setting press Convert again.
How each part of your Markdown is drawn
| Markdown | In the PDF |
|---|---|
# to #### headings |
Four heading sizes. ##### and ###### use the fourth size. |
**bold**, *italic*, ~~strike~~ |
Bold, italic and struck-through text. |
Inline code |
Typewriter font. |
| Bullet lists | A bullet at the first level and a dash for nested levels. |
| Numbered lists | Numbers counted from the number your list starts with. |
- [ ] / - [x] |
An empty or ticked box in front of the item. |
> quote |
Indented, with a grey bar, in italic grey text. |
| Fenced code | Typewriter font on a light grey panel, every line break kept. |
--- |
A thin horizontal line. |
A single line break inside a paragraph is treated as a space, the way Markdown itself does. To force a line break, end the line with two spaces or write <br>.
Tables
Tables become a bordered grid. Each cell keeps text only, so bold, links and pictures inside cells are flattened to plain text. The header row is bold and repeats at the top of every page the table runs onto; there is no column alignment. Columns take the room their text needs, and long cell text wraps. A table that is too wide for the page is split into column groups that continue on the next pages, each headed like "Table · columns 5–8", so keep tables to a few short columns, or choose Landscape orientation, if you want them on one page.
Code blocks
Code keeps its spaces, indentation and line breaks. Tabs become four spaces. A line that is longer than the page wraps. The language name after the opening three backticks is ignored, so a js block and a bash block look the same, and a diagram written in a language such as Mermaid appears as its source text, not as a drawing.
Links
Links to http, https and mailto addresses are blue, underlined and clickable in the PDF. Other links, such as #section anchors or paths to other files, are printed as plain text. Reference-style links ([docs][d] with [d]: https://... further down) work too.
Front matter and HTML
A YAML block between --- lines at the very top of the file is removed. Simple HTML is read for its text: tags are dropped and the words are kept, so a centred <p> block of text still prints. Comments, <script> and <style> blocks are removed completely.
What it accepts and its limits
- Input: Markdown typed or pasted into the box, or a file ending in
.md,.markdown,.mdownor.txt. - Pictures: only PNG and JPEG pictures embedded as
data:URLs, written like. They are shrunk to fit the page width if needed. - Web pictures: left out. The picture's description is printed in italics instead, and a note under the result says how many were left out.
- Pictures in tables: left out too, because tables keep text only.
- Size: the page sets no file-size limit. The practical limit is your device's memory.
Privacy
Markdown to PDF runs in your browser. Your text is read and the PDF is built on your own device, and nothing is uploaded to our server. That makes it fine for private notes, internal documentation and drafts.
Tips to work faster
- Preview first. Paste the file into the Markdown Previewer to check headings and tables, then convert. The syntax reference is in the Markdown cheat sheet.
- Put the first level heading at the top of the file. The first
#heading becomes the title stored in the PDF's properties. If there is no such heading, an opened file uses its file name. - Keep wide tables narrow. Short headers and abbreviations beat long sentences in cells.
- Use Narrow margins and 10 pt for long reference documents, and Normal margins with 12 pt for something you will print and read.
- Starting from a Word file? Word to Markdown comes first, and the Word to Markdown guide explains the round trip.
Common problems and how to fix them
"There is nothing to put in the PDF. Check the markdown."
The text was empty or held nothing the tool can print, for example only a link definition or an HTML comment. Add some real text and convert again.
A picture is missing
Pictures from the web, and pictures with a file path such as images/logo.png, are not placed in the PDF. The tool never downloads or opens anything, so it prints the picture's description in italics and shows a note such as "1 picture from the web was left out" or, for a file path, "1 picture linked to a file (images/logo.png) was left out". To include a picture, embed it as a PNG or JPEG data: URL. A GIF or WebP embedded the same way is also skipped, with a note that only PNG and JPEG can be included.
Some text cannot be selected or searched
Latin letters are real PDF text. Bangla, Arabic, Chinese, emoji and symbols such as the task-list boxes are drawn by the browser and placed as images, so the page shows exactly the right shapes but those parts cannot be selected. A blue note under the result tells you this happened.
A link is not clickable
Only http, https and mailto links are active. A link to docs/setup.md or #installation stays plain text, because inside a PDF made from one file there is nothing for it to open.
The table runs across several pages
The columns are wider than the page. Shorten the cell text, remove a column, or choose Narrow margins or a smaller Text size.
The PDF is larger than expected
A file with several embedded pictures is bigger because the pictures are stored in full. If the result must be small, run it through Compress PDF; the steps are in how to compress a PDF to under 1 MB.
Related tools
- Markdown Previewer: see how your Markdown renders before you convert it.
- Text to PDF: for plain text where
#and*should stay as typed. - HTML to PDF: for a page you have already written in HTML.
- PDF Tools: merge, split, compress and convert the finished PDF.
Quick checklist
- Preview the Markdown first and fix headings and tables there.
- Choose A4, Normal margins and Sans-serif unless you have a reason not to.
- Embed pictures as
data:URLs, or expect their descriptions instead. - Tick page numbers for anything longer than two pages.
- Keep the original
.mdfile: the PDF is for reading, not editing.



