Paste your text and receive the escaped version ready for parse_mode: MarkdownV2, with the 18 reserved characters resolved and the added backslashes highlighted. Free, in your browser and without an account.
The 400 error "can't parse entities" is not caused by your logic: it is caused by a dot, a dash, or a parenthesis that Telegram expected to see escaped.
The MarkdownV2 escaper from Telegram takes the text you are going to send with the Bot API and returns the same text prepared for `parse_mode: "MarkdownV2"`. It escapes the eighteen characters that Telegram declares reserved —_ * [ ] ( ) ~ ` > # + - = | { } . !— and shows you the result with each backslash it has added in a different color, so you can see exactly what it has touched and why.
It has two modes, because escaping does not always mean the same thing. In Literal mode, all your text is text: no asterisk or underscore is interpreted as formatting, so what you write is what is read. In Formatted mode, the marks you have intentionally put —bold, italic, underline, strikethrough, spoiler, and block quotes at the beginning of a line— are respected, and everything else is escaped. An opened mark that is not closed does not sneak in: it becomes a literal character and alerts you.
What differentiates this escaper from a replace with a regular expression is that it understands the context. Inside `inline code` and the ``` blocks, only the backtick and the backslash are escaped, as the specification requires. In a link `[text](url)`, the visible text is escaped and the destination is not, except for the closing parenthesis and the backslash: this way your URLs arrive intact instead of being filled with backslashes and stop working. It also recognizes custom emojis `` and lets them pass intact.
And before the message goes out, it checks. It detects open and unclosed entities and tells you which one it is —bold, italic, code, block, bracket— with a button to close or escape it in one click. It alerts if a link does not start with https:// or tg://, if the destination has non-ASCII characters that you should encode, if the text already came with backslashes and you were going to escape it twice, and if you exceed 4096 characters that Telegram cuts off. Below you have the preview in a real Telegram bubble, built by reading the escaped text, and the code snippet already set up for cURL, raw Bot API, python-telegram-bot, aiogram, telegraf, or grammY.
Use it free without an account. If you want to save your result, you can sign up afterwards.
Save / Sign upThe 18 reserved characters, exactly as stated in the specification
_ * [ ] ( ) ~ ` > # + - = | { } . ! — not forgetting the dot and the exclamation mark, which are the ones that break the most messages.
Two modes of truth, not one
Literal for your text to be text, and Formatted to preserve bold, italic, underline, strikethrough, spoiler, and quote, escaping everything else.
Escaped by context, not by brute force
inline code and blocks ``` receive only the escape required by the specification, and in links, the visible text is escaped but not the URL, so your links keep working.
See what has changed
each added backslash is highlighted over the original text, and segments treated as links or code are marked separately. No more blindly trusting a black box.
Warns before the Bot API returns 400
unclosed entities with their name, orphaned brackets, loose backticks, links without https://, URLs with non-ASCII characters, already escaped text, and messages longer than 4096 characters.
One-click fixes
each warning comes with its button —close the entity, escape the character, or remove the backslashes already in the text— and escaping is recalculated instantly on the result.
Real Telegram bubble preview
the escaped text is reinterpreted and displayed as your user will see it, in light and dark theme, before sending anything.
And the code already set up
copy the ready cURL snippet, raw Bot API, python-telegram-bot, aiogram, telegraf, or grammY, with token placeholders instead of real credentials. We never ask for your bot's token.
It's calculated in your browser: no registration, no cost, and no sending your message or your bot's token anywhere. Saving the message for reuse another day does require a free account.
In the features that use AI, responses are generated by artificial intelligence and are not a substitute for professional advice.