All guidesMarkdownly

How to open an .md file

A file ending in .md is usually a Markdown document.

Markdown files contain plain text with lightweight formatting symbols. They are commonly used for software documentation, README files, notes, technical specifications, and content written for websites.

Because Markdown is plain text, you can open an .md file with almost any text editor. To see the formatted version, use a Markdown viewer or preview tool.

What is an .md file?

An .md file is a text file written using Markdown syntax.

Example:

# User Guide

This document explains how to use the product.

## Features

- Live preview
- PDF export
- Word export

A plain text editor displays the formatting symbols.

A Markdown viewer renders them as headings, paragraphs, and bullet lists.

How to open an .md file online

Using an online viewer is the easiest option when you do not want to install software.

Step 1: Open the Markdown viewer

Visit Markdownly.

Step 2: Upload or paste the file

You can:

  • Upload the .md file, if supported
  • Open the file in a text editor and copy its content
  • Paste the content into the Markdown editor

Step 3: View the rendered document

The preview panel displays the formatted version of the file.

Step 4: Export the file if required

You may also be able to download the document as:

  • PDF
  • Word or DOCX
  • HTML
  • Plain text

How to open an .md file on Windows

Using Notepad

  1. Right-click the .md file.
  2. Select Open with.
  3. Choose Notepad.

Notepad displays the raw Markdown source.

Using Visual Studio Code

  1. Install Visual Studio Code.
  2. Right-click the .md file.
  3. Select Open with Code.
  4. Open the built-in Markdown preview.

VS Code is useful when editing documentation or working with software projects.

Using a browser-based viewer

Open an online Markdown viewer and paste or upload the file.

This provides a formatted preview without changing your system's default application.

How to open an .md file on macOS

Using TextEdit

  1. Right-click the .md file.
  2. Select Open With.
  3. Choose TextEdit.

TextEdit displays the raw text content.

Using Visual Studio Code

Open the file in VS Code and launch the Markdown preview.

Using a dedicated Markdown editor

Markdown applications may provide:

  • Live preview
  • Themes
  • Export options
  • Focused writing modes
  • File organisation

For occasional viewing, an online tool may be simpler.

How to open an .md file on Android

Options include:

  • A text-editor application
  • A Markdown-editor application
  • A file-manager preview
  • An online Markdown viewer

To use an online viewer:

  1. Open the .md file in a text editor.
  2. Copy the content.
  3. Open Markdownly in your mobile browser.
  4. Paste the Markdown.
  5. View the rendered document.

Some mobile browsers also allow direct file upload.

How to open an .md file on iPhone or iPad

You can open the file using:

  • The Files application
  • A text editor
  • A Markdown editor
  • An online viewer in Safari or another browser

If the Files application shows raw text, copy the content into an online Markdown previewer to view the formatted version.

How to open an .md file in Google Docs

Google Docs may not automatically interpret Markdown formatting when opening an .md file.

A more reliable workflow is:

  1. Open the Markdown in a viewer.
  2. Export it as DOCX.
  3. Upload the DOCX file to Google Drive.
  4. Open it with Google Docs.

This preserves more formatting than copying raw Markdown directly.

How to open an .md file in Microsoft Word

Microsoft Word may display raw Markdown syntax rather than rendering it fully.

To create an editable Word document:

  1. Open the .md file in an online Markdown converter.
  2. Preview the formatted output.
  3. Export it as DOCX.
  4. Open the DOCX file in Microsoft Word.

How to open a README.md file

A README.md file is a Markdown document that explains a project.

It may contain:

  • Project description
  • Installation instructions
  • Usage examples
  • Screenshots
  • API documentation
  • Contribution guidelines
  • Licence information

You can open it using:

  • GitHub
  • VS Code
  • A text editor
  • An online Markdown viewer
  • A dedicated Markdown application

If the README is part of a GitHub repository, GitHub automatically renders it on the repository page.

Can you open an .md file in a browser?

Yes, but the behaviour depends on the browser and server.

A browser may:

  • Display the raw text
  • Download the file
  • Open it through an extension
  • Render it if the website converts Markdown to HTML

For local files, an online Markdown viewer is usually the simplest way to see formatted output.

How to make .md files open with a specific application

Windows

  1. Right-click the .md file.
  2. Choose Open with.
  3. Select Choose another app.
  4. Select the preferred editor.
  5. Enable the option to always use that application.

macOS

  1. Right-click the file.
  2. Select Get Info.
  3. Expand Open with.
  4. Select the preferred application.
  5. Choose Change All if you want all .md files to use it.

Choose a plain text editor for raw source or a Markdown editor for formatted preview.

What applications can open .md files?

Common application categories include:

  • Text editors
  • Code editors
  • Markdown editors
  • Note-taking applications
  • Documentation platforms
  • Web browsers with extensions
  • Online Markdown viewers

Because Markdown is plain text, the file is rarely locked to one application.

Is an .md file safe?

An .md file is generally a plain text document, but you should still be careful with:

  • Links to unfamiliar websites
  • Embedded remote images
  • Raw HTML
  • Download instructions
  • Commands copied into a terminal
  • Files received from unknown sources

Opening the raw text is usually low risk. Avoid running commands from an unfamiliar Markdown file unless you understand what they do.

Frequently asked questions

What does MD stand for?

In this context, MD usually stands for Markdown.

Can Notepad open an .md file?

Yes. Notepad can open and edit the plain text, but it does not provide a formatted Markdown preview.

Can Microsoft Word open an .md file?

Word may open the text, but it may not render the Markdown correctly. Convert the file to DOCX for better results.

Can I change .md to .txt?

Because Markdown is plain text, renaming the file to .txt may allow more applications to open it. However, the Markdown formatting symbols will remain visible.

How do I convert an .md file to PDF?

Open the file in a Markdown-to-PDF converter, review the preview, and download the PDF.

How do I convert an .md file to Word?

Open the file in a Markdown-to-Word converter and export it as DOCX.

Do I need special software to open Markdown?

No. Any text editor can open the source. A Markdown viewer is only required to display the formatted version.

Try Markdownly

Paste Markdown, preview it instantly, and export it as a polished Word or PDF document. No login required.

Open the editor