Markdown converters

Markdown is a plain-text format for writing formatted documents, created by John Gruber in 2004. Hash signs make headings, asterisks make bold and italic text, and dashes make lists. GitHub, GitLab, Reddit, Obsidian, Notion exports and many documentation tools use it.

Convert Markdown

What to know about Markdown

File extensions: .md, .markdown

Where you meet Markdown files

Markdown files are the README.md shown on the front page of nearly every GitHub and GitLab repository, the source of documentation sites built with MkDocs, Docusaurus, Hugo or Jekyll, and the storage format of note apps such as Obsidian and Logseq, which keep each note as a .md file. Jupyter notebooks use Markdown for their text cells. CommonMark, a precise specification started in 2014, is what most modern Markdown parsers follow, with GitHub's GFM on top.

Markdown compared with other formats

MD or Plain text
Every Markdown file is a valid text file, so the only difference is intent. Use .md when the file will be shown formatted by GitHub, a wiki or a note app. Plain .txt is safer when the text goes to programs that would take asterisks or hash signs literally.
MD or Word document
Markdown is quick to write, works with Git and does not tie you to one program, but has no page layout, comments or tracked changes. Colleagues outside development usually expect Word. Pandoc converts in both directions, for example pandoc notes.md -o notes.docx.
MD or PDF
A PDF is how a Markdown document leaves the developer's world: a fixed, printable copy for a client, a teacher or an archive. Keep the .md as the source you edit and make a fresh PDF when the content changes.

Common problems with Markdown files

Lines run together into one paragraph

A single line break in Markdown is treated as a space, so lines written on separate rows end up in one paragraph. Leave an empty line between paragraphs. For a line break inside a paragraph, as in an address or a poem, end the line with a backslash or with two spaces.

A year at the start of a line becomes a numbered list

A line such as "1986. A great year" is read as an ordered list item. Escape the dot with a backslash, as in 1986\. A great year. The same applies to a line starting with a dash, plus sign or hash sign followed by a space that should be shown as text; put a backslash in front of it.

It looks different in another app

Apps add their own extensions. Wiki links like [[Note]] and callouts work in Obsidian, footnotes and math in some apps, and Mermaid diagrams on GitHub, but a renderer that only follows CommonMark or GFM shows them as plain text. Stick to the GFM features (tables, task lists, strikethrough) for files that will move between tools.

Images are missing after sharing the file

Markdown links to images instead of containing them, often by a relative path such as images/chart.png. Sending only the .md file loses them. Zip the folder with the images, or publish the images at a web address and link to that.

Questions about Markdown

Is there a difference between .md and .markdown?

No. Both are the same format, and GitHub and most editors treat them the same. .md is far more common, partly because it is short. The official media type, registered in 2016, is text/markdown.

How do I view a .md file formatted on my computer?

Any text editor opens it as text. To see it formatted, VS Code has a preview (Ctrl+Shift+V, or Cmd+Shift+V on a Mac), and Obsidian and Typora show it formatted as you write. To send it to someone without such an app, convert it to PDF.

What is the block between --- lines at the top?

That is YAML front matter, metadata such as title, date and tags that static site generators like Jekyll and Hugo read. It is not part of the Markdown text, and GitHub shows it as a small table. FileReshape's Markdown to PDF leaves it out of the PDF.