Markdown Viewer

Open a .md file, drop it here, or paste an answer from ChatGPT, Claude or Gemini, and it shows as a clean page with headings, tables, checklists and code. Then copy it into Word or Google Docs with the formatting, save it as an .html file, or print it to PDF. The text never leaves your browser.

  1. 1Open or paste
  2. 2Read the page
  3. 3Copy, save or print

1Paste Markdown or open a file

Or drop a .md file on this box. Files stay on your device.

2Preview

Need page size and margins? Use Markdown to PDF.

Your file stays in your browser; it is not uploaded. No cookies unless you accept: what we count.

How to open a .md file

  1. Press Open .md file and pick the file, or drop it on the left box. Files ending in .md, .markdown and .txt work, up to 5 MB.
  2. Or paste an AI chat answer. If the chat app copied it as Markdown, you will see **, # and | signs on the left and a clean page on the right. Tick Keep single line breaks if lines run together.
  3. Copy, save or print. Copy as rich text keeps bold, headings, lists and tables for Word, Google Docs or an email. Download .html saves a page that opens in any browser. Print / Save as PDF uses your browser's print window.

On a phone, the switch at the top flips between the Markdown and the preview, so the preview is never hidden.

What we tested

On 10 November 2026, in Chromium 156 on macOS, we checked these with our sample file and a test file:

MarkdownResult
Headings, bold, italic, lists, quotes, rulesShown as formatted text
Tables, with right-aligned columnsShown as a table; alignment kept
Task lists - [x]Shown as ticked or empty boxes you cannot change
Fenced code blocksShown in a monospace box, no colour highlighting
<script> tags, onerror= and onclick= attributes, javascript: linksRemoved before the page shows them; no script ran
Images from a web addressNot fetched; a labelled box shows instead
Copy as rich textThe clipboard held HTML with the headings, table and list, and a plain-text copy
Print / Save as PDFOnly the document printed: no site menu, buttons or footer

The page reads Markdown with marked 18.1.1 (GitHub Flavored Markdown) and cleans the result with DOMPurify 3.4.17. Both run from this site; see open-source licenses.

Common problems

  • I see stars and hash signs, not formatting. That is the Markdown itself; look at the preview on the right, or press Preview on a phone.
  • Lines from the chat run into one paragraph. Markdown joins lines that have no blank line between them. Tick Keep single line breaks.
  • An image shows as a grey box. We do not load images from other sites, because that would tell the site you opened the file. Pictures stored inside the file as data still show.
  • Maths or diagrams show as code. LaTeX maths and Mermaid diagrams are not drawn yet; they stay as text.

Honest limits

  • No colour highlighting in code, no maths and no diagrams.
  • How a pasted page looks in Word or Google Docs depends on that app; we checked what reaches the clipboard, not every app.
  • Your text is not saved. If you close the tab, it is gone; download it first.
  • The file is read in your browser and is never uploaded.

Created by Saad Danish. Tested in Chromium 156 on macOS on 10 November 2026 with our sample file and a file of unsafe HTML.
Last checked 10 November 2026.

Report a problem or suggest a feature

More free tools