Open a .md file (or drop it here, or paste the text) and read it rendered, the way GitHub shows a README: headings, tables, task lists, links and code blocks. No app to install, and the file stays on your computer. Save the rendered page as HTML or as a PDF.
Open a file: (or drop it on this box) ·
Need a PDF? Copy your Markdown into Markdown to PDF.
Preview
A .md file is plain text with a few conventions (# for headings, * for lists, pipes for tables); nothing in the file says how to draw it. Windows opens it in Notepad and macOS in TextEdit, which show the raw symbols. Sites like GitHub run it through a Markdown parser to turn it into a web page. This viewer does the same in your browser with marked and GitHub-flavored Markdown, so tables, task lists, strikethrough and fenced code look as they would in a repository.
Markdown can contain raw HTML, including scripts. The preview here is a sandboxed frame that can't run scripts, submit forms or open pop-ups, so a hostile file can't do anything. Images and links from public URLs still load.
GitHub Flavored Markdown: headings, emphasis, links and bare URLs, nested lists, task lists, tables with column alignment, block quotes, fenced code blocks, strikethrough, horizontal rules and images. Raw HTML in the Markdown passes through unchanged. Code blocks get a language-js style class from the fence, ready for highlight.js or Prism, but are not colored here. Not part of GFM and left as text: footnotes, math ($…$), Mermaid diagrams and [[wiki links]].
The parser used here is marked. In Node: npm i marked, then import { marked } from 'marked'; const html = marked.parse(markdownText);. From the command line, npx marked -i README.md -o README.html writes the HTML fragment. To turn that HTML into a PDF or a PNG on a server without installing Chromium, send it to the Shotmint API: POST https://shotmint.creasework.com/v1/pdf with {"html": "…"} returns a PDF with selectable text (1 credit; €5 buys 2,000, credits never expire). The Markdown to PDF page has a complete script.
Get 25 free renders a month API docs
Is my text uploaded? No. Parsing and the preview both happen in your browser; this page sends nothing to a server.
Is the HTML output sanitized? No: raw HTML in your Markdown is copied into the output as written, like most Markdown tools do. If you render Markdown written by other people on your own site, run the HTML through a sanitizer such as DOMPurify first.
Why do my images not show? An image needs a public http(s) URL. A relative path like ./img/logo.png only exists next to the file on your computer.
Related: Markdown to HTML, Markdown editor, Markdown to Word, Markdown to PDF, HTML to Markdown, Website to Markdown, Word to Markdown, Google Docs to Markdown, HTML viewer, HTML editor.
HTML viewer · PDF Metadata Viewer · EXIF Viewer · PDF to Markdown · Markdown to PDF · Google Docs to Markdown · Markdown table generator · CSV to Markdown table · HTML to Markdown · Markdown to Word · Markdown to HTML · Website to Markdown · Markdown to DOCX · Markdown Table to CSV Converter · Online Markdown Editor with Live Preview · URL to Markdown · Excel to Markdown Table · Word to Markdown Converter · all free tools