How to use it
Open @base64hubbot in Telegram and press Start. Then send it anything:
- Plain text comes back as Base64.
- Base64 comes back decoded, when it decodes to readable text.
- A file or photo up to 1 MB comes back as a
.txtfile with the Base64 inside; images arrive as adata:URI.
Results are sent in monospace, so a tap copies them. When a result is longer than 4096 characters, Telegram’s limit for one message, the bot sends it as a .txt file instead.
Commands
| Command | What it does | Example reply |
|---|---|---|
/encode <text> | always encodes | /encode Hi → SGk= |
/decode <base64> | always decodes | /decode SGk= → Hi |
/url <text> | URL-safe Base64 without padding | /url Привет → 0J_RgNC40LLQtdGC |
/help | short help | |
/start | the welcome message |
A command without text works on the message you reply to, which is handy when someone else posted the Base64.
The decoder is forgiving: line breaks, a data: prefix, missing = padding and URL-safe characters are all fine. If the decoded bytes are not text, for example part of an image, the bot shows them as hex with a note instead of garbled characters.
Inline mode
In any chat, type @base64hubbot and a space, then your text. Telegram shows a small menu with Encode, Encode URL-safe and, when the text is valid Base64, Decode. Pick one and the result is sent into the conversation, so you can answer a colleague with Base64 without leaving the chat.
Languages
The bot replies in English, German, Spanish, French, Portuguese, Russian, Japanese, Korean or Chinese, following the language of your Telegram app, and in English otherwise.
When another tool fits better
The bot takes files up to 1 MB, and long results arrive as files rather than messages. For bigger files, use File to Base64 in your browser or the b64 CLI. The bot docs list every reply and limit.
FAQ
How does the bot know whether to encode or decode?
If your message is valid Base64 of at least 4 characters and decodes to readable UTF-8 text, it decodes. Anything else gets encoded. Use /encode or /decode to choose yourself.
Can the Telegram bot convert an image to Base64?
Yes. Send a photo or an image file up to 1 MB and the bot replies with a .txt file that holds a data:image/...;base64, URI, ready to paste into HTML or CSS.
Does the bot work in group chats?
In groups it answers commands only, such as /encode text. Everywhere else, type @base64hubbot followed by your text in the message field to use inline mode.
Does @base64hubbot keep my messages?
The bot stores nothing; it answers each message and forgets it. Telegram still carries the messages, as with any bot, so keep secrets out of chats.