Markdown Viewer
Open a Markdown file and read it formatted, with its headings listed beside it, in your browser with nothing to install, while the file never leaves your device.
How to view a Markdown file
Open the file
Choose Open .md file, or drop a .md, .markdown or .txt file on the page. Add its PNG or JPEG images with it, or the whole folder, to see them in place.
Read it
The file opens in a reading view, with an Outline of its headings beside it. Choose a heading in the outline to go to it.
Edit it if you need to
Choose Edit to change the text and see the result, and Reading view to go back. Download .md saves your changes as a file.
Keep a copy
Download PDF and Print / Save as PDF are there when you need a copy to send or print.
To make a PDF from the start, with page size, margins and page breaks, use Markdown to PDF.
A Markdown viewer that runs in your browser
Many Markdown viewers are something to install: a browser extension, an app from an app store or an editor plugin. This one is a web page. Open it, add the file, and the file is read by your browser on your own device. Nothing is uploaded, and once the page has loaded it works with no internet connection.
It renders what Markdown can hold: headings, bold and italic text, lists, block quotes, links, images, tables, task lists, strikethrough, footnotes, code in the colors of its language, and math written in LaTeX between $ signs, typeset with KaTeX.
Markdown viewer for Mac and Windows
The viewer is a web page and the file is read inside the browser, so there is nothing to install on a Mac, a Windows PC, Linux or a Chromebook. You need no administrator rights and no app store account. Its tests run in Chrome, Firefox and WebKit, the engine of Safari.
Each system also has a text editor that opens a .md file: Notepad on Windows and TextEdit on a Mac. TextEdit shows the Markdown as written, with its # and * marks, and newer versions of Notepad on Windows 11 can show it formatted. How to open an MD file gives the steps for each, for VS Code and for Google Docs.
Open a README.md file
A README.md is the Markdown file that describes a software project. GitHub's documentation says that when a README is in a repository's root, docs or hidden .github folder, GitHub shows it to visitors. A README you downloaded, or found in a folder on your computer, opens here like any other .md file.
READMEs often show screenshots by relative paths such as docs/screenshot.png. Drop the README together with that folder and the PNG and JPEG images in it appear in place. Images linked from other websites stay off until you choose Load remote images.
Markdown preview while you edit
Choose Edit and the Markdown text opens beside the page (on a narrow screen, under its own tab). The preview changes as you type, so you see the result of each edit.
The site keeps no drafts: what you type is not saved by the site or stored in your browser. Choose Download .md to keep your changes. If you try to leave the page with text you have not saved, your browser asks first.
Nothing in a Markdown file can run
Markdown can contain HTML, including scripts. The viewer removes scripts, event handlers and javascript: links before it shows the file, and it shows the file in a separate frame where scripts are switched off. Images from other websites are not loaded until you choose to load them, so opening a file contacts no other website. How it works describes both protections and the tests behind them.
Save the file as a PDF or as HTML
Download PDF saves the file as a PDF with real, selectable text and the headings as bookmarks. Print / Save as PDF prints the page you see, and is the better choice for a file with math. To get the file as HTML code, use Markdown to HTML.
Frequently asked questions
How do I view my Markdown file?
Open this page and choose Open .md file, or drop the file on it. It opens formatted in your browser, with an outline of its headings. Nothing is installed or uploaded.
What program opens a .md file?
Any text editor, because a .md file is plain text: Notepad on Windows and TextEdit on a Mac open it. To see it formatted, use a Markdown viewer such as this page, or an editor with a preview such as VS Code.
Is an MD file safe to open?
A .md file is text, but Markdown can contain HTML, so a viewer should not run what is in it. Here scripts in the file never run, and images from other websites stay off until you load them. Links still need your judgment: read the address before you open one.
Is an MD file the same as a TXT file?
Both are plain text. A .md file is text written in Markdown, so its # signs, asterisks and dashes are meant to be read as headings, emphasis and lists. A text editor shows the marks; a Markdown viewer shows the formatting.
How do I preview Markdown in Visual Studio Code?
VS Code's documentation gives two shortcuts: Ctrl+Shift+V (⇧⌘V on a Mac) switches the editor between the text and the preview, and Ctrl+K V (⌘K V on a Mac) shows the preview beside the text. This page needs no editor installed.
Can I open a Markdown file on my phone?
The viewer is a web page, so a phone's browser can open it, and its layout is tested at a phone's screen width. It has not been tested on real phones yet.
Is my file uploaded?
No. The file is read in your browser and never leaves your device. The site counts visits with Google Analytics, which never receives your text, your files or their names.