How to open an .md file
A file ending in .md is usually a Markdown document.
Markdown files contain plain text with lightweight formatting symbols. They are commonly used for software documentation, README files, notes, technical specifications, and content written for websites.
Because Markdown is plain text, you can open an .md file with almost any text editor. To see the formatted version, use a Markdown viewer or preview tool.
What is an .md file?
An .md file is a text file written using Markdown syntax.
Example:
# User Guide
This document explains how to use the product.
## Features
- Live preview
- PDF export
- Word exportA plain text editor displays the formatting symbols.
A Markdown viewer renders them as headings, paragraphs, and bullet lists.
How to open an .md file online
Using an online viewer is the easiest option when you do not want to install software.
Step 1: Open the Markdown viewer
Visit Markdownly.
Step 2: Upload or paste the file
You can:
- Upload the
.mdfile, if supported - Open the file in a text editor and copy its content
- Paste the content into the Markdown editor
Step 3: View the rendered document
The preview panel displays the formatted version of the file.
Step 4: Export the file if required
You may also be able to download the document as:
- Word or DOCX
- HTML
- Plain text
How to open an .md file on Windows
Using Notepad
- Right-click the
.mdfile. - Select Open with.
- Choose Notepad.
Notepad displays the raw Markdown source.
Using Visual Studio Code
- Install Visual Studio Code.
- Right-click the
.mdfile. - Select Open with Code.
- Open the built-in Markdown preview.
VS Code is useful when editing documentation or working with software projects.
Using a browser-based viewer
Open an online Markdown viewer and paste or upload the file.
This provides a formatted preview without changing your system's default application.
How to open an .md file on macOS
Using TextEdit
- Right-click the
.mdfile. - Select Open With.
- Choose TextEdit.
TextEdit displays the raw text content.
Using Visual Studio Code
Open the file in VS Code and launch the Markdown preview.
Using a dedicated Markdown editor
Markdown applications may provide:
- Live preview
- Themes
- Export options
- Focused writing modes
- File organisation
For occasional viewing, an online tool may be simpler.
How to open an .md file on Android
Options include:
- A text-editor application
- A Markdown-editor application
- A file-manager preview
- An online Markdown viewer
To use an online viewer:
- Open the
.mdfile in a text editor. - Copy the content.
- Open Markdownly in your mobile browser.
- Paste the Markdown.
- View the rendered document.
Some mobile browsers also allow direct file upload.
How to open an .md file on iPhone or iPad
You can open the file using:
- The Files application
- A text editor
- A Markdown editor
- An online viewer in Safari or another browser
If the Files application shows raw text, copy the content into an online Markdown previewer to view the formatted version.
How to open an .md file in Google Docs
Google Docs may not automatically interpret Markdown formatting when opening an .md file.
A more reliable workflow is:
- Open the Markdown in a viewer.
- Export it as DOCX.
- Upload the DOCX file to Google Drive.
- Open it with Google Docs.
This preserves more formatting than copying raw Markdown directly.
How to open an .md file in Microsoft Word
Microsoft Word may display raw Markdown syntax rather than rendering it fully.
To create an editable Word document:
- Open the
.mdfile in an online Markdown converter. - Preview the formatted output.
- Export it as DOCX.
- Open the DOCX file in Microsoft Word.
How to open a README.md file
A README.md file is a Markdown document that explains a project.
It may contain:
- Project description
- Installation instructions
- Usage examples
- Screenshots
- API documentation
- Contribution guidelines
- Licence information
You can open it using:
- GitHub
- VS Code
- A text editor
- An online Markdown viewer
- A dedicated Markdown application
If the README is part of a GitHub repository, GitHub automatically renders it on the repository page.
Can you open an .md file in a browser?
Yes, but the behaviour depends on the browser and server.
A browser may:
- Display the raw text
- Download the file
- Open it through an extension
- Render it if the website converts Markdown to HTML
For local files, an online Markdown viewer is usually the simplest way to see formatted output.
How to make .md files open with a specific application
Windows
- Right-click the
.mdfile. - Choose Open with.
- Select Choose another app.
- Select the preferred editor.
- Enable the option to always use that application.
macOS
- Right-click the file.
- Select Get Info.
- Expand Open with.
- Select the preferred application.
- Choose Change All if you want all
.mdfiles to use it.
Choose a plain text editor for raw source or a Markdown editor for formatted preview.
What applications can open .md files?
Common application categories include:
- Text editors
- Code editors
- Markdown editors
- Note-taking applications
- Documentation platforms
- Web browsers with extensions
- Online Markdown viewers
Because Markdown is plain text, the file is rarely locked to one application.
Is an .md file safe?
An .md file is generally a plain text document, but you should still be careful with:
- Links to unfamiliar websites
- Embedded remote images
- Raw HTML
- Download instructions
- Commands copied into a terminal
- Files received from unknown sources
Opening the raw text is usually low risk. Avoid running commands from an unfamiliar Markdown file unless you understand what they do.
Frequently asked questions
What does MD stand for?
In this context, MD usually stands for Markdown.
Can Notepad open an .md file?
Yes. Notepad can open and edit the plain text, but it does not provide a formatted Markdown preview.
Can Microsoft Word open an .md file?
Word may open the text, but it may not render the Markdown correctly. Convert the file to DOCX for better results.
Can I change .md to .txt?
Because Markdown is plain text, renaming the file to .txt may allow more applications to open it. However, the Markdown formatting symbols will remain visible.
How do I convert an .md file to PDF?
Open the file in a Markdown-to-PDF converter, review the preview, and download the PDF.
How do I convert an .md file to Word?
Open the file in a Markdown-to-Word converter and export it as DOCX.
Do I need special software to open Markdown?
No. Any text editor can open the source. A Markdown viewer is only required to display the formatted version.