Markdown Viewer - Drop Files to Preview

Drag and drop Markdown files (.md/.markdown/.txt) or select them with the 'Open File' button to see a live preview. Supports syntax highlighting and math rendering.

📄

Drop a Markdown file here or open a file

Supports .md / .markdown / .txt

What is Markdown Viewer?

Markdown is a lightweight markup language for converting plain text documents into rich text formats like HTML. Created by John Gruber in 2004, it is widely used on platforms like GitHub, Notion, and many documentation tools.

How to Use

  1. Type or paste Markdown text in the left pane
  2. The right pane shows a real-time HTML preview
  3. Click 'Copy HTML' to copy the HTML to clipboard
  4. Click 'Download HTML' to save the output as output.html
  5. Drag and drop .md/.markdown/.txt files to load them

FAQ

Is the HTML sanitized?
Yes. DOMPurify is used to sanitize the output and prevent XSS attacks.
Is syntax highlighting supported?
Yes. highlight.js automatically detects code block languages and highlights them.
What file types can I drop?
You can drop .md, .markdown, and .txt files to load them.
Are tables and checklists rendered?
Yes. GFM (GitHub Flavored Markdown) tables and checklists are supported and rendered correctly.
Is my data sent to a server?
No. All processing is done in the browser. Your input text is never sent to any external server.

Related Tools

Update History

Last Updated: 2026-02-22

  • 2026-02-22 Initial release
  • 2026-02-22 Added file history and fullscreen view