How to Open an .md File on Windows: 4 Practical Options

Published:Updated:Yuza — Developer of Simple MD Viewer at Vessk Inc.

An illustration of a Markdown source document becoming a readable formatted document with a table and diagram

You saved an answer from an AI tool and received a file ending in .md. Or someone sent you an .md file that would not open when you double-clicked it. When you tried Notepad, the file opened—but the #, |, and other symbols made it difficult to scan.

This guide explains four ways to open an .md file on Windows. The right choice depends on whether you want to check the text, read and print a formatted document, or edit its contents. I develop a Markdown viewer, and I tested the behavior described in this guide with real files and apps.

The English interface images are simplified recreations based on the Windows screens tested for this guide. Labels and layouts may vary with your version of Windows or the app.

What is an .md file? Its contents are plain text

How an .md file works. The left side shows text with Markdown symbols. The right side shows the same content formatted as headings, bold text, a list, and a table. Formatting support depends on the app

The .md extension identifies a text file written in Markdown. Markdown uses characters such as # Heading, * list item, and | table | to describe the structure of a document.

Markdown has long been used for technical documentation. It is now more common outside software teams because tools such as ChatGPT and Claude often produce reports, specifications, and meeting notes in Markdown.

ChatGPT or Claude gave me a .md file — how do I open it?

Save the file to your Windows PC without changing its .md extension. Use Notepad when you only need to check the text, a Markdown viewer when you want a formatted reading view, or an editor when you need to change the content. The four options below show each approach.

Two facts explain why the same file can look different from one app to another:

  • An .md file contains text, so any text editor can open it.
  • The app decides which headings, tables, code blocks, diagrams, and formulas it can format.

Option 1: Open the .md file with Notepad

Option 1: Open the .md file with Notepad. Right-click the file, select Open with, and then select Notepad. No additional installation is required; formatting support depends on the Notepad version

  1. Right-click the .md file.
  2. Select Open with, and then select Notepad.

Re-created Windows Open with menu for an .md file, with Notepad available in the list of installed apps

Notepad lets you inspect the file without installing another app. What you see depends on the version of Notepad installed on your PC.

Can Windows Notepad display Markdown formatting?

Newer versions of Notepad on Windows 11 can show Markdown with formatting. Microsoft began rolling out lightweight formatting in 2025 and has continued to expand its Markdown support. In Notepad 11.2605.29.0, the version tested for this guide, headings, bold text, lists, links, and tables were formatted.

If you see Markdown characters when the file opens, select View > Markdown > Formatted.

Re-created Notepad View menu with Markdown and Formatted selected

Windows 10 and older versions of Notepad show the Markdown source as plain text. If the formatting option is missing, try updating Notepad. If it still does not appear, use a dedicated viewer.

Actual Notepad syntax view of an English Markdown document, showing heading markers, table pipes, and other Markdown characters as plain text

Notepad still has limitations. It does not fully render code blocks, Mermaid diagrams, or math expressions. When a file includes unsupported syntax, Notepad may warn you before switching to the formatted view.

Re-created Notepad warning that unsupported Markdown syntax was detected and that switching to the formatted view may change the file

The warning explains that switching to the formatted view may change the original content. If you only want to read the file and must preserve it exactly, select Cancel and open it in another app.

Actual Notepad formatted view of an English Markdown document. Headings and a table are rendered while unsupported Markdown syntax remains visible

Notepad is enough when you only need a quick look at the text. Use the next option when the document contains code or diagrams, or when you want a cleaner reading view.

Option 2: View the .md file with a Markdown viewer

Option 2: Open the .md file with a Markdown viewer. Install Simple MD Viewer from Microsoft Store, then select it from the Open with menu. Supported tables, code, diagrams, and math are rendered

How do I view an .md file without editing it?

If you need to read the document rather than edit it, a dedicated Markdown viewer keeps the interface focused on the content. The steps below use Simple MD Viewer, a Markdown viewer for Windows, which I develop. Its core reading features are free.

  1. Search for Simple MD Viewer in Microsoft Store, and select Install.

    Re-created English Microsoft Store page for Simple MD Viewer, with the official app icon and an Install button

  2. Right-click the .md file, and select Open with > Simple MD Viewer.

    Re-created Windows Open with menu for an English .md file, with Simple MD Viewer selected

  3. The file opens with its headings, tables, and other supported elements formatted.

To open .md files with a double-click in the future, right-click the file and select Open with > Choose another app. Select Simple MD Viewer, and then select Always.

Re-created Windows dialog for choosing the app that opens .md files. Simple MD Viewer is selected, with an Always button for making it the default

Simple MD Viewer formats headings, tables, and code blocks, and renders supported Mermaid diagrams and LaTeX-style math.

Actual side-by-side view of the same English Markdown document. Notepad on the left shows the source, while Simple MD Viewer on the right renders it for reading

You can open several files in tabs and switch between them while you read. Print preview lets you check page breaks before printing, so you can review an AI-generated report and prepare a paper handout in the same app.

Simple MD Viewer is designed for reading—especially for reviewing Markdown produced by AI tools—so it does not include editing tools. This keeps the interface focused and lightweight. If you need to change the document, use an editor from option 4.

If you are comfortable with the command line, you can also install the app with winget:

winget install --id 9N9BN2N257S0 -s msstore

If winget asks you to accept Microsoft Store source terms, review the displayed terms before continuing.

Option 3: Open the .md file with a browser extension

Option 3: Open the .md file with a browser extension. Install a trusted Markdown viewer extension, allow access to file URLs, then drag the file into the browser. Formatting support varies by extension

