Markdown → HTML

About the Markdown ↔ HTML playground

Markdown ↔ HTML converts Markdown's lightweight, readable syntax into clean HTML and can convert HTML back into Markdown. Headings, lists, links, images, emphasis, code blocks, and blockquotes are all mapped to their HTML equivalents. It's perfect for previewing README files, generating page markup from notes, or extracting simpler Markdown from existing HTML — all in both directions.

Markdown is a plain-text formatting syntax created by John Gruber and standardized by CommonMark, designed to be easy to write and read as-is. HTML (HyperText Markup Language) is the structural language of the web, built from tags and attributes that browsers render. This tool maps Markdown constructs onto semantic HTML elements such as <h1>, <ul>, <a>, and <code>, bridging authoring convenience with web output.

HostedMarkdown ↔ HTML runtime
mainentry file
single fileworkspace
stdinprogram input

How it works

1

Write

The main file is the entry point for each run.

2

Give it input

Use the Input panel to pipe standard input to your program when it needs data.

3

Run

Run sends your code to a fresh hosted runtime and streams the result into the output panel.

4

Keep or share

Your draft stays in this browser, and Share creates a separate snapshot link.

External resources

  • commonmark.org— Official website
  • GitHub— Official spec repository

Input (Markdown)

# Title

Some **bold** and *italic* text.

- one
- two

Output (HTML)

<h1>Title</h1>
<p>Some <strong>bold</strong> and <em>italic</em> text.</p>
<ul>
  <li>one</li>
  <li>two</li>
</ul>

Input (Markdown link & code)

See [docs](https://example.com) and `npm install`.

Output (HTML)

<p>See <a href="https://example.com">docs</a> and <code>npm install</code>.</p>

Input (Markdown blockquote)

> Note: be careful.
>
> Second line.

Output (HTML)

<blockquote>
  <p>Note: be careful.</p>
  <p>Second line.</p>
</blockquote>

Input (Markdown headings & ordered list)

## Steps

1. Install
2. Build
3. Ship

Output (HTML)

<h2>Steps</h2>
<ol>
  <li>Install</li>
  <li>Build</li>
  <li>Ship</li>
</ol>

Input (Markdown image & fenced code)

![logo](/logo.png)

```js
const x = 1;
```

Output (HTML)

<p><img src="/logo.png" alt="logo"></p>
<pre><code class="language-js">const x = 1;
</code></pre>

Input (Markdown table)

| Name | Age |
| --- | --- |
| Ada | 36 |
| Linus | 54 |

Output (HTML)

<table>
  <thead>
    <tr>
      <th>Name</th>
      <th>Age</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Ada</td>
      <td>36</td>
    </tr>
    <tr>
      <td>Linus</td>
      <td>54</td>
    </tr>
  </tbody>
</table>

Input (Markdown rule & strikethrough)

Done ~~later~~ now.

---

Output (HTML)

<p>Done <del>later</del> now.</p>
<hr>

How it works

The editor uses Monaco, the engine behind VS Code, with language-aware editing tools and familiar keyboard controls.

Both directions

Paste Markdown to render clean HTML, or paste HTML to extract simpler Markdown.

Headings, lists, links, images, emphasis, code blocks, and blockquotes all map across.

Follows CommonMark-style Markdown conventions.

Element mapping

Markdown constructs map to semantic HTML like <h1>, <ul>, <a>, and <code>.

Going back, HTML tags are reduced to their lightweight Markdown equivalents.

Inline emphasis and fenced code blocks are preserved in both directions.

When to use it

Previewing README files or generating page markup from notes.

Converting existing HTML into easier-to-edit Markdown.

Privacy

Rendering happens entirely in your browser — your content is never sent out.

Safe for drafts and private documentation.

Every shortcut, searchable:

Editing

Undo
Ctrl+Z
Redo
Ctrl+⇧+Z
Select next occurrence
Ctrl+D
Delete line
Ctrl+⇧+K
Move line up / down
Alt+↑ / ↓
Copy line up / down
Alt+⇧+↑ / ↓
Toggle comment
Ctrl+/
Indent line
Ctrl+]
Outdent line
Ctrl+[

Navigation

Find
Ctrl+F
Find & replace
Ctrl+H
Go to line
Ctrl+G
Go to symbol
Ctrl+⇧+O

Selection

Select all
Ctrl+A
Select line
Ctrl+L
Select all occurrences
Ctrl+⇧+L
Shortcuts follow your OS — ⌘ becomes Ctrl on Windows and Linux.
It renders Markdown syntax into HTML markup, and can also turn HTML back into equivalent Markdown.
Yes. You can convert Markdown to HTML and HTML to Markdown, making it easy to round-trip content.
No. The conversion happens entirely in your browser, so your text never leaves your device.
Yes, it's completely free with no account required.
It follows CommonMark conventions plus common GitHub-style extras like tables and strikethrough where applicable.
markdown
html

Output

HTML output

>_compilebytes

A fast place to write code and run it in isolated hosted runtimes. Free, forever.

Playgrounds

Python compilerC compilerJavaScript compilerC++ compilerTypeScript compilerGo compilerJava compilerRust compiler
All playgrounds →

Tools

JSON formatterRegex testerBase64 encoderJWT decoder
JSON formatterBase64 encoder & decoderRegex testerJWT decoder
All tools →

Company

TermsPrivacy[email protected]
© 2026 compilebytes115 runtimes · no signup115 runtimes · isolated sandboxes · no signup