Markdown Editor with Live Preview
Write Markdown with a formatting toolbar and see the rendered HTML preview in real time
Type Markdown on the left, see the rendered HTML on the right — updated with every keystroke. The toolbar handles syntax you’d rather not memorize (table pipes, fenced code blocks, image links), and you can grab the finished file as .md or .html with one click.
Powered by marked.js with full GitHub Flavored Markdown support, including task lists, strikethrough, and auto-linked URLs. And everything runs in your browser. Nothing gets uploaded.
How It Works
As you type in the left pane, the editor sends your text through marked.js — a fast Markdown parser that supports GitHub Flavored Markdown. The parsed HTML appears in the right pane within 100 milliseconds. No server round-trip, no waiting. The toolbar inserts the correct syntax at your cursor position so you don’t have to memorize pipe characters for tables.
Examples
Formatting a README header
You’re setting up a new GitHub repo and need a clean README with a title, description, and feature list.
# My Project
A **fast** static site generator built with Node.js.
## Features
- Hot reload
- Markdown support
- Zero config
Rendered <h1>, bold text, <h2>, and a clean <ul> with three items — ready to paste or download.
Building an API docs table
Tables in Markdown are notoriously annoying to type by hand. The toolbar button scaffolds the structure for you.
| Method | Endpoint | Description |
|--------|----------|-------------|
| GET | /users | List users |
| POST | /users | Create user |
| DELETE | /users/:id | Remove user |
A properly aligned HTML <table> with headers and three data rows. Columns line up perfectly in the preview.
Mixing code blocks with explanations
Writing a tutorial where you need fenced code blocks next to regular text. Hard to tell if your backticks are right without a preview.
Install the package:
```bash
npm install marked
```
Then import it:
```js
import { marked } from 'marked';
const html = marked.parse('# Hello');
```
Two distinct <pre><code> blocks with language labels, separated by a paragraph. Verify formatting before pasting into your docs.
Who Uses This
Drafting README files, changelogs, and pull request descriptions before pushing to GitHub.
Writing product docs and API guides in Markdown, then exporting as HTML for publishing.
Formatting lab reports and notes with headings, lists, and code snippets for class submissions.
Writing posts in Markdown for platforms like Jekyll, Hugo, or Ghost that accept .md files directly.
Common Mistakes
If you type a paragraph and immediately start a list with - on the next line, some parsers won’t render the list. Always leave one empty line between a paragraph and the first list item.
Single backticks (`) are for inline code only. For blocks of code, use triple backticks (```) on their own lines above and below. The preview will show you right away if you mixed them up.
##Heading won’t render as a heading. You need ## Heading with a space after the hashes. Quick to miss, easy to fix — the preview catches it instantly.
Technical Details
- Processing: 100% client-side — nothing uploaded
- Parser: marked.js with GitHub Flavored Markdown (GFM)
- Browser Support: Chrome, Firefox, Safari, Edge
- Export Formats: .md (raw Markdown) and .html (rendered)
- Preview Delay: 100ms debounce for smooth typing
Frequently Asked Questions
What is Markdown used for?
Markdown is used for writing formatted documents in plain text. GitHub README files, documentation sites, blog posts, forum comments, and note-taking apps like Obsidian all use it. The syntax is simple enough that the raw file is still readable without any rendering.
Can I write HTML inside Markdown?
Yes. Markdown passes through HTML tags untouched, so you can drop in a <details> block, a <div>, or inline styling whenever the Markdown syntax falls short. Most parsers handle this fine, and this editor shows you the result in the preview pane.
How do I make a table in Markdown?
Use pipes (|) to separate columns and hyphens (---) for the header row divider. It looks like | Col 1 | Col 2 | on one line, then |---|---|, then your data rows. Or just click the table button in the toolbar — it scaffolds the whole thing for you.
Is my text stored anywhere?
No. Everything happens in your browser. Your text is not sent to a server, saved in a database, or stored in cookies. When you close or refresh the tab, your content is gone unless you downloaded it first.
What is GitHub Flavored Markdown?
GFM is GitHub’s extended version of standard Markdown. It adds tables, strikethrough text (~~like this~~), task lists with checkboxes, fenced code blocks with language hints, and auto-linking of URLs. This editor has GFM turned on by default, so everything you write here will render the same way on GitHub.