Markdown Viewer
Open a .md file and read it as a page, the way GitHub shows it, with tables, math and diagrams. Nothing leaves your browser.
- 0
- Words
- 0
- Min read
- 0
- Issues
On this page
About the Markdown Viewer
Updated
A README, a changelog, docs from a project or notes from an app: open the .md file here and read it as a page. The source stays next to the page (above it on a phone), so you can fix a typo, and the page changes at once. To write more than a line or two, the Markdown Editor gives the source more room.
How to use it
- Click Open file, drop a file on the page, or paste Markdown.
- Read it in Preview. Scroll the source, and the page scrolls with it.
- Open Summary for the word count and reading time, and Notes for links and headings that will not work.
- Click Print or PDF to save the page as a PDF, or open HTML and click Download.
What it shows
- Headings, lists, links, images, quotes and code blocks, as on GitHub.
- Tables, task lists, strikethrough and footnotes.
- Math between
$signs, drawn with KaTeX, and diagrams inmermaidcode blocks, drawn with Mermaid. - GitHub alerts such as
> [!TIP], and emoji codes such as:tada:. - Front matter at the top of a docs or blog file, as a small table and not as a heading.
Safe to open
A Markdown file can hold HTML, and HTML can hold a script. The viewer takes out scripts and event attributes, and it draws the page in a frame where no script can run. One of the five viewers we tested ran a script from the file.
What is an MD file?
An .md file is a text file written in Markdown. Marks such as # for a heading, * for a list and [text](address) for a link tell a viewer how to draw the page. Projects use a README.md as their front page, and docs sites, wikis and note apps keep their pages in .md files. The same files also end in .markdown, .mdown or .mdx.
Markdown resources
- CommonMark SpecificationThe exact rules for Markdown syntax that most tools follow today.
- GitHub Flavored Markdown SpecCommonMark plus tables, task lists, strikethrough and autolinks, as GitHub draws them.
- GitHub Docs: Basic writing and formatting syntaxAlerts, footnotes, task lists and the other GitHub extras, with examples.
- Markdown Guide: Cheat SheetEvery common Markdown mark on one page.
- Mermaid: Diagram syntaxFlowcharts, sequence, state and Gantt diagrams written as text.
- KaTeX: Supported functionsThe LaTeX math commands that the preview draws.
Markdown Viewer FAQ
How do I open an MD file?
Click Open file and pick the file, or drop it on the page. It shows at once as a page, next to the source. An .md file is plain text, so any text editor opens it too, but you then see the marks (#, **, |) and not the page.
Is my file uploaded?
No. The file is read by your browser and stays on your computer. Nothing is sent to a server, and there is no account. The page loads images from other sites by default, so for those only the image address goes out. Switch off Load outside images in the Result header to stop that.
Will it look the same as on GitHub?
Very close. The viewer follows GitHub Flavored Markdown and draws GitHub's extras: alerts, footnotes, task lists, math and Mermaid diagrams. Links to files in the same repository (docs/setup.) do not open here, because the viewer has only the one file.
Can I view a Markdown file in Chrome without an extension?
Chrome shows a local .md file as plain text. To see the page, open this viewer and drop the file on it. It works the same in Chrome, Edge, Firefox and Safari, and on a phone.
How do I convert Markdown to PDF?
Open the file, click Print or PDF under the preview, and choose Save as PDF as the printer. Code blocks, tables and diagrams stay on one page where they fit.
Can it open large files?
Yes. The viewer draws a big file in parts: the first screen shows at once, and the rest follows while you read. A 5 MB file does not freeze the page. Other online viewers we tried stopped for more than 45 seconds on the same file.