Markdown in WhatsApp

Has a flavor of its own. One asterisk makes text bold, one underscore italic. There are no headings, links or tables.

What to watch out for

  • Asterisks mean something else: *Text* is bold in WhatsApp and italic in the standard.
  • Two kinds of code: One backtick (`Text`) gives inline code. Three backticks (```Text```) set text in a fixed-width font.
  • Formatting without marks: On a computer, select the text and choose the formatting. On a phone, press and hold the text.
  • Can’t be turned off: WhatsApp always converts the marks. There is no setting for it.

What's different or missing in WhatsApp

Paragraph

Standard
↵ ↵

A blank line separates two paragraphs. A single line break isn’t enough: Markdown joins the two lines into one paragraph. For a line break inside a paragraph, put two spaces or a backslash (\) at the end of the line.

More on this

In HTML, the line break becomes a <br> and the paragraph a <p>. The original Markdown doesn't know the backslash, and some apps show it as a character. You can't see the two spaces, and some editors delete them when saving.

Markdown (click to edit)

This is the first paragraph.

After a blank line, the second one starts.

Result

This is the first paragraph.

After a blank line, the second one starts.

Different

On a computer, the ↵ Enter key sends the message. There, start a new line with ⇧ Shift + ↵ Enter. On a phone, the Enter key starts a new line.

Heading

Standard
#

A hash and a space at the start of a line make the line a heading. Each additional hash goes one level deeper.

More on this

There are six levels, from # to ######. They match the HTML elements <h1> to <h6>. In CommonMark, the space after the hash is required. Leave a blank line before a heading, or some apps won't recognize it.

Not available

Bold

Standard
**or__
WhatsApp
*

Two asterisks before and after a word make it bold. Two underscores (__bold__) do the same in the standard. Not every app knows this notation.

More on this

In HTML, this becomes <strong>. To make only part of a word bold, only the asterisks work reliably.

Markdown (WhatsApp) (click to edit)

The deadline is *Friday*.

Result

The deadline is Friday.

Different

One asterisk instead of two.

Italic

Standard
*or_
WhatsApp
_

One asterisk before and after a word makes it italic. One underscore (_italic_) does the same in the standard. Not every app knows this notation.

More on this

In HTML, this becomes <em>. Three asterisks (***like this***) make text bold and italic at once. To keep an asterisk as a character, write it with a backslash: \*.

Markdown (WhatsApp) (click to edit)

Please let me know _beforehand_.

Result

Please let me know beforehand.

Different

Only underscores (_italic_) work. In WhatsApp, an asterisk means bold.

Strikethrough

Standard
~~or~
WhatsApp
~

Two tildes before and after the text strike it through. On a US keyboard, you type the tilde with ⇧ Shift and the key left of 1. On a UK keyboard in Windows, press ⇧ Shift + #, the key next to ↵ Enter.

More on this

Strikethrough is part of the GitHub Flavored Markdown (GFM) extension and is missing from the original Markdown. GFM also accepts a single tilde (~). In some programs, such as Pandoc, it sets the text as subscript instead, so two tildes are safer. In HTML, this becomes <del>.

Markdown (WhatsApp) (click to edit)

The meeting is on ~Tuesday~ Wednesday.

Result

The meeting is on Tuesday Wednesday.

Different

One tilde (~) instead of two.

Task list

Standard
- [ ]

Square brackets after the hyphen make a checkbox. An x inside checks it off.

More on this

Task lists are part of GitHub Flavored Markdown (GFM). Between the empty brackets, there is exactly one space.

Not available

Image

Standard
![]()

You write an image like a link with an exclamation mark in front. The square brackets hold the description of the image, and the parentheses hold the URL of the image. If the image is on another website, the URL starts with https://.

More on this

The description becomes the alt attribute of the <img>. Screen readers read the description aloud, and it appears when the image doesn't load.

Not available

Attach images to the message.

Table

Standard
|

Vertical bars separate the columns. The second row, made of hyphens, turns the first row into the header row. Without this header row, there is no table.

More on this

Tables are part of GitHub Flavored Markdown (GFM). The bars don't have to line up in the source text. Colons in the separator row align a column: :--- left, :---: center, ---: right. To show a vertical bar as a character in a cell, write it with a backslash: \|.

Not available

Horizontal rule

Standard
---or***or___

Three hyphens on a line of their own make a horizontal rule. Leave a blank line before it.

More on this

If the three hyphens sit directly under a line of text, Markdown turns that line into a second-level heading. With *** or ___, this doesn't happen. In HTML, this becomes an <hr>.

Not available

What works as in the standard