All posts

How to Open an .md File on Mac, iPhone and iPad

Five ways to open a Markdown (.md) file on Mac, iPhone and iPad (TextEdit, Quick Look, VS Code, a Markdown viewer, or online), with what each shows you.

Short answer: On a Mac you can open a .md file in TextEdit (raw text), preview it with Quick Look, open it in Visual Studio Code, open it in a Markdown viewer app such as OpenMark, or open it online. Only the viewer and preview options show the formatting; a plain text editor shows the raw symbols.

You just received a .md file, maybe from a colleague, downloaded from GitHub, or generated by an AI tool. Double-clicking it opened a wall of symbols: ## where headings should be, ** around bold words. This guide covers five ways to open it, and what each one shows you. (New to the format? Start with What Is an .md File?.)

Disclosure: we make OpenMark, which is one of the five options.


Method 1: TextEdit (raw text)

TextEdit is built into every Mac. Apple's TextEdit guide says it can create and edit plain text, rich text and HTML documents, and does not mention Markdown. A .md file is plain text, so the content is all there, but you read the raw symbols rather than a formatted page.

  1. Right-click the .md file in Finder.
  2. Choose Open With, then TextEdit.
  3. Read or edit the raw text.

Best for: a quick look at a file you already know well.


Method 2: Quick Look in Finder

Quick Look previews a file without opening an app. Apple's Mac guide says to select the file in the Finder and press the Space bar. What you see for a .md file depends on what is installed: OpenMark includes a Quick Look extension, so with OpenMark installed you can preview the file this way: headings, tables, lists, alerts and wiki links show rendered, while Mermaid diagrams, math and code highlighting show as plain source in Quick Look and render in the app. For the options and trade-offs, see Quick Look for Markdown on Mac. I have not verified what macOS shows for .md files with no Markdown app installed.

  1. In Finder, click the .md file once to select it.
  2. Press the Space bar.
  3. Press Space again (or Esc) to close the preview.

Best for: skimming a file in a folder without opening anything.


Method 3: Visual Studio Code

Visual Studio Code is a free code editor with a built-in Markdown preview. Its documentation lists these shortcuts on a Mac.

  1. Open the .md file in VS Code (File, Open, or right-click it and choose Open With, then Visual Studio Code).
  2. Press ⇧⌘V to switch the editor to the preview.
  3. Or press ⌘K V to open the preview side by side with the raw text.
  4. You can also press ⇧⌘P and run Markdown: Open Preview to the Side.

Best for: people who already use VS Code. It is a full code editor, so it is more than you need if you only want to read a file.


Method 4: A Markdown viewer app such as OpenMark

A Markdown viewer renders the file as soon as you open it, with no preview step. OpenMark is a native Mac app (about 8 MB) that shows headings, lists, tables, highlighted code, Mermaid diagrams and LaTeX math. It costs $9.99 once, works offline and needs no account.

  1. Install OpenMark from the Mac App Store.
  2. Double-click the .md file, or drag it onto the OpenMark icon. To make this the default for every .md file, follow how to set the default app for .md files.
  3. Read the rendered Document view. Press ⌘⇧M to toggle to the Markdown view when you want to see or edit the source.

OpenMark on Mac showing a Markdown file in Document view, with a code block, a Mermaid diagram and a table

Best for: reading .md files regularly, including README files, AI output and CLAUDE.md.


Method 5: Online

You can also paste or drop a .md file into an online Markdown viewer in your browser, with nothing to install. This is handy on a computer that isn't yours.

  1. Open the online Markdown viewer.
  2. Drop the .md file onto the page, or paste its text.
  3. Read the rendered result.

The online Markdown viewer: Markdown source on the left, the rendered document on the right

Best for: one-off files and machines where you can't install apps.


On iPhone and iPad

To read a .md file on iPhone or iPad you need a Markdown reader app. OpenMark has an iPhone and iPad reader, included in the same $9.99 purchase as the Mac app (Universal Purchase).

  1. Find the .md file in the Files app, or in iCloud Drive, Google Drive or Dropbox.
  2. Tap the file and open it in OpenMark.
  3. Read it rendered, with Mermaid diagrams, LaTeX math and highlighted code. On iPad an outline sidebar lets you jump to any heading. It works offline.

OpenMark on iPhone showing a rendered Markdown file with a table and a Mermaid diagram


Which method should you use?

MethodShows formatting?Best for
TextEditNo, raw textQuick edits
Quick LookDepends on installed extensionsSkimming in Finder
VS CodeYes, in the previewDevelopers
Markdown viewer (OpenMark)YesRegular reading
Online viewerYesOne-off files

Markdown files sometimes use other extensions: .markdown, .mdown, .mkd, .mkdn and .mdx. OpenMark opens all of these.

For more on why .md files are showing up everywhere, see The Best Markdown Editor for AI-Generated Content, and Markdown for Developers if you work with Markdown daily.


Download OpenMark: $9.99 once for Mac, iPhone and iPad. Works offline, no account.

Frequently asked questions

What app opens .md files on Mac?
Several do. TextEdit, which is built into every Mac, opens a .md file as raw text. Visual Studio Code has a built-in Markdown preview. A Markdown viewer app such as OpenMark (which we make) renders the file as soon as you open it, and a browser-based viewer needs no install. Only the viewers and previews show formatting.
Why does my .md file look like a wall of symbols?
A .md file is plain text with Markdown symbols such as ## for headings and ** for bold. A plain text editor like TextEdit shows those symbols as written. A Markdown viewer or preview turns them into headings, bold text, lists and tables.
How do I make .md files open in a specific app by default?
In Finder, select any .md file, choose File then Get Info (or press Command-I), pick the app under Open with, and click Change All. Every .md file will then open in that app.
Can I open a .md file on iPhone or iPad?
You need a Markdown reader app. OpenMark has an iPhone and iPad reader, included in the same $9.99 purchase as the Mac app. It opens .md files from the Files app, iCloud Drive, Google Drive and Dropbox, and works offline.