.md File Extension

Learn what a .md file is, how to open Markdown documents, how Poly supports them, and what to check when sharing them.

File extension details for .md

Full Support
File typeMarkdown document
MIME type
EncodingUnicode plain text, commonly UTF-8, with lightweight markup
Operating systemsWindows, macOS, Linux, iOS, Android
Opens withVisual Studio Code, GitHub, TextEdit, Notepad, Obsidian
Poly supportYes. Poly provides rich text-file support for MD documents.
Indexed by PolyYes. Poly indexes the readable source for exact and semantic search.
Preview in PolyYes. MD files open in Poly's code editor with syntax highlighting.
Poly agentYes. The Poly agent can read and reason about the document text.

What kind of file is a .md?

A .md file is a plain-text document written with Markdown, a lightweight markup syntax. Punctuation such as #, *, and backticks can express headings, emphasis, lists, links, and code while leaving the source readable in an ordinary text editor.

The registered MIME type is text/markdown. RFC 7763 lists .md and .markdown as filename extensions and specifies no magic number, so software generally identifies a Markdown file from its name or media type rather than a unique byte signature.1

Markdown is a family of related syntaxes, not one perfectly uniform format. CommonMark defines a precise core syntax, while GitHub Flavored Markdown adds features such as tables, task-list items, strikethrough, and autolinks.23

Renaming notes.txt to notes.md changes how applications may interpret the text, but it does not add Markdown structure. Renaming a binary file to .md does not convert it into text.

How do I open a .md on my computer?

For editing and a rendered preview, use Visual Studio Code, Obsidian, Typora, or another Markdown editor. Visual Studio Code supports .md files out of the box and can show the source and rendered preview side by side.4

Any plain-text editor can open the source:

  • On Windows, use Visual Studio Code or Notepad.
  • On macOS, use Visual Studio Code or TextEdit in plain-text mode.
  • On Linux, use Visual Studio Code, Kate, GNOME Text Editor, Vim, or Emacs.
  • On iOS and Android, use a Markdown editor or a text-editing app that can access the file.

GitHub renders .md files in repositories and supports its own Markdown extensions. A document that looks right on GitHub can render differently in a CommonMark-only tool, especially if it uses tables, alerts, task lists, or embedded HTML.35

Poly support for .md

Poly recognizes the .md suffix, opens the document in a code-friendly editor with syntax highlighting, and indexes its readable content for exact and semantic search. The Poly agent can read the text and reason about headings, lists, links, and code examples.

Poly shows the Markdown source rather than promising that every flavor-specific feature will render like its original application. Linked images and remote resources may also depend on their locations and access permissions.

History of .md

John Gruber introduced Markdown on March 15, 2004 as a text-to-HTML tool and a readable plain-text writing syntax.6 The short .md suffix became one of its common filename conventions alongside .markdown. In March 2016, RFC 7763 registered text/markdown and formally listed both extensions.1

The ecosystem later developed multiple dialects. CommonMark set out to remove ambiguities through a detailed specification and test suite, while GitHub Flavored Markdown built on CommonMark for repository documentation and collaboration.23

Working with .md and alternatives

Keep Markdown portable by using UTF-8, a consistent flavor, relative links for files that travel together, and fenced code blocks with language labels. Preview the document in its destination before publishing.

Markdown can contain raw HTML or links with unsafe destinations. Treat files from untrusted sources as content to inspect, and use a renderer that sanitizes generated HTML. RFC 7763 recommends analyzing and sanitizing or blocking the output markup because different processors may interpret the same source differently.1

Choose another format when the goal changes:

  • .txt for unformatted text with the widest basic compatibility.
  • HTML for a self-contained web page with controlled structure and styling.
  • PDF for fixed layout intended to look consistent when shared or printed.
  • DOCX or ODT for tracked changes, rich page layout, and office collaboration.

Conversion to HTML or PDF can preserve the rendered result, but may discard comments, frontmatter, or flavor-specific behavior. Keep the .md source when future editing and version-control-friendly diffs matter.

Footnotes

  1. Internet Engineering Task Force. RFC 7763: The text/markdown Media Type. 2 3
  2. CommonMark Project. CommonMark Specification. 2
  3. GitHub. GitHub Flavored Markdown Specification. 2 3
  4. Microsoft. Markdown and Visual Studio Code.
  5. GitHub Docs. Basic Writing and Formatting Syntax.
  6. John Gruber. Introducing Markdown.
© Poly Corp. 2026