Markdown bold and italic formatting uses asterisks or underscores: wrap text in one pair for italic (*text*), two pairs for bold (**text**), and three for both. Strikethrough, written with two tildes, is a popular extension. This page explains each style, when to choose asterisks over underscores, and how to avoid the classic mistakes.
Key takeaways
- One asterisk or underscore gives italic, two give bold, three give bold italic.
- Asterisks work inside words; underscores usually do not.
- Strikethrough with
~~text~~comes from GitHub Flavored Markdown. - Escape a literal symbol with a backslash.
Italic Text in Markdown
Surround a word or phrase with a single asterisk or a single underscore on each side. Both give the same result, which is wrapped in an <em> tag in HTML.
This is *italic* text.
This is _italic_ text.
Do not leave a space between the symbol and the text. * not italic * will be treated as plain text in most parsers, because the opening mark must sit directly against the first character.
Markdown Bold and Italic Together
Doubling the symbol creates bold, rendered with a <strong> tag, and tripling it combines both styles.
| You type | Result | HTML |
|---|---|---|
*italic* |
italic | <em> |
**bold** |
bold | <strong> |
***both*** |
both | <strong><em> |
~~removed~~ |
<del> |
You can nest styles, such as italic words inside a bold sentence: **Read the *entire* note**. Keep nesting simple, since deep combinations are harder to read in the source and easier to break.

A Worked Example
Here is a short note that mixes the styles, followed by what it looks like once rendered.
**Deadline:** the report is due *Friday* at noon.
Please do ~~not~~ send drafts to the **shared folder**.
The result reads as a bold label, an italic day, a crossed-out word and a bold folder name. Short, deliberate use like this guides the eye without cluttering the page. A good rule is to bold things a reader must not miss, such as dates, warnings and key terms, and to italicize titles, foreign words or a gentle stress on a single word.
Asterisks or Underscores?
Both work, but they behave differently in one important case. Asterisks can emphasize part of a word, such as un*believ*able. Underscores inside a word are generally ignored in CommonMark, so snake_case_name stays plain, which is helpful when you write about code. For that reason, many style guides pick asterisks for everything, or underscores for italic and asterisks for bold. Whatever you choose, apply it consistently across your files.
The original Markdown syntax documentation describes emphasis, and the CommonMark spec sets the exact rules that most modern tools follow.
How to Format Text Step by Step
- Select the words you want to emphasize in your editor, or place the cursor where they will go.
- Type the opening symbol directly before the first character, with no space.
- Type the text, then the same symbol directly after the last character.
- Use one symbol for italic, two for bold and three for both.
- Preview the result and look for stray symbols that did not convert.
Many editors offer a shortcut, commonly Ctrl+B or Cmd+B for bold and Ctrl+I or Cmd+I for italic, that wraps the selection for you. Shortcuts differ between applications, so check yours. If you prefer to see them in context, the Markdown cheat sheet shows emphasis next to the other basics.
Strikethrough and Escaping Symbols
Strikethrough is not in core Markdown, but GitHub Flavored Markdown and many editors support ~~two tildes~~. Simpler processors will show the tildes literally. Strikethrough is useful for showing edits in a to-do list, a changelog or a draft where you want readers to see what was removed, but avoid it in final copy where the crossed-out text only adds noise.
When you need an actual asterisk or underscore, put a backslash in front of it.
Price: 5 \* 3 = 15
Use file\_name\_here.txt
Inline code is another option, because symbols inside backticks are never interpreted. See Markdown code blocks and inline code for details.

Common Emphasis Mistakes
Most problems come from spacing and mismatched marks, so check these first when formatting refuses to appear.
- Spaces inside the markers.
** bold **will not render in most parsers. - Mismatched symbols.
*text_does not close, so the marks stay visible. - Overusing bold. When everything is bold, nothing stands out. Reserve it for key terms and warnings.
- Faking headings with bold. Use real headings so readers and screen readers get document structure. Our guide on how to write headings in Markdown covers that.
Frequently Asked Questions
What is the difference between * and _ for italic?
The visible result is the same. The difference is that underscores inside words are usually not treated as emphasis, while asterisks are.
How do I make text bold and italic at once?
Use three asterisks on each side, like ***text***. Three underscores also work.
Does strikethrough work everywhere?
No. It is an extension in GitHub Flavored Markdown and many editors, but not in original Markdown.
How can I show asterisks without formatting?
Add a backslash before each one, or wrap the text in backticks as inline code.
Can I underline text in Markdown?
There is no standard underline syntax. Some tools allow the HTML <u> tag, but underlined text looks like a link, so italics or bold are usually better.
Wrap-Up
Single, double and triple asterisks cover almost every emphasis need, and markdown bold and italic work the same way in nearly every editor. Use them sparingly, stay consistent and preview the result, since extras like strikethrough depend on your editor.



