Free Markdown Viewer

Upload a .md file or paste Markdown from ChatGPT, Claude or a README and read it as a clean page. Tables, code, diagrams and math all render, and nothing leaves your browser.

Runs on your device. Files are never uploaded.
Preview

Paste Markdown, upload a .md file, or try the Sample to see the preview here.

Download PDF opens your print dialog. Choose “Save as PDF” as the printer.

Why use it

Read Markdown the Way It Was Meant to Look

Raw Markdown is full of symbols. Paste it or open the file and get a clean, readable page in one step.

Renders what AI and docs write

Built for the files ChatGPT, Claude, Cursor and README pages produce.

  • GitHub Flavored Markdown
  • Tables and task lists
  • Code with syntax highlighting
  • Mermaid diagrams and LaTeX math

Take it with you

Copy or save the result in the format you need.

  • Copy HTML or formatted text
  • Download as an HTML file
  • Download as PDF
  • Upload or drag and drop .md files

Private and free

No sign-ups or paywalls. Your files stay on your device.

  • Nothing is uploaded
  • No account needed
  • Unsafe HTML is removed
  • Works on any device

How to view a Markdown file

  1. Upload or paste

    Click Upload .md, drop a file on the editor, or paste Markdown into the box.

  2. Read the preview

    The rendered page updates as you type. Use Split, Write or Preview to change the layout.

  3. Copy or download

    Copy HTML, copy formatted text, or download the page as HTML or PDF.

What the viewer supports

FeatureYou typeYou get
Headings## TitleA section heading
Bold and italic**bold** and *italic*bold and italic text
Strikethrough~~old~~Crossed-out text
Tables| A | B |A formatted table
Task lists- [x] DoneA checked box
Code blocks```jsHighlighted code
Mermaid diagrams```mermaidA flowchart or diagram
Inline math$E = mc^2$A formatted formula
Block math$$ ... $$A centered formula

Mermaid diagrams and math

Start a code block with the word mermaid and write your diagram inside it. The viewer draws it as a chart. If the syntax has a mistake, you see an error message in place of the diagram.

Wrap math in single dollar signs for a formula inside a sentence, or double dollar signs for a formula on its own line. Math is typeset with KaTeX.

```mermaidFlowchart, sequence or Gantt chart
$a^2 + b^2 = c^2$Inline formula
$$ ... $$Centered block formula

Privacy and safety

  • Files and text are read and rendered in your browser. Nothing is uploaded.
  • Scripts, event handlers and unsafe links in your Markdown are removed before the preview is shown.
  • Your text is saved only in this browser, and Clear removes it.
  • Exported HTML loads the math stylesheet from a public CDN. Everything else is inside the file.

More free tools

Frequently Asked Questions

Free, private, runs in your browser.

Is my file uploaded anywhere?

No. Files and text are read and rendered in your browser. Open your browser’s network tab while you use the tool and you’ll see no requests carrying your content.

Which files can I upload?

Markdown files (.md, .markdown, .mdown, .mkd) and plain .txt files, up to 5 MB. You can click Upload .md or drop a file on the editor.

Does it support GitHub Flavored Markdown?

Yes. Tables, task lists, strikethrough, autolinks and fenced code blocks all render the way they do on GitHub.

Which languages get code highlighting?

About 35 common languages, including JavaScript, TypeScript, Python, Java, C, C++, C#, Go, Rust, PHP, Ruby, SQL, HTML, CSS, JSON, YAML, Bash and Markdown. Add the language after the opening fence, like ```python.

How do I add a Mermaid diagram?

Open a code block with ```mermaid, write your diagram, and close the block. Flowcharts, sequence diagrams, Gantt charts and more are supported. A syntax mistake shows an error instead of the diagram.

How do I write math?

Use $...$ for a formula inside a sentence and $$...$$ on separate lines for a centered formula. Math uses LaTeX syntax and is rendered with KaTeX.

How do I save the preview as a PDF?

Click Download PDF. Your browser’s print dialog opens, and you choose “Save as PDF” as the printer. Only the preview is printed, in light colors.

What is the difference between Copy HTML and Copy formatted?

Copy HTML copies the HTML code, which you can paste into a CMS or an editor’s code view. Copy formatted copies the rendered page as rich text, so it keeps its look when you paste into Word, Google Docs or email.

Is HTML inside my Markdown safe?

Safe HTML such as details, tables and images works. Scripts, inline event handlers and javascript: links are removed before the preview is shown.

Will I lose my text if I refresh?

No. Your text is saved in this browser until you press Clear. Very large files are not saved.

Keep reading

From the AlloyPress blog

Last updated 2026-11-18 · Built and tested by the AlloyPress team · How we test