Markdown viewer
This Markdown viewer shows an .md file as a formatted page in your browser. Click Open .md file or drag the file onto the Markdown box, and the preview appears beside it. You can also paste Markdown, such as a reply copied from an AI chat.
What the viewer shows
- Headings, lists, tables, links, task lists and strikethrough, formatted with GitHub-flavoured Markdown rules.
- Code blocks with syntax colours for common programming languages.
- Mermaid diagrams. Mermaid is a way to describe a flowchart or other diagram in plain text. A code block labelled mermaid is drawn as that diagram, and if its code has an error, the block stays as plain code.
- A Contents panel with every level 1 to 3 heading. Click a heading to jump to it, and the panel marks the section you are reading.
The preview updates as you type, so you can fix a line and see the result straight away. Copy puts the Markdown on your clipboard, and the .html button saves the formatted page.
Does the online Markdown viewer upload my file?
No. Your browser reads the file from your device and draws the preview on the same page.
Related tools
To write Markdown and export it, use the Markdown editor. To get Markdown out of a document first, try PDF to Markdown or Word to Markdown. If you have been sent an .md file and aren't sure what it is, read what an MD file is.
Frequently asked questions
Is this md viewer free?+
Yes. The viewer is free and needs no account.
Which files can the viewer open?+
Files ending in .md, .markdown or .txt. A text file with Markdown inside renders the same way as an .md file.
Can I view a Markdown file on my phone?+
Yes. Open this page in your phone's browser, tap Open .md file and choose the file. On a small screen the preview appears under the Markdown box.
Can I edit or export the Markdown?+
You can edit the text in the Markdown box and download the formatted page as an .html file. To save it as Word (.docx) or PDF, paste it into the Markdown editor.