Markdown Editor & Converter
Convert GitHub-Flavored Markdown to sanitized HTML with a live preview, or turn pasted HTML back into clean Markdown, entirely in your browser.
Markdown Editor & Converter — A two-way Markdown tool. In Markdown to HTML mode it renders a live, sanitized preview of your GitHub-Flavored Markdown and shows the matching HTML source you can copy; in HTML to Markdown mode it converts pasted HTML back into clean Markdown. Everything is parsed and sanitized in your browser, so nothing you type is ever uploaded.
What is Markdown Editor & Converter?
Markdown Editor & Converter is a free, two-way Markdown and HTML tool that runs entirely in your browser. Switch between Markdown to HTML and HTML to Markdown with a single toggle. In Markdown to HTML mode it parses GitHub-Flavored Markdown - headings, bold and italic, links, lists, tables, blockquotes, and fenced code blocks - and shows two things side by side: a live rendered preview and the generated HTML source, which you can copy with one click. The HTML is always run through DOMPurify before it is shown, so any script or unsafe markup is stripped out. In HTML to Markdown mode it takes pasted HTML and converts it back into tidy Markdown using ATX-style headings and fenced code blocks. Writers, developers, and content editors use it to draft README files, prepare blog posts, clean up HTML pasted from a CMS, and move text between Markdown and HTML without losing formatting.
How to use Markdown Editor & Converter
- Pick the direction with the toggle: Markdown to HTML, or HTML to Markdown.
- Paste or type your source into the Input box.
- In Markdown to HTML mode, watch the rendered preview update live below the input.
- Read the converted result in the Output box - HTML source when converting from Markdown, Markdown when converting from HTML.
- Click the copy button on the Output field to grab the result, or click Clear to empty the input.
Examples
Markdown heading and bold to HTML
Input
# Title Some **bold** text.
Output
<h1>Title</h1> <p>Some <strong>bold</strong> text.</p>
Markdown list to HTML
Input
- one - two
Output
<ul> <li>one</li> <li>two</li> </ul>
HTML back to Markdown
Input
<h2>Notes</h2><p>A <a href="https://x.com">link</a>.</p>
Output
## Notes A [link](https://x.com).
Frequently asked questions
- Is my text uploaded to a server?
- No. The Markdown parsing, HTML sanitizing, and HTML-to-Markdown conversion all run locally in your browser. Your content never leaves your device and the tool keeps working offline, so it is safe for private or unpublished drafts.
- Is the generated HTML safe to use?
- Yes. Every piece of HTML is passed through DOMPurify before it is shown in the preview or the output, which removes scripts, event handlers, and other unsafe markup. Both the live preview and the copyable HTML source are sanitized.
- Which Markdown features are supported?
- It supports GitHub-Flavored Markdown, including headings, bold and italic, links, ordered and unordered lists, blockquotes, tables, inline code, and fenced code blocks. Single line breaks are kept as line breaks in the preview.
- Why doesn't the live preview show in HTML to Markdown mode?
- The live preview renders Markdown as HTML, so it only appears in Markdown to HTML mode. In HTML to Markdown mode the converted Markdown text appears in the Output box instead.
- Does the output update automatically?
- Yes. The preview and the output recompute as you type, so there is no convert button to press - the result is always in sync with your input.
Related tools
Base32 / Base58 Encode / Decode
Encode text to Base32 (RFC 4648) or Base58 (the Bitcoin alphabet) and decode either one back to text, fully UTF-8 safe and entirely in your browser.
Base64 Encode / Decode
Encode text to Base64 or decode Base64 back to text (UTF-8 safe).
Case Converter & Counter
Change text case and count characters, words and lines.
Code Formatter & Minifier
Beautify or minify HTML, CSS and JavaScript instantly in your browser, with 2-space, 4-space or tab indentation and Terser-powered JavaScript compression.