Format Code Now
/

Markdown Editor with Live Preview

WM-122

Write Markdown on the left and see the formatted page on the right as you type. The toolbar adds headings, links, lists, tables and code blocks around your selection.

Runs in your browser. Nothing is uploaded.

Markdown

Your draft is saved in this browser only. Clear removes it.

Preview

How to use it

  1. Type or paste Markdown, open a .md file, or press Sample to see an example.
  2. Select text and use the toolbar for bold, italic, headings, links, lists, quotes, code or a table.
  3. Check the Preview tab, or open the HTML tab to see the converted HTML.
  4. Save the Markdown as a .md file, or copy or download the HTML.

What the preview supports

The preview uses the marked library with GitHub Flavored Markdown turned on. Headings, emphasis, links, images, block quotes, ordered and unordered lists, task lists with checkboxes, tables, strikethrough, fenced code blocks and bare web addresses all render. Footnotes, math and diagram blocks are not rendered, and code blocks are not colored by language. Tick Line breaks as in GitHub comments if a single new line should break the line, as it does in issue comments.

Raw HTML stays off by default

Markdown allows HTML tags inside the text. Here those tags are shown as text until you tick Show raw HTML in preview. Even then, the preview is drawn in a sandboxed frame where scripts cannot run and forms cannot be sent. The HTML you copy or download is not cleaned, so if you put Markdown from someone else on a web page, run it through an HTML sanitizer first.

How the toolbar treats selections

Bold, italic and strikethrough wrap the selection, and pressing the same button again removes the markers. When the selection spans several lines, each line is wrapped on its own, because emphasis cannot cross a blank line. Heading, quote and list buttons work on every selected line, number ordered lists in order and replace one list style with another. Inline code picks a longer fence when the code already holds backticks.

Questions people ask

Does it work like GitHub Markdown?

Mostly. Tables, task lists, strikethrough, fenced code blocks and autolinks follow GitHub Flavored Markdown. GitHub adds extras the preview does not have, such as footnotes, alerts, math, Mermaid diagrams, emoji shortcodes and links to issues, and it styles the page differently.

Why does my HTML show up as text?

Raw HTML is shown as text until you tick Show raw HTML in preview. This keeps pasted HTML from changing the page you are looking at. When you tick it, the HTML renders inside a sandboxed frame where scripts still cannot run.

Can I export the result as HTML?

Yes. Open the HTML tab to see the converted HTML, or press Copy or Download while the Preview tab is open. You get the body content only, with no page styles. That HTML is not sanitized, so clean it before you publish Markdown that someone else wrote.

Are keyboard shortcuts supported?

Yes. Ctrl+B makes the selection bold, Ctrl+I makes it italic and Ctrl+K turns it into a link, with Cmd in place of Ctrl on a Mac. Toolbar changes go through the browser's own editing, so Ctrl+Z undoes them like ordinary typing.

Is my text saved or uploaded?

Nothing is uploaded. The editor runs in your browser, and your draft is saved only in this browser's local storage so it is there when you come back. Clear removes it. Share link puts the text in the link itself, so only people you send the link to can see it.

About this tool

Uses the marked library with GitHub Flavored Markdown: tables, task lists, strikethrough, fenced code and autolinks. Raw HTML written in the Markdown is shown as text unless you tick Show raw HTML in preview; even then it is drawn in a sandboxed frame where scripts cannot run. The HTML tab and Copy give the converted HTML, which is not sanitized, so clean it before you put Markdown from someone else on a web page. Footnotes, math and diagrams are not rendered. Your draft is kept in this browser only.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.