Markdown to HTML Cheat Sheet: Beginner's Guide

By Toolinga Editorial Team · Updated · 6 min read

If you have ever opened a README file on GitHub and wondered how plain text turns into neat headings, bold text and clickable links, this markdown to html cheat sheet is for you. Markdown is a lightweight markup language: you write text with a few simple symbols like # and *, and a converter turns it into clean HTML you can use anywhere. In this guide you will learn the essential Markdown syntax — headings, emphasis, lists, links, images, code blocks and tables — each with a copy-ready example and the HTML it produces. By the end, you will write Markdown with confidence and convert it to HTML in seconds.

What Markdown Is and Why Developers Love It

Markdown was created by John Gruber in 2004 (with help from Aaron Swartz) as a way to write formatted text that stays readable in its raw form. The idea was simple: use characters you already type — like asterisks and hashes — instead of angle brackets, and let a converter handle the translation to HTML. That philosophy is exactly why developers love it. Markdown files are plain text, so they work in any editor, play nicely with version control, and render beautifully on GitHub, GitLab and documentation sites.

Two flavors dominate today. CommonMark is the standardized specification that nails down the rules, while GitHub Flavored Markdown (GFM) adds practical extras like tables, task lists and strikethrough. Most converters support both. The payoff is speed: you type a couple of characters and get fully structured HTML without touching a tag. When you are ready to see your Markdown become real markup, a Markdown to HTML converter does it instantly — paste your text in, copy the HTML out.

Headings, Bold, and Lists: Markdown to HTML Cheat Sheet Essentials

Headings, emphasis and lists cover most of everyday Markdown — master these three and you can write almost any document. Let us take them one at a time, with the HTML each one produces.

Headings

Use hash symbols: one # for the biggest heading, up to six for the smallest. Always leave a space after the hashes.

# Heading 1
## Heading 2
### Heading 3

That becomes:

<h1>Heading 1</h1>
<h2>Heading 2</h2>
<h3>Heading 3</h3>

Bold and italic

Wrap text in single asterisks or underscores for italic, double for bold, and triple for both. GFM also supports strikethrough with double tildes.

*italic* or _italic_
**bold** or __bold__
***bold and italic***
~~strikethrough~~

Which converts to:

<em>italic</em> or <em>italic</em>
<strong>bold</strong> or <strong>bold</strong>
<strong><em>bold and italic</em></strong>
<del>strikethrough</del>

Lists

Start unordered items with a dash, asterisk or plus sign; start ordered items with numbers. Indent by two spaces for nested lists, and use - [ ] for GFM task lists.

- Apples
- Oranges
  - Blood oranges

1. First step
2. Second step

- [ ] Write the draft
- [x] Publish the article

The HTML output:

<ul>
  <li>Apples</li>
  <li>Oranges
    <ul>
      <li>Blood oranges</li>
    </ul>
  </li>
</ul>
<ol>
  <li>First step</li>
  <li>Second step</li>
</ol>

Links and images are where Markdown really earns its keep — the syntax stays compact while producing proper HTML anchors and image tags.

The basic form is [link text](URL). You can add an optional title in quotes after the URL, which becomes the title attribute.

