239 / 4,096
Saved in this browser only
You
Channel update
New article is live: read it here. It covers formatting tips for boring better posts.
The ending? Everyone was the cat all along
Quotes work too.
pip install telegram-bot

Chat formatting

Telegram Formatting Editor

Telegram apps turn Markdown-style markers into rich text as you send. Write your message here, preview it — spoilers included — and copy it into Telegram.

Text styles

Telegram apps accept double markers while typing: two asterisks for bold, two underscores for italic.

Bold

**bold text**
bold text

Italic

__italic text__
italic text

Strikethrough

~~struck text~~
struck text

Spoiler

Click the preview to reveal.

||hidden text||
hidden text

Code

Backticks for inline code and pre-formatted blocks.

Inline code

`code`
code

Code block

```
print("hi")
```
print("hi")

How it works

Step 1

Write your message

Type on the left or use the toolbar to add formatting.

Step 2

Check the preview

The right pane shows how Telegram will display it.

Step 3

Copy and paste

Copy the message and paste it into Telegram.

Frequently asked questions

How do I format text in Telegram?

Type **bold**, __italic__, ~~strikethrough~~, ||spoiler||, or `code` and Telegram converts it when you send. You can also select text and use the formatting menu.

How do I add a spoiler?

Wrap the text in double pipes: ||hidden text||. Readers tap it to reveal.

What is the message length limit?

4,096 characters per message. Longer text is split into several messages.

Does this work for bots?

Bots use parse_mode MarkdownV2 or HTML, which have slightly different escaping rules, but the same visual styles.

Related tools: Discord editor · Font generator · Markdown to Slack · Markdown editor