Open a .md file on your Macand read it like on GitHub.

A .md file is plain text with symbols in it. DotMD shows it as a finished page: headings, tables, highlighted code, Mermaid diagrams and math. Open a file, a folder, or press Space on a file in Finder.

macOS 14 or later. Reading is free; editing and reviews are one payment.

Quick answer

To create a .md file on a Mac, save plain text as notes.md in TextEdit (press ⇧⌘T for plain text). To open it, press ⌘O in DotMD, or drag the file onto its window. DotMD is a Markdown viewer for Mac: open a .md file and it shows as a finished page, with tables, code, Mermaid diagrams and formulas. Reading is free; editing comes with DotMD Editor, and comments and review with AI agents with DotMD Reviewer.

How to open Markdown files on a Mac

Double-click a .md file on a Mac and it usually opens as raw text, full of # and **. DotMD opens it as a page.

  1. Open a file or a folder

    Press ⌘O and choose a folder or a file, or drag one from Finder onto DotMD's window or its Dock icon. A folder becomes your workspace in the sidebar, and every file you open becomes a tab.

  2. Make DotMD the default app for .md files

    The first time DotMD starts while another app opens Markdown files, it asks Set DotMD as Default? Say Set as Default. You can do it later in Settings → General → Default App, or in Finder: select a .md file, press ⌘I, choose DotMD under Open with and click Change All….

  3. Read it

    The page is shown rendered like on GitHub. Select and copy text as on any web page, and press ⌘F to find text on the page.

The sidebar lists the folders and Markdown files you have added, with the outline of the open file under it. Pinned keeps the files you use often at the top, and Recent lists the last twenty you opened. Nothing is copied or moved: DotMD reads your files where they are.

DotMD showing a Markdown spec as a rendered page: a numbered list, a table and headings, with a folder tree and open tabs around it
A spec rendered as a page, with the folder tree and tabs around it.

How to create a .md file on a Mac

A .md file is a plain text file whose name ends in .md. To make one without any extra app, open TextEdit, press ⇧⌘T to switch to plain text, type your text and save it as notes.md. If macOS adds .txt to the name, rename the file in Finder.

In DotMD, press ⌘N or choose + → New Empty File, pick a name and a folder, and the new file opens in the editor with a # Title heading (editing is part of DotMD Editor). + → New File from Clipboard turns text you copied, such as an agent's answer, into a file.

What renders: tables, code, Mermaid diagrams and math

  • Text: headings, lists, task lists, quotes, links and images.
  • Tables and code with syntax colours.
  • Mermaid diagrams. A code block marked mermaid is drawn as a diagram, in the light or dark theme to match the page. Click one to see it large, and pinch to zoom up to 8×.
  • KaTeX formulas. $E = mc^2$ inside a line, or $$ … $$ on its own line.
  • Callouts such as > [!NOTE], collapsible sections, and the properties block at the top of a file, shown as a card.

Diagrams and formulas are drawn on your Mac, so they work offline.

Read a README.md from any repository

A README is a Markdown file, so it opens like any other. Press ⌘O and choose the README.md, or the repository's folder to read its docs as well. Headings, tables, code, task lists and Mermaid diagrams are drawn, formulas too, and badges and other images from the web appear. Reading is free.

Make it comfortable to read

The Aa menu sets the font (System, Serif or Monospaced), the width, the line spacing and the theme: Automatic, Light, Sepia or Dark. For long texts, try Serif, Narrow, Relaxed and Sepia. The choice is remembered.

⌘= and ⌘- zoom in 10% steps. A thin blue line at the top and the percentage in the status bar show how far you have read, and the outline in the sidebar jumps to any heading. A link to another .md file opens it in DotMD.

Quick Look in Finder

Select a .md file in Finder and press Space. The preview looks like DotMD's reading mode, with tables, callouts, diagrams and formulas. It starts working after you have opened DotMD once.

Quick Look may only read the file itself, so images stored next to it show as a small placeholder; press Open with DotMD to see the page complete. If another app's preview shows up, check that DotMD is switched on in System Settings → General → Login Items & Extensions (macOS 15 and later) or System Settings → Privacy & Security → Extensions → Quick Look (macOS 14).

DotMD opens files ending in .md, .markdown, .mdown, .mkd, .mkdn, .mdx and .txt.

Questions about reading Markdown on a Mac

How do I open a .md file on a Mac so it looks formatted?

Open it in DotMD: press ⌘O, or drag the file or a folder onto DotMD. The file shows as a page with headings, tables, highlighted code, Mermaid diagrams and KaTeX formulas.

How do I create a .md file on a Mac?

Save plain text under a name that ends in .md: in TextEdit press ⇧⌘T, type, and save as notes.md. In DotMD, press ⌘N, pick a name and a folder, and the file is created.

How do I make .md files open in DotMD by default?

In Finder, select a .md file, press ⌘I, choose DotMD under Open with and click Change All…. DotMD also offers to become the default app the first time it starts.

Can I preview a Markdown file in Finder?

Yes. Select a .md file in Finder and press Space. The Quick Look preview looks like DotMD's reading mode. Reading is free.

Is DotMD free for reading?

Yes. Reading any Markdown, folders, tabs and Quick Look are free, forever.

Do diagrams and formulas work offline?

Yes. Mermaid and KaTeX are built into DotMD and draw on your Mac, with no internet connection. The exception is an exported HTML file, which loads them from the internet when you open it.

Which macOS do I need?

macOS 14 or later.

More questions