ListFan
Text · Free

Telegram HTML and MarkdownV2 formatter

Escape and format text for Telegram bot messages using HTML or MarkdownV2 parse mode, entirely locally.

01Enter your values

Runs in your browser

Runs offline in your browser. Once the page and required files have loaded, processing needs no internet.

Escape reserved characters for the selected Telegram parse mode, then wrap the whole text in the chosen style. In MarkdownV2 code style, escape backslashes and backticks; other styles escape all reserved syntax characters.

Example
Plain message text

How it works

Escape and format text for Telegram bot messages using HTML or MarkdownV2 parse mode, entirely locally.

This prepares text for a bot or compatible publisher that accepts the matching parse_mode. Ordinary chat may display the markup literally. Nothing is sent and no bot token is needed here. One style per block; maximum 4096 UTF-16 code units before escaping, so some emoji count as two. Telegram's final message limits still apply.

Your data stays yours

Inputs are processed on this page and are never sent to a server.

About this tool

Escape and format text for Telegram bot messages using HTML or MarkdownV2 parse mode, entirely locally.

Escape reserved characters for the selected Telegram parse mode, then wrap the whole text in the chosen style. In MarkdownV2 code style, escape backslashes and backticks; other styles escape all reserved syntax characters.

Use tool ↑

How to use it

  1. Enter your values

    Telegram parse mode · Text style · Plain message text

  2. Calculate / generate

    Escape and format text for Telegram bot messages using HTML or MarkdownV2 parse mode, entirely locally.

  3. Result

    <b>A &amp; B &lt;3</b>

Calculation method

  1. Escape reserved characters for the selected Telegram parse mode, then wrap the whole text in the chosen style.
  2. In MarkdownV2 code style, escape backslashes and backticks; other styles escape all reserved syntax characters.
Example scenario

Telegram HTML and MarkdownV2 formatter

Telegram parse mode
HTML
Text style
Bold
Plain message text
A & B <3
Result
<b>A &amp; B &lt;3</b>

Frequently asked questions

Can I paste this directly into ordinary Telegram chat?

This prepares text for a bot or compatible publisher that accepts the matching parse_mode. Ordinary chat may display the markup literally. Nothing is sent and no bot token is needed here. One style per block; maximum 4096 UTF-16 code units before escaping, so some emoji count as two. Telegram's final message limits still apply.

Where does my data go?

Calculations run on your device. Form inputs are not sent to a server.

Terms and definitions

Enter your values

Telegram parse mode

Match the HTML or MarkdownV2 mode used by your bot or publishing tool.

Choose the mode that matches the data you entered.

Options: HTML · MarkdownV2

Text style

Apply one style to the whole block; nested formatting is not generated.

Choose the mode that matches the data you entered.

Options: Plain text · Bold · Italic · Underline · Strikethrough · Spoiler · Code

Plain message text

Enter unescaped text, up to 4096 UTF-16 code units. Reserved characters are escaped for you.

Enter the source text; it is processed locally.

Result

Result

Escape reserved characters for the selected Telegram parse mode, then wrap the whole text in the chosen style. In MarkdownV2 code style, escape backslashes and backticks; other styles escape all reserved syntax characters.

Calculated from your entries using the method below.

Common mistakes and quick fixes

Parse mode

Mistake: Sending HTML output with MarkdownV2 selected in the external publisher.

Fix: Use the same parse_mode as this tool. Enter plain text here; do not pre-escape or paste existing markup.

Limits and key assumptions

  • This prepares text for a bot or compatible publisher that accepts the matching parse_mode. Ordinary chat may display the markup literally. Nothing is sent and no bot token is needed here. One style per block; maximum 4096 UTF-16 code units before escaping, so some emoji count as two. Telegram's final message limits still apply.