On a Mac, a .md file normally opens in a text editor as plain text, and Quick Look shows the raw text too. That is fine for a quick glance, but not for reading a long README or a set of notes. These are the practical options, from no-install to full apps.
Fastest: use the browser
Open the online Markdown viewer, click Open .md file or drag the file in. It is rendered in your browser and not uploaded.
Preview in Finder with Quick Look
Quick Look can render Markdown if you add a plugin. QLMarkdown is an open-source Quick Look extension; with Homebrew you can install it with brew install --cask qlmarkdown. After that, select a Markdown file in Finder and press the space bar to see it formatted.
Apps worth knowing
- Marked 2: a paid app made for previewing. It watches a file and refreshes when you save it in any editor.
- MacDown: a free, open-source two-pane editor. It is simple, but check the project's activity before relying on it, because updates have been infrequent; community forks exist.
- Typora: a polished editor that renders as you type. Paid after the trial.
- iA Writer: a focused writing app based on Markdown. Paid.
- Obsidian: a notes app built on folders of Markdown files and links between notes.
- VS Code: free, with a built-in preview. See Markdown preview in VS Code.
Read Markdown in Terminal
If you use Terminal or iTerm2, Glow renders Markdown nicely: brew install glow, then glow README.md. More tools are covered in Markdown in the terminal.
Make a Markdown app your default
- Select any
.mdfile in Finder. - Press Command + I to open Get Info.
- Under Open with, choose the app.
- Click Change All so every
.mdfile opens there.
Which should you pick?
| You want to | Use |
|---|---|
| Open a file once | Online viewer |
| Preview in Finder | QLMarkdown |
| Preview while editing in another editor | Marked 2 |
| Write and keep notes | Obsidian, Typora or iA Writer |
| Work with code | VS Code |
Not sure yet? Try the online viewer first; it takes a few seconds and costs nothing.
Markdown Viewer Chrome Extension: Setup and Alternatives
How to Write and Preview a README.md
Markdown in the Terminal: Glow, mdcat and More
How to Open and View .md Files on Any Device