Format your messages

Message formatting helps to add detail and clarity to communication in Slack. When you use Slack's automatic formatting, you’ll see exactly what your messages look like before you send them, and you can even add multiple formatting options to the same selection of text.

If you prefer to format your messages with markup instead of automatic formatting on desktop, visit Set your formatting preference on desktop.

 

Add formatting to your messages

Desktop

Mobile

If you're using Slack's automatic formatting on desktop, there are three ways to format your messages:

  • Use the formatting toolbar in the message field
  • Use keyboard shortcuts to format selected text
  • Surround text with the symbols associated with each format

Note: To display or hide the formatting toolbar, click the   text icon in the bottom-right corner of the message field.


Bold

Screenshot of message formatting in Slack with text in bold
  • Select text, then click the  bold icon in the formatting toolbar
  • Select text, then press B on Mac or CtrlB on Windows/Linux
  • Surround your text with asterisks: *your text*

 

Italic

Screenshot of message formatting in Slack with text in italic
  • Select text, then click the  italic icon in the formatting toolbar
  • Select text, then press I on Mac or CtrlI on Windows/Linux
  • Surround your text with underscores: _your text_

 

Strikethrough

Screenshot of message formatting in Slack with text in strikethrough
  • Select text, then click the  strikethrough icon in the formatting toolbar
  • Select text, then press ShiftX on Mac or CtrlShiftX on Windows/Linux
  • Surround your text with tildes: ~your text~ 

 

In-line code

Screenshot of message formatting in Slack with text in inline code

One word or one line:

  • Select text, then click the  code icon in the formatting toolbar 
  • Select text, then press ShiftC on Mac or CtrlShiftC on Windows/Linux 
  • Surround your text with backtick symbols (`):
    `Format one word or one line`

Blocks of text:

  • Select text, then click the   code block icon in the formatting toolbar
  • Select text, then press OptionShiftC on Mac or CtrlAltShiftC on Windows/Linux 
  • Begin your text with triple backticks (```):
    ```
    Format blocks of text  

Note: Other formatting, like bold or italic text, will not display in a code block. For enhanced code sharing, we suggest creating a snippet.


Blockquote

Screenshot of message formatting in Slack with text in blockquote
  • Select text, then click the   blockquote icon in the formatting toolbar 
  • Select text, then press Shift9 on Mac or CtrlShift9 on Windows/Linux
  • Begin your text with angled brackets (>): 
    Quote one or multiple sentences

Press ShiftEnter to create a new preformatted line

 

Lists

Screenshot of message formatting in Slack with text in a numbered and bullet list 

Ordered list:

  • Select text, then click the   ordered list icon in the formatting toolbar 
  • Select text, then pressShift7 on Mac or CtrlShift7 on Windows/Linux
  • Begin your message with 1, followed by a full stop (1.) and press Space

Press ShiftEnter to create a new preformatted line

Bullet-point list:

  • Select text, then click the   bulleted list icon in the formatting toolbar 
  • Select text, then press Shift8 on Mac or CtrlShift8 on Windows/Linux
  • Begin your message with a bullet point (•) by typing an asterisk (*)

Press ShiftEnter to create a new preformatted line

 

Link

Screenshot of message formatting in Slack with hyperlinked text
  • Select text, then click the   link icon in the formatting toolbar
  • Select text, then press ShiftU on Mac or CtrlShiftU on Windows/Linux. 

Copy the link that you'd like to share and paste it in the empty field under Link, then click Save.

To quickly create hyperlinks, you can also copy a link, select text in Slack, then press V (Mac) or CtrlV (Windows/Linux).

 

Note: The following formatting options work as described when using full-width (JP) input mode. When using half-width (EN) input mode, you'll need to add spaces before and after the formatting symbols.

On mobile, there are two ways to format your messages:

  • Use the formatting toolbar in the message field
  • Surround the text with the symbols associated with certain formats

Note: To display the formatting toolbar, tap the   text icon at the bottom of the message field. To hide it, tap the  icon on iOS or the  icon on Android.


Bold

Screenshot of message formatting in Slack with text in bold
  • Select text, then tap the  bold icon in the formatting toolbar
  • Surround your text with asterisks: *your text*

 

Italic

Screenshot of message formatting in Slack with text in italic
  • Select text, then tap the  italic icon in the formatting toolbar
  • Surround your text with underscores: _your text_

 

Strikethrough

Screenshot of message formatting in Slack with text in strikethrough
  • Select text, then tap the  strikethrough icon in the formatting toolbar
  • Surround your text with tildes: ~your text~ 

 

In-line code

Screenshot of message formatting in Slack with text in inline code

One word or one line:

  • Select text, then tap the  code icon in the formatting toolbar 
  • Surround your text with backtick symbols (`):
    `Format one word or one line`

Blocks of text:

  • Select text, then tap the   code block icon in the formatting toolbar

 

Blockquote

Screenshot of message formatting in Slack with text in blockquote
  • Select text, then tap the  blockquote icon in the formatting toolbar 

 

Lists

Screenshot of message formatting in Slack with text in a numbered and bullet list 

Ordered list:

  • Select text, then tap the  ordered list icon in the formatting toolbar 

Bullet-point list:

  • Select text, then tap the  bulleted list icon in the formatting toolbar 

Link

Screenshot of message formatting in Slack with hyperlinked text
  • Select text, then tap the   link icon in the formatting toolbar

Copy the link that you'd like to share and paste it in the empty field under Add link, then tap Save.

 

Tip: When you copy and paste formatted messages into Slack, the formatting is retained. To quickly apply new formatting, press ShiftF (Mac) or CtrlShiftF (Windows/Linux). To undo formatting, press Z or CtrlZ.