Markdown Editor

Write Markdown with live preview. Supports headers, bold, italic, links, images, code blocks, tables, and more. Export as HTML.

Markdown0 chars
Preview

How to Use the Markdown Editor

  1. Type Markdown — Write in the left panel using Markdown syntax (headers, bold, lists, links, code blocks).
  2. See live preview — The right panel shows the rendered HTML in real time.
  3. Copy or download — Export as Markdown (.md) or HTML file.

Markdown is a lightweight markup language used by GitHub, Reddit, Stack Overflow, and many other platforms. This editor supports GitHub Flavored Markdown (GFM) including tables, task lists, and fenced code blocks.

Document ${marked.parse(editor.value)}`; const blob = new Blob([html], {type:'text/html'}); const a = document.createElement('a'); a.href = URL.createObjectURL(blob); a.download = 'document.html'; a.click(); } function clearEditor() { editor.value = ''; updatePreview(); } TB.initToolPage({ name: 'Markdown Editor', category: 'Dev Tools', related: [ { name: 'JSON Formatter', url: '/tools/json-formatter/', icon: '{}', iconBg: '#f0fdf4', desc: 'Format JSON' }, { name: 'Word Counter', url: '/tools/word-counter/', icon: '\uD83D\uDCDD', iconBg: '#eef2ff', desc: 'Count words' }, { name: 'Base64 Encoder', url: '/tools/base64-encoder/', icon: '\uD83D\uDD12', iconBg: '#eef2ff', desc: 'Encode Base64' }, { name: 'Color Picker', url: '/tools/color-picker/', icon: '\uD83C\uDFA8', iconBg: '#fce7f3', desc: 'Pick colors' }, { name: 'Case Converter', url: '/tools/case-converter/', icon: 'Aa', iconBg: '#fef3c7', desc: 'Convert text case' }, ], faqs: [ { q: "What is Markdown?", a: "A lightweight markup language using symbols like # for headings, ** for bold, * for italic. Widely used in GitHub, docs, and blogging." }, { q: "Can I export Markdown to HTML?", a: "Yes, this editor shows a live HTML preview. You can copy the rendered output for use in websites or emails." }, { q: "What syntax is supported?", a: "Headings, bold, italic, links, images, code blocks, blockquotes, lists, horizontal rules, and tables." } ] });