Markdown Editor
Write and preview Markdown with live rendering and toolbar
Markdown
Characters count UTF-16 code units; words count whitespace-separated tokens, including Markdown syntax.
Markdown quick reference
- Heading 1
# Heading 1- Heading 2
## Heading 2- Bold
**bold**- Italic
*italic*- Link
[link](url)- Image
- Inline code
`inline code`- Code block
```code block```- Unordered list
- unordered list- Ordered list
1. ordered list- Blockquote
> blockquote- Horizontal rule
--- horizontal rule
Preview & HTML
Preparing preview…
About this preview
- This is the original basic parser with reviewed fixes. GitHub and other Markdown renderers can produce different results.
- Fenced and inline code remain literal. No language-specific syntax highlighting is provided.
- External image URLs load from their hosts with no referrer; those hosts receive the image request. The sample image is local.
- HTML is filtered before preview and HTML copying. Markdown copying and saving keep your source text.
- Copy HTML places HTML source text on the clipboard; a rich-text editor may paste it as text.
- The editor does not auto-save. Download your document before leaving this page.
About the Markdown Editor
Our Markdown editor is a free online tool that provides a live side-by-side editing and preview experience for writing Markdown documents. Markdown is a lightweight markup language widely used for documentation, README files, blog posts, technical writing, and note-taking. This editor lets you write Markdown on the left and instantly see the rendered HTML output on the right.
The editor includes a full-featured toolbar for quickly inserting common Markdown syntax such as headings, bold, italic, links, images, code blocks, lists, blockquotes, and horizontal rules. You do not need to memorize Markdown syntax to get started. Simply click the toolbar buttons to insert formatting at your cursor position, or type Markdown directly if you prefer.
Your document is never uploaded. Images you link from other websites are loaded from those sites for the preview. The editor supports real-time preview, character and word counting, clipboard copying for both Markdown and HTML output, and direct file download as a .md file.
Key Features
- Live side-by-side Markdown editing and HTML preview with instant rendering
- Full toolbar with buttons for bold, italic, headings (H1-H3), links, images, code blocks, lists, blockquotes, and horizontal rules
- Inline Markdown-to-HTML parser supporting headers, emphasis, code, links, images, lists, blockquotes, and horizontal rules
- Real-time character count and word count displayed above the editor
- Copy the Markdown source to the clipboard for a README or a pull request
- Copy rendered HTML to clipboard for pasting into web pages or email editors
- Download your document as a .md file for local storage and version control
- Clear button to start fresh with an empty editor
- Quick reference card showing common Markdown syntax at a glance
- Responsive layout that stacks editor and preview on mobile devices
- Full dark mode support for comfortable editing in any lighting condition
- Default sample content demonstrating all supported Markdown features
How to Use the Markdown Editor
- Start writing: The editor loads with sample content showing all supported Markdown features. Clear it to start fresh, or modify the sample to see how each syntax element works.
- Use the toolbar: Click any toolbar button to insert the corresponding Markdown syntax at your cursor position. Select text first to wrap it with formatting like bold or italic.
- Preview instantly: As you type, this basic parser updates a filtered preview. Target Markdown renderers can differ, so check formatting on the destination before publishing.
- Check your stats: The character and word counts update live above the editor, helping you track document length for requirements or word limits.
- Copy or download: Use the "MD" button to copy your raw Markdown, the "HTML" button to copy the rendered HTML, or the "Save" button to download your document as a .md file.
Supported Markdown Syntax
- Headings: Use # for H1, ## for H2, ### for H3, and #### for H4. Each heading level creates progressively smaller text with appropriate spacing.
- Bold and Italic: Wrap text in **double asterisks** or __double underscores__ for bold, and *single asterisks* or _single underscores_ for italic.
- Links: Create clickable links with [link text](URL) syntax. Links open in a new tab for convenience.
- Images: Embed images with  syntax. Images are displayed responsively with rounded corners.
- Code: Use backticks for inline code and triple backticks for multi-line code blocks. Code has a styled background; language-specific syntax highlighting is not provided.
- Lists: Start lines with - or * for unordered bullet lists, and 1. for ordered numbered lists.
- Blockquotes: Start a line with > to create a styled blockquote with a blue left border accent.
- Horizontal Rules: Use ---, ***, or ___ on a line by itself to create a visual separator between sections.
- Line Breaks: Use double newlines to create paragraph breaks, or single newlines within paragraphs for line breaks.
Use Cases
- README Files: Draft README.md files with this basic preview, then confirm rendering on GitHub. This parser does not implement the complete GFM specification.
- Technical Documentation: Create documentation for APIs, libraries, and software projects with proper formatting, code blocks, and structured headings.
- Blog Posts: Draft blog content in Markdown format, preview the layout, then copy the HTML to paste into your content management system.
- Note-Taking: Use Markdown for structured notes during meetings, lectures, or research. Download notes as .md files for organized storage.
- Email Formatting: Write content in Markdown and copy filtered HTML source text. Use an HTML-aware editor or import workflow; a rich-text editor may paste source as plain text.
- Learning Markdown: Use the toolbar buttons and quick reference to learn Markdown syntax interactively with instant visual feedback.
- Content Migration: Convert Markdown content to HTML for embedding in websites, wikis, and knowledge base systems.
Frequently Asked Questions
What Markdown features are supported?
The basic parser supports H1 to H4, emphasis, links, images, code, simple lists, blockquotes, horizontal rules and paragraphs with line breaks. Complex nesting and GFM extensions are not fully implemented.
Can I use this for GitHub README files?
You can draft a README.md here, then copy or save the Markdown and check it on GitHub. This basic parser is not a complete GFM renderer; features such as tables, task lists and strikethrough can render differently.
Can I export to HTML?
Copy HTML source places filtered HTML text on the clipboard. Paste it into an HTML-aware editor or import it as source; rich-text editors may display the markup as text.
Does the editor work on mobile devices?
Yes, the editor is fully responsive. On smaller screens, the editor and preview panels stack vertically instead of side by side, ensuring a comfortable editing experience on phones and tablets.
Tips & Best Practices
- Use headings for structure: Organize your documents with a clear heading hierarchy. Start with H1 for the title, H2 for major sections, and H3 for subsections.
- Preview as you write: Keep the preview panel visible to catch formatting issues early and ensure your document looks exactly how you intend.
- Select text before formatting: Highlight text in the editor before clicking a toolbar button to wrap the selected text with the chosen formatting.
- Use code blocks for technical content: Wrap code snippets, commands, and configuration examples in code blocks to preserve formatting and improve readability.
- Save frequently: Use the download button to save your work as a .md file. Markdown files are plain text and can be opened in any text editor.
- Learn Markdown syntax: Use the toolbar or type Markdown syntax directly, such as ** for bold and * for italic. This source editor does not define dedicated formatting keyboard shortcuts.