Published March 2026

How to Set the Default App for .md Files on macOS

By default, macOS opens .md files in TextEdit — which shows raw, unformatted text. Here’s how to change that so every Markdown file opens in a proper viewer.


## Step-by-Step

Change the Default via Finder

  1. 01

    Find any .md file in Finder. Any one will do — the change applies to all of them.

  2. 02

    Right-click (or Control-click) the file.

  3. 03

    Select Get Info from the context menu. Or press Cmd+I as a shortcut.

  4. 04

    In the Get Info window, find the “Open with:” section.

  5. 05

    Click the dropdown and select ShowMeMyMD (or your preferred Markdown app).

  6. 06

    Click the “Change All…” button below the dropdown.

  7. 07

    Confirm in the dialog that appears. Click Continue.

Done

Every .md file on your Mac will now open with ShowMeMyMD. Double-click any Markdown file and it goes straight to a rendered view.


## Alternative

From the Terminal (Power Users)

If you prefer the command line, you can use duti to set file associations. Install it with Homebrew if you don’t have it:

brew install duti

Then run:

duti -s com.showmemymd .md all

That’s it. One command, same result as the Finder method.


## Why Bother

Why Change the Default?

TextEdit shows raw Markdown syntax — all the # and ** and ``` symbols. That’s not how Markdown is meant to be read.

A proper Markdown viewer renders those symbols into formatted headings, bold text, and syntax-highlighted code blocks. You see the document the way the author intended, not the source code behind it.


## Recommended Viewer

ShowMeMyMD — Native, Fast, Beautiful

ShowMeMyMD is a native macOS Markdown viewer. It renders .md files instantly with syntax highlighting, multiple themes, and rich text copy. $2.99 one-time on the Mac App Store. No subscription, no account.

Instant rendering

Headings, lists, tables, code blocks, blockquotes — all rendered the moment you open the file.

Set as default

Set it once with the steps above. Every .md file on your Mac opens beautifully from then on.


## Keep reading


Make every .md file just work

$2.99. One-time purchase. No subscription. No account.

Download on theMac App Store