Markdown files open in any text editor, and you probably already have one installed
A markdown file is a plain text document with a .md extension instead of .txt or .docx. It contains readable text mixed with simple formatting symbols — asterisks for bold, hyphens for lists, hash marks for headings. Your computer doesn't need special software to open it. Any text editor will work: Notepad on Windows, TextEdit on Mac, gedit on Linux, or any editor you already use.
The formatting symbols won't turn into bold or italics when you open the file in a basic text editor — you'll see the raw symbols. That's fine if you just want to read the content. If you want to see the formatted version (bold text actually bold, lists properly indented), you can use a markdown viewer or editor instead, which renders the formatting as you read.
Markdown files are common in technical documentation, README files on GitHub, and some note-taking apps. They're lightweight and work the same way on Windows, Mac, or Linux, which is why developers and technical writers use them.
Key Takeaways
- Open a markdown file by right-clicking it, selecting "Open with", and choosing any text editor like Notepad or TextEdit.
- The file will display the raw text with formatting symbols visible (asterisks, hyphens, hash marks) if you use a basic text editor.
- To see formatted text instead of symbols, use a markdown viewer or editor like Visual Studio Code, Typora, or an online markdown renderer.
- Markdown files are plain text, so they work on any device and won't corrupt if opened in the wrong program.
Opening a markdown file with your default text editor
On Windows, right-click the .md file and select "Open with". A menu appears showing available programs. Choose Notepad, WordPad, or any text editor you see listed. The file opens immediately and displays all the text, including the formatting symbols. You can read the content without any special software.
On Mac, right-click (or Control-click) the file and select "Open With". Choose TextEdit from the menu. TextEdit opens the file as plain text. Make sure you're in plain text mode, not rich text — if TextEdit shows formatting options at the top, go to Format menu and select "Make Plain Text".
On Linux, right-click the file and select "Open With". Choose gedit, nano, or whatever text editor your system has installed. The file opens in the editor window.
This method works for any markdown file, no matter where it came from or how large it is. The file won't change — you're only reading it, not editing it.
Viewing formatted markdown instead of raw symbols
If you want to see the markdown rendered (bold text actually bold, not surrounded by asterisks), use a dedicated markdown viewer or editor. Visual Studio Code is free and works on Windows, Mac, and Linux. Download it from microsoft.com, install it, and open your .md file. The editor shows a preview pane on the right side displaying the formatted version while you see the raw text on the left.
Typora is another option — it's a markdown editor that shows formatting as you type, so you see bold text and lists rendered in real time. It costs money but has a free trial. Download from typora.io.
For a quick view without installing anything, use an online markdown renderer. Copy the contents of your .md file, paste it into a site like dillinger.io or markdown-it.github.io, and the formatted version appears instantly. This works on any device with a web browser.
Finding and opening markdown files you've downloaded
Markdown files often come from GitHub repositories, documentation sites, or shared folders. When you download one, it lands in your Downloads folder by default. Open your file manager (File Explorer on Windows, Finder on Mac), navigate to Downloads, and look for a file with the .md extension.
If you can't see the extension, it might be hidden. On Windows, go to View menu and check "File name extensions". On Mac, select the file and press Command-I to see its full name in the info panel.
Once you locate the file, double-click it. Your computer opens it with whatever program is set as the default for .md files. If nothing happens, right-click and choose "Open with" to pick a text editor manually.
Setting a default program for markdown files
If you open markdown files often, set a default program so they open automatically when you double-click. On Windows, right-click a .md file, select "Open with", then "Choose another app". Find your preferred editor in the list, check the box that says "Always use this app to open .md files", and click Open.
On Mac, right-click the file, select "Open With", hover over your preferred editor, and click "Always Open With". After that, double-clicking any .md file opens it in that program.
If your preferred editor doesn't appear in the list, you may need to browse for it. On Windows, click "More apps" or "Look for another app on this PC" and navigate to the program's installation folder. On Mac, click "Other" and find the application in your Applications folder.
Editing and saving markdown files
You can edit a markdown file in any text editor. Open it, make changes to the text or formatting symbols, and save. Use Ctrl-S (Windows/Linux) or Command-S (Mac) to save. The file stays as plain text with the .md extension — nothing special happens when you save.
If you're new to markdown syntax, the symbols are simple: put asterisks around text for bold (*bold*), underscores for italics (_italic_), and hash marks at the start of a line for headings (# Heading). Most markdown editors show you a quick reference or preview pane so you can see what the formatting looks like as you type.
Don't save a markdown file as a Word document or PDF unless you specifically need to. Saving as .docx or .pdf loses the plain text format and makes the file harder to edit later. Keep it as .md if you might need to change it again.
Troubleshooting when a markdown file won't open
If double-clicking a .md file does nothing, the file extension might not be associated with any program. Right-click the file and select "Open with". If you see a list of programs, choose any text editor. If you see only one option or a message saying "no apps found", your system doesn't have a text editor set as default.
On Windows, download Notepad++ (free, from notepad-plus-plus.org) or use the built-in Notepad. On Mac, TextEdit comes with every Mac. On Linux, gedit or nano are usually pre-installed. Install one of these, then right-click the .md file and set it as the default.
If the file opens but shows garbled text or strange characters, the file might be corrupted or saved in an unusual encoding. Try opening it in a different editor. If it still looks wrong, the file itself may be damaged and you may need to download it again or ask whoever sent it to resend it.
Frequently Asked Questions
Can I open a markdown file on my phone?
Yes. On iPhone, use the Files app to locate the .md file, tap it, and select a text editor or markdown viewer from the menu. On Android, use a file manager app and open the file with a text editor or markdown app like Markor or Markdown Editor. Many note-taking apps also open markdown files.
What's the difference between markdown and other file formats?
Markdown is plain text with simple formatting symbols, so it's lightweight and works everywhere. Word documents (.docx) are binary files that require Microsoft Word or compatible software. Markdown is easier to version-control and share across different systems, which is why developers prefer it.
Will opening a markdown file in Notepad damage it?
No. Opening a file in any text editor is safe — you're only reading it unless you make changes and save. Even if you accidentally edit it, you can close without saving and the original stays unchanged. Markdown files are plain text, so they can't be corrupted by opening them in the wrong program.
How do I convert a markdown file to PDF or Word?
Use an online converter like pandoc.org or cloudconvert.com. Upload your .md file, select PDF or DOCX as the output format, and download the converted file. Some markdown editors like Visual Studio Code also have extensions that convert to other formats.
Why does my markdown file have a .markdown extension instead of .md?
Both .md and .markdown are markdown file extensions — they work the same way. Some people use .markdown for clarity, others use .md because it's shorter. Your computer treats them identically, and any text editor opens both.