Skip to content

How to Open an MD File on Mac (With Formatting)

/ 6 min read

You ask an AI tool to write up a plan, and it hands you a file called plan.md. Or you clone a GitHub repo and the first thing you want is the README. You double-click, and a window opens full of pound signs, asterisks and pipe characters. The content is in there somewhere, but it looks like a wall of symbols instead of a document.

That is what a Markdown file is: plain text with formatting marks sprinkled in. To see headings, bold text and tables the way the author meant them, you need something that renders the marks. Here are the ways to open an MD file on a Mac and actually get formatting.

Why a .md file looks like raw text

Markdown is just text. A line that starts with ## is meant to become a heading, and **word** is meant to become bold. Any app that only displays characters will show you the symbols, not the result.

This is why the usual double-click gives you something ugly. Whatever app owns the file type treats it as text. Finder does not give you a formatted Markdown preview out of the box either, so pressing space on the file will not save you.

Once you know the file is only text, the fix is clear: open it in something that renders Markdown, or install something that makes Finder do it.

Option 1: TextEdit (raw text only)

TextEdit will open a .md file without complaint. You can read it and edit it. What you will not get is any formatting: the symbols stay symbols.

This is fine when you only need to grab one line or fix a typo. It is a poor way to read a long README or an AI-generated report, because you spend your attention decoding syntax instead of reading.

Option 2: A code editor, if you already have one

If you already work in an editor like VS Code, you can open the file there. It works, and if you are editing the Markdown anyway it makes sense.

For pure reading, though, I find it overkill. Starting a full code editor just to read a README is heavy, and I covered the same frustration in my roundup of the best Markdown viewers for Mac. Editors are built for writing, not for a quick look.

Option 3: A dedicated Markdown reader

A reader app does one job: open the file and show it formatted. This is the route I took, and it is why I built Doku.

Doku is a Markdown reader, not an editor. It costs $14.99 one time. Here is what it does when you open a file:

  • Renders tables, task lists, footnotes and code with syntax highlighting for over 40 languages.
  • Draws Mermaid diagrams and LaTeX maths in place, so you do not see the source.
  • Offers 12 document themes, most with light and dark versions.
  • Refreshes the moment the file changes on disk, which is handy when an AI tool or your editor keeps rewriting it.
  • Has tabs, a table of contents, search in document, zoom and export to PDF.
  • Works with no account, no network and no telemetry, so it runs offline.

Because it is a reader, it will not edit your files. If you want an all-in-one writing app, my comparison post covers editors like Typora. If you want to read, a reader keeps things simple.

Quick Look: press space for a formatted preview

The nicest trick for Markdown on a Mac is previewing without opening anything. Select a .md file in Finder and press the space bar.

Doku adds a formatted Quick Look preview for Markdown files, so that space-bar press shows the rendered document instead of symbols. Markdown files also get real thumbnails in Finder, so you can tell a README from a notes file at a glance. Without a Markdown-aware extension, remember that Finder does not give you a formatted Markdown preview out of the box.

There are free Quick Look extensions too. The roundup I linked above covers a free one, QLMarkdown, which handles the Finder preview only: no standalone window, no live reload, no Mermaid or LaTeX. If Finder previews are all you want, that is a fair choice.

How to set the default app for .md files

Once you pick an app, make double-click use it. This is general macOS behavior and works for any app:

  1. In Finder, click one .md file once to select it.
  2. Press Command+I to open Get Info (or right-click and choose Get Info).
  3. Open the Open with section.
  4. Choose your app from the dropdown.
  5. Click Change All… and confirm.

The Change All step is the one people skip. Without it, only that single file changes, and the next .md file opens in the old app again.

Which option should you pick?

  • You need to read one line: TextEdit is fine.
  • You already live in a code editor: open it there, but do not expect a pleasant reading experience.
  • You get Markdown from AI tools or GitHub often: a dedicated reader pays off fast. Tables and diagrams become readable immediately.
  • You want Finder previews only: a free Quick Look extension is enough.

If you also care about the rest of your menu bar and utilities, my list of the best Mac menu bar apps is a good next read. And if you are curious why I keep building small, single-purpose Mac tools like this, I wrote about it in why I build macOS apps.

FAQ

How do I open an MD file on Mac without it looking like code?

Open it in an app that renders Markdown, such as a dedicated reader like Doku. A plain text editor like TextEdit will always show the raw symbols.

What is the best app to open a .md file on Mac?

It depends on whether you read or write. For reading with full formatting, tables, Mermaid and LaTeX, a reader like Doku works well. For writing, an editor such as Typora is the usual pick.

Can I preview a Markdown file in Finder with the space bar?

Finder does not give you a formatted Markdown preview out of the box. Doku adds a formatted Quick Look preview, and free extensions like QLMarkdown do the same for Finder only.

How do I make all .md files open in one app?

Select a .md file, press Command+I, open Open with, pick the app, then click Change All…. Every Markdown file will then open there.

Can I open an MD file on Mac without internet?

Yes. Markdown files are plain text, and Doku works with no network and no account, so the formatted view works fully offline.