Blog
How to Open an .md File on Windows, Mac, Android & iPhone
A .md file is plain Markdown text. Here is how to open one on Windows, Mac, iPhone and Android, and how to see it rendered instead of as raw text.
You downloaded or received a file that ends in .md and it opened in Notepad as a wall of # and **. Nothing is broken: a .md file is a plain-text file written in Markdown, and the marks are the formatting. To read it the way it was meant to look, something has to render it.
This guide covers every common platform, and the fastest route if you just want to read the document right now.
First, the 10-second answer
Drag the .md file into a browser-based Markdown viewer, or open it in the Markdown Viewer editor. The file is read on your device, the headings, tables, code and links are rendered, and nothing is uploaded. That works on any operating system, including Chromebooks and iPads, with no installation and no account.
Everything below is about the other cases: you want a permanent default app, you are offline, or you want to edit rather than just read.
What an .md file actually is
Markdown is a plain-text format with lightweight syntax:
# A heading
Some **bold** text, a [link](https://example.com) and `inline code`.
| Column | Column |
| :----- | :----- |
| cell | cell |
There is no binary container, no fonts, no embedded images and no hidden metadata like a .docx file carries. That is why a text editor shows the source instead of a formatted page: it is doing exactly what the format allows. Rendering is a separate step, performed by whatever app you open it in.
It also explains why .md files are everywhere in software: README.md on GitHub, docs sites, note apps such as Obsidian and Joplin, and AI chat exports all produce Markdown.
How to open an .md file on Windows
Windows has no built-in Markdown renderer, so a double-click usually lands in Notepad or opens a “How do you want to open this file?” dialog. Four working options:
- A Markdown viewer in the browser. No install, renders instantly. Best when you only need to read one file.
- Visual Studio Code. Free, shows the source with syntax highlighting; press
Ctrl+Shift+Vfor a rendered preview tab. This is the default for anyone already writing code. - Obsidian or Typora. Obsidian is free for personal use and opens a single file as a “vault”; Typora is a paid WYSIWYG editor for people who write Markdown daily.
- A dedicated viewer app. Something like MarkText or a Markdown preview extension for Explorer’s right-click menu.
To stop Windows asking every time, right-click the file → Open with → Choose another app → pick your viewer → tick Always use this app to open .md files.
How to open an .md file on macOS
macOS is friendlier: TextEdit opens .md as plain text, and Xcode will render nothing useful but at least highlights it. For a real preview:
- Quick Look does not render Markdown. Spacebar on a
.mdfile shows the raw text, which is the single most common source of “it looks broken” on a Mac. - Visual Studio Code previews with
Cmd+Shift+V. - Obsidian, Typora or MacDown handle
.mdnatively, and MacDown is free. - A browser viewer remains the zero-install route.
To set a default, right-click → Get Info → Open with → choose the app → Change All….
How to open an .md file on iPhone and iPad
The Files app will show the text, but not the formatting. In practice:
- Safari + a browser viewer. Save the file to Files, then open the viewer and pick the file from the document picker. This is the only route that needs no app purchase.
- Notes alternatives such as Obsidian or iA Writer open
.mdfrom Files directly and render it. - Shortcuts can be set up to “Open Markdown file in…” if you do this often.
How to open an .md file on Android
There is no stock Markdown renderer either. The reliable options are:
- Open the file in Chrome through an online viewer (tap the viewer, then choose the file).
- Install Obsidian, Markor (free and open source) or iA Writer, all of which render Markdown from local storage.
- Use Google Drive’s preview: it shows the text but not the styling.
Which app opens .md files? A quick comparison
| Route | Cost | Renders Markdown | Edits | Works offline | Best for |
|---|---|---|---|---|---|
| Browser viewer | Free | Yes | Yes | No (needs the page loaded) | Reading one file now |
| VS Code | Free | Yes, in a preview tab | Yes | Yes | Developers |
| Obsidian | Free for personal use | Yes | Yes | Yes | Notes and long-term vaults |
| Typora | Paid | Yes | Yes (WYSIWYG) | Yes | Writers who live in Markdown |
| Notepad / TextEdit | Free | No | Yes | Yes | Editing the raw source only |
Why did my .md file open in Notepad?
Because the operating system associates .md with its default plain-text editor. Windows deliberately maps many text extensions to Notepad, and macOS maps unknown text to TextEdit. The file is fine; only the association is unhelpful. Change it once (steps above) and every future .md file opens rendered or at least highlighted.
If the file arrived from GitHub, Slack or an email, it may also have been renamed to .txt on download — check the extension before assuming the content is broken.
Opening .md files without installing anything
If you are on a locked-down work laptop or a borrowed machine, a browser tool is the only option that works immediately. Two useful patterns:
- Reading: open the Markdown reader, paste the text or drop the file, and read it as a typeset page.
- Editing or converting: open the editor to change the document and export it to PDF, HTML or DOCX.
Both process the file locally. No upload step exists, so there is nothing to wait for and no copy of the document on someone else’s server.
Frequently asked questions
Can I open an .md file in Word?
Yes, but Word shows the raw text, not the formatting. Convert it first: the Markdown to Word converter produces a real .docx with headings, lists and tables mapped to native Word styles.
Is an .md file the same as a Markdown file?
Yes. .md is the standard extension; .markdown, .mdown and .mdx (Markdown with JSX) also appear. .mdx may contain component syntax that a plain Markdown viewer will show literally.
Can I open an .md file on a Chromebook?
Yes. Chromebooks have no native Markdown app, so a browser viewer is the normal route, or install a Linux/Android Markdown app if your device supports it.
Does opening an .md file run anything?
No. Markdown is plain text. Rendering it produces HTML, and a well-built viewer sanitizes that HTML before display. The risk is only in a viewer that executes embedded HTML or scripts — a browser-based renderer that sanitizes output, like this site’s, is safe.