A Markdown viewer extension for Chrome or Edge can display an .md file that you drag into the browser.

  1. Search the browser’s extension store for Markdown Viewer, and install an extension you trust.
  2. In the extension settings, turn on Allow access to file URLs.
  3. Drag the .md file into the browser window.

This setting lets the extension access local files that you open in the browser. Check the publisher, number of users, reviews, and requested permissions before enabling it.

Markdown support varies by extension. Managed work PCs may also prevent you from installing browser extensions.

Option 4: Open the .md file with VS Code or another editor

Option 4: Open the .md file with VS Code or another editor. Open the file, then press Ctrl+Shift+V to show the Markdown preview. Use an editor when you need to change the file

Use an editor such as Visual Studio Code (VS Code) when you need to change the Markdown. Open the .md file in VS Code and press Ctrl+Shift+V to switch to the formatted preview.

The current built-in Markdown preview in VS Code supports headings, tables, code, Mermaid diagrams, and math. You can place the editor and preview side by side to see changes as you work.

Can LibreOffice open an .md file?

LibreOffice 26.2 added Markdown import and export. In Writer, choose File > Open, select the .md file, and edit it as a Writer document. Formatting support differs between apps, so check documents that rely on extensions such as Mermaid diagrams or LaTeX-style math before saving changes.

VS Code includes many tools intended for software development, so it can feel busy when all you want to do is read. Choose a dedicated viewer for reading, a browser extension when you cannot install a desktop app but are allowed to add an extension, and VS Code when you need to edit.

Which option should you choose?

Use this flowchart to narrow down the choice.

Flowchart for choosing how to open an .md file. Choose an editor if you need to make changes. For reading only, choose Notepad, a dedicated viewer, or a browser extension based on whether you need code, diagrams, or math rendered and whether you can install a desktop app

The table shows the main differences.

Option Best for Formatted view Setup
Notepad Checking the text now Partial. Support varies by version; code, diagrams, and math are not fully formatted None
Simple MD Viewer Reading and printing documents Tables, code, supported Mermaid diagrams, and math Install from Microsoft Store
Browser extension Reading without another desktop app Varies by extension Install the extension and allow local file access
Editor, such as VS Code Editing and writing Built-in preview supports tables, code, Mermaid diagrams, and math Install the editor; some familiarity with its interface helps

What to check when an .md file will not open correctly

Three common .md file problems and fixes. Change the default app when the wrong app opens, check text encoding when characters look garbled, and reveal file extensions to find an .md.txt double extension

  • The wrong app opens when you double-click: Change the default app. Right-click the .md file, select Open with > Choose another app, choose the app you want, and select Always.
  • The text looks garbled: The file may use an older text encoding instead of UTF-8. Try another app, or ask the sender to export the file as UTF-8.
  • Windows does not recognize it as a Markdown file: The full name may be report.md.txt. In File Explorer, turn on View > Show > File name extensions, and check the actual extension.

Summary

  • Use Notepad when you need to check the text immediately.
  • Use a dedicated viewer when you want a clean reading or printing view.
  • Use VS Code or another editor when you need to change the file.

An .md file is text, so opening the contents is straightforward. Being able to open the file is not the same as seeing every table, code block, or diagram in a readable layout. Once you choose an app for the way you work, the next Markdown file you receive will be much easier to handle.

FAQ

Can I open an .md file in Word or Notepad?

Yes. Notepad can open .md files. The desktop version of Word can also open one as text, but it does not render Markdown as a formatted document. Newer versions of Notepad can format headings, lists, links, and tables, although support varies by version. A Markdown viewer gives you a more consistent reading view for documents that include code, diagrams, or math.

Is it safe to open an .md file?

An .md file is normally a text file, not an app that runs by itself. The app that displays it, links in the document, and externally loaded images still require the usual care. Install viewers from a trusted source such as Microsoft Store, and do not open links you do not trust.

Can I open an .md file on an iPhone or Android phone?

Yes. Apps for both iPhone and Android can open Markdown files. This guide covers Windows, and Simple MD Viewer—the app used in one of the options—is available for Windows only.

Why does a different app open when I double-click an .md file?

The default app for .md files is set to another program. Right-click the file, select Open with > Choose another app, select the app you want, and then select Always. Windows will use that app the next time you double-click an .md file.

How do I open an .md file that ChatGPT or Claude created?

Save the file to your Windows PC, then open it with Notepad for a quick text check or a Markdown viewer for a formatted reading view. Use an editor such as VS Code if you need to change the content. You do not need to rename or convert the .md file first.

What is the best way to view an .md file on Windows without editing it?

Use a dedicated Markdown viewer when you want a clean reading and printing view without editing controls. Notepad is convenient for a quick check, while a viewer is more suitable for files containing tables, code blocks, supported diagrams, or math.

Can LibreOffice open and edit .md files?

Yes. LibreOffice Writer 26.2 and later can open and save Markdown files. Choose File > Open and select the .md file. Formatting can differ for Markdown extensions such as diagrams or math, so check the result before saving changes.

Why does an .md file show #, *, and | symbols?

Those characters are Markdown syntax for headings, lists, and tables. You are looking at the source text rather than a formatted view. Switch to Notepad's formatted Markdown view if your version supports it, or open the file in a Markdown viewer.

About the author

Yuza

Developer of Simple MD Viewer at Vessk Inc.

Developer of Simple MD Viewer, a Markdown viewer for Windows. Articles are based on first-hand testing.

Simple MD Viewer product page

Back to all articles