An MD file is a plain-text document written in Markdown — a lightweight markup language that uses simple characters to describe formatting. # Heading becomes a heading, **bold** becomes bold, and a fenced mermaid code block becomes a diagram. The .md file type is just text under the hood: you can open it in any editor and see the source. What you cannot see there is the document it describes — for that, the file has to be rendered.
That distinction is the whole story of the format. Markdown was designed in 2004 to be readable both ways: as raw text and as formatted output. Twenty years later the second half dominates — the .md files people actually receive are long, structured technical documents where the raw text is barely readable at all.
Open one in a text editor and you'll see patterns like these:
| You see in the source | It means | Rendered result |
|---|---|---|
# Title, ## Section |
Headings | Document structure with a navigable outline |
**bold**, *italic*, `code` |
Inline formatting | Emphasis and inline code |
| col | col | rows |
A GFM table | An aligned, readable table |
A fenced mermaid code block |
A Mermaid diagram | A rendered flowchart, sequence, or ER diagram |
$E = mc^2$ |
LaTeX math | A typeset formula |
- [ ] item |
A task list | Checkboxes |
Because it is plain text, an MD file is small, diff-friendly, and portable — which is exactly why it became the default format for READMEs, wikis, documentation sites, and, most recently, AI output.
An MD file is plain text: headings, lists, and formatting marks — here in the mdview.io input, one click away from the rendered document.
Three sources produce most of the .md files you'll encounter:
README.md; larger ones ship whole docs/ folders of Markdown..md because everything can read plain text.| Format | Plain text? | Holds diagrams and math? | Needs specific software? |
|---|---|---|---|
.md |
Yes | Yes — as renderable source | Any renderer |
.docx |
No | As embedded images | Word processor |
.pdf |
No | As fixed graphics | PDF reader |
.html |
Yes | Yes | Browser |
.txt |
Yes | No | Anything |
Markdown sits in a useful middle: human-writable like .txt, structured like .html, portable like neither .docx nor .pdf.
For a one-off file, open it in mdview.io. If you read local .md files often on Windows 11, mdview Desktop opens them as formatted documents and works offline. The macOS version is still in development; the desktop page offers a release list.
You have two modes. To inspect one, any text editor works — the format is just text. To read one, you want a renderer that turns the source into the finished document. That gap matters most for technical files: a basic viewer that handles headings and bold will still show a Mermaid diagram as code and a table as a picket fence of pipes.
If you have a file to open now, follow the step-by-step MD file opening guide. This page explains the format; the opening guide covers browsers, apps, and operating systems.
mdview.io is built for the reading side. Open, drag in, or paste an .md file and it renders everything the format can express — diagrams with zoom and fullscreen, KaTeX math, sortable wide tables, highlighted code — with no install and no account needed to read. If the file came out of an AI with a broken table or invalid diagram syntax, Fix MD repairs the common mistakes so the document renders instead of failing.
So: an MD file is a plain-text blueprint for a document. To see the document it describes, open it at mdview.io.
Use a text editor to inspect or edit the source. Use a Markdown viewer to read the formatted document. A code editor such as VS Code can provide both modes.
Browsers usually show the raw text or download the file. Open it through a browser-based Markdown viewer to render the formatting.
Markdown itself is plain text, but links and embedded resources can point elsewhere. Treat files from unknown sources cautiously, avoid running copied commands without review, and do not publish documents containing secrets.
No. README.md is a normal Markdown file with a conventional name used for project introductions and instructions.
Save a plain-text file with the .md extension — the trap is Windows and macOS quietly appending .txt. How to create an MD file covers the steps on each operating system and the checks worth running before you send it.