[Visit Toolinga](https://toolinga.com "Free online tools")

Produces:

<a href="https://toolinga.com" title="Free online tools">Visit Toolinga</a>

For bare URLs, GFM autolinks anything wrapped in angle brackets: <https://toolinga.com> becomes a clickable link automatically. If you reuse the same URL many times, reference-style links keep your text tidy — define [label]: https://example.com once at the bottom of the document and write [label] wherever you need it.

Images

Images work exactly like links, with an exclamation mark in front. The text in brackets becomes the alt attribute, which matters for accessibility and SEO.

![A cat sitting on a laptop](cat.jpg "A helpful cat")

Converts to:

<img src="cat.jpg" alt="A cat sitting on a laptop" title="A helpful cat">

Code Blocks and Tables

Developers write documentation constantly, so Markdown's code and table support is first-class.

Inline code and code blocks

Wrap short snippets in single backticks: `npm install` renders as <code>npm install</code>. For multi-line blocks, fence them with three backticks and add the language name for syntax highlighting:

```python
def greet(name):
    return f"Hello, {name}!"
```

That produces a <pre><code> block with a language class your highlighter can use:

<pre><code class="language-python">def greet(name):
    return f"Hello, {name}!"</code></pre>

Tip: if your code itself contains triple backticks, fence it with four backticks instead. Need a literal backtick inside inline code? Wrap it in double backticks.

Tables

Tables are a GFM extension, not part of the original spec, but nearly every converter supports them. Separate the header with a row of dashes, and control alignment with colons.

| Tool | Free | Rating |
| :--- | :---: | ---: |
| Toolinga | Yes | 5 |
| Others | Sometimes | 3 |

Becomes a full HTML table:

<table>
  <thead>
    <tr><th>Tool</th><th>Free</th><th>Rating</th></tr>
  </thead>
  <tbody>
    <tr><td>Toolinga</td><td>Yes</td><td>5</td></tr>
    <tr><td>Others</td><td>Sometimes</td><td>3</td></tr>
  </tbody>
</table>

Here :--- means left-aligned, :---: centered, and ---: right-aligned. Keep the pipes lined up in your source for readability — converters do not care, but future-you will.

Convert Your Markdown Instantly

Knowing the syntax is half the battle; converting it is the other half. Here is a complete mini-document and exactly what a converter produces from it — a real worked example of this markdown to html cheat sheet in action.

Your Markdown input:

## Weekend Project

This weekend I built a **simple** website. Two wins:

- Faster load times
- Cleaner design

Read the full story on [my blog](https://example.com/blog).

The HTML output:

<h2>Weekend Project</h2>
<p>This weekend I built a <strong>simple</strong> website. Two wins:</p>
<ul>
  <li>Faster load times</li>
  <li>Cleaner design</li>
</ul>
<p>Read the full story on <a href="https://example.com/blog">my blog</a>.</p>

Notice how every Markdown shortcut mapped to exactly one HTML element — no surprises. Try it yourself: paste any Markdown into a free Markdown to HTML converter and copy the result straight into your website, CMS or email template. If the generated HTML carries extra whitespace or verbose formatting, run it through an HTML minifier to shrink the file size before publishing.

Markdown to HTML Cheat Sheet: Frequently Asked Questions

Is Markdown harder than HTML?

No — it is deliberately easier. HTML requires opening and closing tags for everything; Markdown needs only a few intuitive characters. A heading takes one # instead of <h1>...</h1>, and a converter handles the translation, so you rarely think about tags at all.

Where can I use Markdown?

Almost everywhere developers write: GitHub and GitLab READMEs, documentation sites, static site generators like Jekyll and Hugo, forums like Reddit and Stack Overflow, chat apps like Discord and Slack, and note-taking tools like Obsidian and Notion. Many blogging platforms accept it too.

Does Markdown support tables?

Yes, through GitHub Flavored Markdown's pipe syntax — the format shown in this cheat sheet. The original 2004 specification did not include tables, so if your converter outputs literal pipes, switch to one with GFM support.

Will Markdown replace HTML?

No, and it was never meant to. Markdown is a shorthand for writing HTML faster, not a replacement: anything Markdown cannot express (custom classes, forms, embedded media players) still needs raw HTML — which, conveniently, you can mix directly into any Markdown document.

This markdown to html cheat sheet covered everything a beginner needs: headings, emphasis, lists, links, images, code blocks and tables — each one a tiny shortcut that expands into proper HTML. The fastest way to lock it in is practice: write your next README, blog draft or project note in Markdown, then watch it convert. Paste your work into the free Markdown to HTML converter and grab clean, ready-to-publish HTML in seconds.

Related guides

What Is SHA-256 Hash Used For? A Simple Guide

Learn what is SHA-256 hash used for — passwords, downloads, and blockchains — with a real example and a free hash generator.

November 8, 2026

What Is Unix Timestamp? A Simple Guide

What is Unix timestamp? Learn what those 10-digit numbers mean, how to read them, and how to convert any timestamp to a date.

November 7, 2026

What Is URL Encoding %20? Why It Appears in Links

Wondering what is url encoding %20? Learn why spaces become %20 in links, which characters must be encoded, and how to fix messy…

November 4, 2026

What Is UUID Used For? Random IDs Explained

What is UUID used for? Learn where these random IDs appear, why databases rely on them, and how UUID v4 works — plus a free…

November 2, 2026