GitHub Flavored Markdown · live preview · table of contents · open and save files
Markdown
Preview
Preview appears here…
Markdown Editor & Live Preview
Free online Markdown preview and editor. Write Markdown in the left pane and see the rendered preview in real time, with a table of contents built from your headings. Open a .md file, save it back, or export a standalone HTML page. Supports GitHub Flavored Markdown — tables, strikethrough, task lists, fenced code blocks. Fully client-side using marked.js.
FreeNo login100% browser-basedYour input never leaves your device
Markdown is a lightweight markup language created by John Gruber in 2004. It uses plain-text syntax (# for headings, ** for bold, - for lists) that converts to clean HTML. It is the standard format for README files on GitHub, documentation sites (Jekyll, Hugo, Docusaurus), and note-taking apps (Notion, Obsidian).
This tool provides a live split-pane preview using the marked.js library. Type Markdown on the left and see the rendered HTML on the right in real time. Supports GitHub Flavored Markdown (GFM) including tables, strikethrough, and task lists. Headings get GitHub-style anchors, and the Contents panel lists them so you can jump around a long document or copy the table of contents as Markdown. Your draft is kept in this browser between visits.
Yes — click the 'Copy HTML' button to copy the raw generated HTML to your clipboard. You can then paste it into any HTML document, CMS, or email template. Headings include id attributes so in-page links work. Raw HTML in your Markdown is kept, but scripts and event handlers are removed (with DOMPurify). To get a complete page, use 'Save .html'.
What is GitHub Flavored Markdown?
GitHub Flavored Markdown (GFM) is a superset of standard Markdown used by GitHub, GitLab, and many developer tools. It adds tables, task lists, strikethrough, fenced code blocks with syntax highlighting, and autolinks. Most developer documentation uses GFM.
What is the difference between Markdown and MDX?
Standard Markdown is plain text with formatting syntax that converts to HTML. MDX (Markdown + JSX) extends Markdown to allow React components inside .mdx files — used in Next.js docs, Gatsby, and component libraries. If you're writing documentation for a React project, MDX is likely what your framework expects.
Why does my Markdown render differently on different platforms?
There is no single Markdown standard — each platform uses a different "flavour". GitHub uses GFM (GitHub Flavored Markdown) which adds tables, task lists, and strikethrough. CommonMark is the most standardised spec. Reddit, Slack, Discord, and Notion all have custom variations. This tool renders GitHub Flavored Markdown, which builds on CommonMark; like GitHub comments, a single line break becomes a line break.
How do I add syntax highlighting to code blocks in Markdown?
Use triple backticks followed by the language name: ```javascript. Supported language identifiers include js, python, css, bash, sql, json, yaml, and dozens more. Rendering engines like Prism.js or highlight.js then apply colour syntax highlighting. GitHub, GitLab, and most Markdown renderers support this syntax. This preview keeps the language name on the code block (as a language-javascript class) but does not colour the code.
Can I use Markdown for SEO content?
Markdown is a writing format, not an HTML delivery format — it must be converted to HTML before browsers can render it. Most CMS platforms (Ghost, WordPress with plugins, Notion, Contentful, Sanity) accept Markdown and convert it to HTML. The resulting HTML is fully SEO-friendly. Use proper heading hierarchy (one H1, then H2/H3) for best results.