Back to Blog

How to Open a .md File on Mac: Read It with Space, or Edit It

August 11, 2026by TypeFire
open md file macwhat is md filemd file machow to open markdown fileedit md file mac

A .md file is a Markdown file: plain text with a light formatting syntax. # Heading, **bold**, - list item. It is the format README files, documentation and most note apps use.

Because it is plain text, any text editor can open it. The question is really whether you want to read it or edit it.

How to Open a .md File on Mac: Read It with Space, or Edit It

The fastest way to read one

Select the file in Finder and press space. Out of the box you will see raw source, hashes and asterisks included, because macOS has no Markdown renderer built in.

Install a Quick Look extension and that same keypress renders it properly. TypeFire adds one on install, free, with nothing to enable; QLMarkdown is the free open source alternative. It is the single best change you can make if you deal with .md files regularly, and if Space still shows raw text afterwards, the fixes are here.

Opening it to edit

Any text editor works, because the file is plain text:

  • TextEdit opens it, showing raw Markdown. It is already on your Mac.
  • VS Code, Sublime, Zed, BBEdit all open it, with syntax highlighting and usually a preview pane
  • Typora, MacDown, iA Writer, Obsidian are Markdown-specific and render as you write
  • TypeFire opens it with Command O and formats it as you type

Right-click the file, choose Open With, and pick one.

Stopping it opening in the wrong app

This is the actual annoyance. You install something, and now every .md file opens in Xcode, or TextEdit, or whatever claimed the type last.

To fix it permanently:

  1. Right-click any .md file in Finder
  2. Choose Get Info
  3. Under Open with, pick the app you want
  4. Press Change All, and confirm

Every .md file on your Mac will now open in that app. Some apps, TypeFire included, offer a one-click setting that does the same registration for you. There is more on that here.

If the file has no extension

READMEs sometimes arrive as README with nothing after it, or as .markdown, .mdown, .mkd. They are all the same format. Rename it to .md and macOS will treat it consistently.

If it opens as one long line

You have opened it in something that is not respecting line breaks, usually a word processor. Markdown is plain text and should be opened in a text editor or a Markdown app, not Pages or Word.

Reading versus editing, decided

Just reading? Install a Quick Look extension and press space. No app, no window, no decision.

Editing occasionally? Set a default Markdown app so double-clicking does the right thing.

Writing a lot of Markdown? A dedicated editor pays for itself, and a text expander for the repetitive syntax pays for itself faster.

One app for all three

TypeFire previews .md files in Finder with Quick Look, opens and edits them, can be set as your default Markdown app in one click, and expands abbreviations into the Markdown patterns you retype. Free.

Download for Mac or read the Markdown tour.

In their words

Loved by people who type all day.

Unprompted reactions from users, in their own words.

Exactly what macOS has been needing: blazing fast, beautifully designed, and it respects your privacy without forcing a subscription.
Physician
I use TypeFire every single day, all day long. I love it.
Works at Apple
The way you've handled the AI integrations is very elegant. A great implementation.
Mac user
TypeFire is the absolute replacement for TextExpander.
Works at Apple
I love your app. Love it. The only one that does what I want it to do.
Mac user
I'm loving the date math. Amazing, love it.
ICU doctor
It instantly imported my 502 snippets. Flawless import.
Moved over from TextExpander
Incredibly lightweight. It has quickly become a go-to tool in my daily workflow.
Physician
Love the app, and your development pace rocks.
Longtime user
This app is AWESOME! And I definitely want to buy the Pro version.
Free user
Fantastic. Thank you for the very fast fix.
EU keyboard user
This app has so much potential. I'm really grateful that I found it.
Mac user

Used by people at

AppleRed HatPalo Alto NetworksHubSpotIndeedSentryFreshworksTrustpilotBumbleFarfetchSaint-GobainfoodpandaMcKinseyAccentureIntuitInstacartRakutenDow JonesHearstRokuxAINuroGitGuardianMeltwaterDevRevWoltAirwallex

Company names are places where our users work. They do not imply endorsement or affiliation.