What is an .md file, and how do you open it?
An .md file is a plain-text document written in Markdown, a simple way to mark headings, lists and links with characters like # and *. Any text editor can open it. To see it formatted, use a Markdown viewer, the current Windows Notepad, or open it right here in your browser.
Open your .md file right here
Drop your file into the box below or pick it with Choose files. It appears right away as intended: with headings, lists and tables instead of hash signs and asterisks. The file opens in your browser and is not uploaded.
What is an .md file?
MD stands for Markdown. Markdown is not a program but a way of writing: you type normal text and use a few characters to mark what is a heading, what is bold and what is a list. A hash sign at the start of a line makes a heading, two asterisks around a word make it bold, and a dash at the start of a line makes a list item.
This is what the inside of an .md file looks like:
# Shopping list
For **Saturday**, please do not forget:
- Bread
- Coffee
- Batteries (AA)A Markdown viewer turns this into a heading "Shopping list", one bold word and a list with three items. A plain text editor shows exactly the characters above. Both are correct; it is the same file.
The extensions .md and .markdown mean the same thing. Because an .md file is plain text, it is small, opens on any device and does not depend on a particular program version.
Where .md files come from
Most people run into .md files in one of four places:
- README files: almost every software project includes a
README.mdthat explains what the program does and how to install it. - AI assistants: chatbots write their answers in Markdown. When you download an answer as a file, you often get an .md file.
- Note apps: apps such as Obsidian save every note as its own .md file.
- Documentation: manuals and wikis of software companies often come as a collection of .md files.
How to open an .md file on Windows
Windows 11: the built-in Notepad has displayed Markdown with formatting since 2025. Right-click the file, choose Open with and then Notepad. To make that the default, tick the option in the same dialog. If you only see hash signs and asterisks, your Notepad is not up to date yet; update it through the Microsoft Store. You can switch the formatting off again in the Notepad settings.
Windows 10: Notepad shows the plain text with all symbols. It is still readable, because Markdown is designed to make sense even without formatting. For the formatted view, use the tool at the top of this page.
For developers: Visual Studio Code opens .md files and shows a preview with + + .
How to open an .md file on a Mac
A double-click usually opens the file in TextEdit. It shows the plain text, and so does Quick Look when you press the space bar. macOS has no built-in formatted view for Markdown.
For occasional reading, your browser is enough: drop the file into the tool above. If you work with .md files every day, the App Store has dedicated Markdown apps; look for one that works without an account or a mandatory cloud.
Open an .md file online, without installing anything
The tool at the top of this page is a Markdown viewer. Here is how to use it:
- Drop the .md file into the box or pick it with Choose files. Pasting text works too.
- The document appears formatted, with an outline next to it if it has several sections.
- Print puts it on paper or into a PDF; Edit in editor opens the text in the Markdown editor.
The file never leaves your computer. That is the difference to many online viewers, which upload the file to their server first. For a README it does not matter; for a note with customer data it does.
Open an .md file in Google Docs
Since October 2026, Google Docs opens .md files natively: upload the file to Google Drive and open it with Google Docs. It stays an .md file and is saved back as Markdown. Google is rolling the feature out gradually, so it may not show up in every account yet.
Before that, Google Docs converted an .md file into a Google Doc when you opened it. That still works, but some formatting can get lost on the way.
Google Docs is the right choice when several people need to work on the file together. Keep in mind that the file then lives in your Google Drive.
Open an .md file on your phone
On an iPhone, the Files app shows the text of an .md file. On Android, open it with your file manager or a text editor app. Either way, you see the symbols. To read it formatted, open this page in your phone's browser and choose the file in the tool.
Convert an .md file to Word or PDF
If you want to share the content, print it or have it signed, a Word or PDF file is usually more practical. There are two tools for that:
- Markdown to Word: headings become real Word styles and lists stay lists, so you can keep working in Word and add a table of contents.
- Markdown to PDF: for anything that should stay exactly as it is.
Frequently asked questions
Is an .md file safe to open?
Yes. An .md file contains only text and cannot run a program. Links inside it can point anywhere, though, so treat them like links in an email.
Why is my file full of # and * symbols?
Those are Markdown's formatting marks. You opened the file in a program that shows it as plain text. The tool above shows it formatted.
What is the difference between .md and .txt?
Both are plain text. In an .md file, certain characters have a meaning that a viewer turns into headings, lists and links. A .txt file has no such convention.
Can I edit an .md file?
Yes, in any text editor. The tool above makes it easier: you see the result while you type, and the buttons add the symbols for you.
What is a README.md?
The description of a software project: what it does, how to install it and which licence it uses. Read it before you set up the software.
More in Files and formats
What is a HEIC file, and how do you open it?
A HEIC file is a photo saved in the format iPhones have used by default since iOS 11. Macs and iPhones open it with a double-click. Windows needs two extensions from the Microsoft Store. If you do not want to install anything, convert the photos to JPG right here in your browser.
Read it later?
Tap "Save" at the top. The guide then shows up in your saved guides.