Guides

What Is a Markdown File (.md) and How Do You Open It?

A Markdown file is a plain text file that uses a few symbols to mark headings, lists, links and bold text. Its name ends in .md or sometimes .markdown. Any text editor can open it, and a Markdown reader shows it as a clean, formatted page.

What is inside a .md file

Open a Markdown file in Notepad and you see ordinary text with some extra characters. A line that starts with # is a heading. Words wrapped in two asterisks are bold. A line that starts with a hyphen is a list item.

Super Markdown

Drag in a .md file and read it properly. One HTML file, nothing to install, works offline, with themes and dyslexia-friendly reading.

Open it freeRead about it

# Shopping list

Buy these **today**:

- Milk
- Eggs
- [Bread from this bakery](https://example.com)

A Markdown reader turns that into a heading, a sentence with one bold word, and a bullet list with a link. The file itself stays plain text. Nothing is hidden in it, and it carries no fonts or page layout.

John Gruber published Markdown in 2004. The goal was a format that reads well as raw text and converts cleanly to HTML for the web.

Why README files use Markdown

Most software projects keep a file named README.md in the top folder. It tells you what the project is and how to install it. Markdown suits that job for a few plain reasons:

  • It is plain text, so it works with every editor and every operating system.
  • Version control tools such as Git can show exactly which lines changed between two versions.
  • Code hosting sites such as GitHub and GitLab show a project's README as a formatted page on its front page.
  • It still reads fine with no special software at all.

Markdown has also spread well past code. Note apps such as Obsidian store notes as Markdown files. AI chatbots often write their answers in Markdown, and AI coding tools save plans and reports as .md files.

Two ways to look at the same file

ViewWhat you seeGood for
RawThe text with its symbolsEditing, or a quick look
RenderedHeadings, lists, tables and links as a formatted pageReading a long document

A short note is easy to read raw. A long document with tables and code blocks is much easier to read rendered.

How to open a Markdown file on Windows

  1. Notepad. Right-click the file, choose Open with, then Notepad. You see the raw text.
  2. VS Code. Open the file, then press Ctrl+Shift+V. A rendered preview opens in a new tab.
  3. A reader in your browser. Open a Markdown reader page and drag the file onto it.

The third way helps on a work computer where you cannot install software. Super Markdown is a reader that is a single HTML file. You double-click it, drag a .md file in, and read. It works offline and uploads nothing.

Double-clicking a .md file may do nothing useful at first, because Windows does not know which app to use. Right-click the file, choose Open with, then Choose another app. Pick your editor and tick the box to always use it.

How to open a Markdown file on a Mac

  1. TextEdit. Right-click the file, choose Open With, then TextEdit. You see the raw text.
  2. VS Code. Open the file, then press Cmd+Shift+V for the rendered preview.
  3. A reader in your browser. This works the same way as on Windows. Drag the file onto the reader page.

How to open a Markdown file on a phone

A phone treats a .md file as text. Tap the file in your files app. If the phone asks which app to use, pick a text editor or a notes app that supports Markdown. You get the raw text in a plain editor and the formatted page in a Markdown app.

If the file lives in a GitHub or GitLab project, there is an easier way. Open the file's page in your phone browser. The site renders it for you.

How to turn Markdown into something else

Sometimes the person you are sending the file to does not want Markdown. You have a few choices:

  • PDF. Open the rendered view, then print it and choose Save as PDF. Super Markdown has a Print / save as PDF entry in its menu.
  • A web page. Many readers and editors can export HTML. Super Markdown can save a formatted copy as an HTML page that opens in any browser.
  • A Word document. A converter such as Pandoc turns Markdown into a .docx file.

Common questions

Is a .md file safe to open?

The file is only text, so opening it in a text editor runs nothing. Markdown can hold raw HTML, though, so a rendered view depends on the reader you use. A careful reader strips scripts before it shows the page. Super Markdown never runs scripts that sit inside a Markdown file.

Can you edit a Markdown file?

Yes. Open it in any text editor, change the text and save. Keep the .md ending on the file name.

Why do the pictures not show?

A Markdown file does not contain its pictures. It only holds the path to each picture file. If you move the .md file away from its folder, the reader cannot find them. Keep the folder together. In Super Markdown, drop the whole folder in so pictures and links between files work.

Do you need to learn the symbols to read one?

No. A reader hides them. If you want to write Markdown yourself, the Markdown cheat sheet shows each symbol next to its result.

Super Markdown

Drag in a .md file and read it properly. One HTML file, nothing to install, works offline, with themes and dyslexia-friendly reading.

Open it freeRead about it

markdown md file README file formats
✉

Get new articles in your inbox

SCCM guides, AI tools, automation tips — sent when published. No spam.

Keep reading

Comments