How to use it
- Paste Markdown into the editor, open a
.mdfile, or drop one anywhere on this page. - Pick a view. Write shows the source, Split shows the source beside the preview, and Read shows the document with a contents list. An opened file starts in Read.
- Export when it reads right: PDF, HTML, Word or .md. Copy HTML puts the rendered HTML on the clipboard for a CMS or an email.
What stays on your device
The viewer is JavaScript that does all of its work in this browser tab.
- The file is read by your browser and rendered here. No request carries your text, which you can confirm in the browser's network panel. Like every page on this site, the page records an anonymous visit, which sends its own address and nothing you open.
- The text is kept in this browser's local storage, so it is still there when you come back. Clear removes it. A document over 2 MB is not kept.
- The preview runs in a sandboxed frame with scripts turned off, and raw HTML in the file is cleaned with DOMPurify before it is shown, so a file cannot run code on this page.
- Images with a full
https://address load from their own servers, as they would in any viewer. A relative path such as./images/chart.pngpoints into a folder this page cannot see, so those images and links are shown as text and not requested.
What it renders
It reads CommonMark and the GitHub Flavored Markdown extensions in everyday use: tables, task lists, strikethrough, and web addresses that become links on their own.
- Headings, paragraphs, lists, quotes, links, images, inline code and fenced code blocks.
- Syntax highlighting for fenced code that names its language, such as
```python, in the 36 languages of highlight.js's common set, including JavaScript, TypeScript, Python, Go, Rust, Java, C#, SQL, Bash, YAML and JSON. - YAML front matter at the top of a file, between
---lines, shows as a folded box and is left out of the PDF and the Word file. - Raw HTML in the file, once cleaned:
<details>,<kbd>,<sup>and similar tags stay, while scripts, styles, forms andstyleattributes are removed.
Footnotes, maths written in LaTeX and Mermaid diagrams are not drawn yet; they show as the text you typed.
Exporting to PDF, HTML or Word
- PDF opens the print dialog with the document alone. Choose "Save as PDF" as the destination (Firefox calls it "Save to PDF") and turn off headers and footers for a clean page. The browser prints real text, so the PDF stays searchable and its links still work. Code and table shading print without changing any setting.
- HTML saves one file with its styles inside and no script. It opens in any browser, attaches to an email, and can go straight onto a web server. Headings keep their ids, so links such as
#installationkeep working. The file is marked with the document's language: alang:line in the front matter (lang: fr), or else your browser's. - Word builds a
.docxfile in your browser. Headings become Word headings, so the navigation pane and a table of contents work, and lists (with their numbering and nesting), tables, code, quotes and links carry over. Images are replaced by their alt text. - .md saves the source as you edited it.
Opening an .md file elsewhere
A .md file is plain text, so any text editor opens it, but most show the raw symbols rather than the formatted document.
- VS Code: open the file and press Ctrl+Shift+V (Cmd+Shift+V on a Mac) for a preview, or Ctrl+K then V (Cmd+K then V) for a preview beside the source.
- GitHub and GitLab render any
.mdfile in a repository when you open it, which is why a README reads as a page there. - This page suits the other cases: a file someone emailed you, notes exported from an app, an answer an AI assistant wrote in Markdown, or the
.mdcopy of one of our free templates.