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.
- Right-click the
.mdfile in Finder. - Choose Open With, then TextEdit.
- 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.
- In Finder, click the
.mdfile once to select it. - Press the Space bar.
- 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.
- Open the
.mdfile in VS Code (File, Open, or right-click it and choose Open With, then Visual Studio Code). - Press ⇧⌘V to switch the editor to the preview.
- Or press ⌘K V to open the preview side by side with the raw text.
- 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.
- Install OpenMark from the Mac App Store.
- Double-click the
.mdfile, or drag it onto the OpenMark icon. To make this the default for every.mdfile, follow how to set the default app for .md files. - Read the rendered Document view. Press ⌘⇧M to toggle to the Markdown view when you want to see or edit the source.

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.
- Open the online Markdown viewer.
- Drop the
.mdfile onto the page, or paste its text. - Read the rendered result.

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).
- Find the
.mdfile in the Files app, or in iCloud Drive, Google Drive or Dropbox. - Tap the file and open it in OpenMark.
- 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.

Which method should you use?
| Method | Shows formatting? | Best for |
|---|---|---|
| TextEdit | No, raw text | Quick edits |
| Quick Look | Depends on installed extensions | Skimming in Finder |
| VS Code | Yes, in the preview | Developers |
| Markdown viewer (OpenMark) | Yes | Regular reading |
| Online viewer | Yes | One-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.