Skip to content
FeaturesPricingBlogDownload
Home / Markdown syntax / The .md file

The .md file

An .md file is a plain text file written in Markdown, a format that uses symbols such as # for headings and * for emphasis. Any text editor can open it and show the raw text, and a Markdown app or website shows it formatted, with real headings, lists and links. README.md files on GitHub and notes in apps such as Obsidian and Noteline are .md files.

# Shopping list

- Milk
- **Fresh** bread
- [Recipe](https://example.com/recipe)

Opened in a text editor, the file looks exactly like that. Opened in a Markdown app, it shows a heading, a bullet list, bold text and a link.

What does .md stand for?

It stands for Markdown. The format was introduced by John Gruber in 2004 as a way to write for the web in readable plain text (Daring Fireball, checked November 2026). The official media type is text/markdown, registered in RFC 7763, which lists both .md and .markdown as file extensions. Both extensions hold the same kind of content.

What is inside an .md file?

Only text. There is no hidden formatting, no embedded fonts and no binary data, which is why the files are small and open on any computer. A few things to know:

  • Images are not stored inside the file. The file holds a path or URL that points to a separate image file, as the images page explains.
  • The text is almost always UTF-8, which covers every language and emoji.
  • The syntax most apps follow is CommonMark, often with the GitHub Flavored Markdown (GFM) additions for tables, task lists and strikethrough. Small differences between apps come from those extensions.
  • Some files start with a block between --- lines, called front matter, that stores metadata such as a title or date for site generators and note apps.

Which apps open an .md file?

App type Examples What you see
Text editors TextEdit on a Mac, Notepad on Windows The raw Markdown text
Code editors VS Code, Sublime Text Raw text, with a preview side by side in VS Code
Markdown apps Noteline, Obsidian, Typora Formatted text you can edit
Code hosting sites GitHub, GitLab The file rendered as a formatted page
Web browsers Chrome, Safari, Edge The raw text, or a download prompt

The step-by-step guides for setting a default app are in opening .md files on a Mac and opening .md files on Windows.

How do you create an .md file?

Save any plain text file with the .md extension. In a text editor, choose plain text rather than rich text, type your Markdown, and name the file something like notes.md. A Markdown app creates the file for you when you start a new note.

If your editor adds .txt, the file ends up as notes.md.txt. Turn on file extensions in Finder or File Explorer and remove the extra .txt.

How do you convert an .md file to Word, PDF or HTML?

A converter reads the Markdown and writes the other format. Pandoc is a widely used free converter that runs from the command line. Many Markdown apps include an export menu, and most code hosting sites show .md files as HTML pages directly.

pandoc notes.md -o notes.docx

Is an .md file safe to open?

The file is plain text, not a program, so opening it in a text editor is harmless. Links, images and any HTML inside it can point anywhere, though, so treat links in an .md file from an unknown sender as you would links in an email.

The .md file in Noteline

Noteline stores every note as an .md file. In the desktop app, notes are plain files in a folder you choose, and other .md files open in tabs. On a Mac, Noteline appears in the Open With menu for .md files without changing your default app, and the File menu item "Use Noteline for all .md Files" makes it the default. The desktop app also saves a note as Word, PDF or HTML.

Common questions

Is .md the same as .markdown?

Yes. Both extensions hold Markdown text, and RFC 7763 lists both. .md is the more common choice today.

Can Microsoft Word open an .md file?

Word can open it as plain text, but it does not show the Markdown formatting. To get a formatted Word document, convert the file to .docx first.

Why does my .md file show symbols instead of formatting?

The app you used shows raw text. Open the file in a Markdown app or a code editor with a preview to see it formatted.

Noteline

Download Noteline↓See pricing→

Related

  • Markdown headings
  • Markdown images
  • Local Markdown files
  • Bold, italic and strikethrough
  • How to open .md files on a Mac
  • How to open .md files on Windows
  • Markdown syntax

A Markdown note editor with everything you need

We’re listening

Tell us what you need or what gets in your way. If something isn’t working, write to us any time.

contact@noteline.io→

Product

  • Download
  • Pricing
  • Features
  • Changelog

Learn

  • Markdown syntax
  • Use cases
  • Blog

Compare

  • vs Obsidian
  • vs Notion

Support

  • Help
  • Support
  • Privacy
  • Terms

© 2026 Notelinecontact@noteline.io