Inline Keyboard Builder

Build your Telegram bot's inline keyboard without writing JSON

Add rows and buttons by tapping them on the message bubble, choose from the four types of the Bot API, and copy the validated reply_markup. Free, in your browser, and without an account.

An inline_keyboard is an array of rows that are themselves arrays of objects: one extra comma, a URL without https://, or a callback_data of 65 bytes and the Bot API returns a 400.

The inline keyboard builder of Telegram is the Bot tab of the app: on the left, you write the message, below you build the keyboard, and above you see the Telegram bubble as it will appear to your subscriber. There is no parallel form or a text box with the JSON matrix: you add a row, add buttons to that row, and edit each button by tapping it on the mockup. What you see is exactly what will be serialized.

Each button has text (up to 64 characters) and one of the four types supported by the Bot API: link (url), callback (callback_data), Mini App (web_app), and inline search (switch_inline_query). The type determines the validation: the link must start with https://, http://, or tg://, a Mini App requires HTTPS, and the callback_data has a real byte counter—not character count—because the 64 limit imposed by Telegram is measured in UTF-8 bytes and an emoji takes up four at once.

Before giving you anything, the keyboard goes through the schema validator, which does not say "there is an error" but the exact path: "Row 2, button 3: the callback_data measures 71 bytes and the maximum is 64". It marks as an error the button without text, the invalid type, the template destination partially filled, the malformed link, and the empty or too long callback; and as a warning what Telegram accepts but will go wrong: more than eight buttons in a row, more than one hundred buttons in the message, and repeated buttons. Buttons with issues appear with a red border in the mockup, so you see the error in its place.

When it's ready, you take it: the formatted JSON of the reply_markup, or the complete message already built for cURL, raw Bot API, python-telegram-bot, aiogram, telegraf, or grammY, with the text escaped in MarkdownV2 by the app's own engine. And if you don't want to start from scratch, there are 29 keyboard templates spread across five categories—sales, community, content, support, and Mini Apps—with the real keyboard thumbnail in view: you fill in the gaps, choose to replace what you have or add it below, and if you write the theme of your channel, the AI adapts the button texts to your language and niche without touching the structure.

No sign-up

Try Inline Keyboard Builder right here

Loading the tool…

Use it free without an account. If you want to save your result, you can sign up afterwards.

Save / Sign up

Benefits of Inline Keyboard Builder

Edit where you see it

buttons are tapped in the message mockup, not in a separate form. Add a row, add a button to a row, change it or delete it, and an Undo for when you go overboard.

The four types of the Bot API, each with its rule

url (https://, http:// or tg://), callback_data, web_app (only HTTPS) and switch_inline_query, which can be empty to trigger your bot's inline search.

Actual byte counter for callback_data

64 bytes, not 64 characters. See how many you have while typing and the warning pops up before sending, not after the 400 error.

The validator gives you the path of the failure, not a 'something went wrong'

exact row and button, button without text, partially filled template destination, malformed link or empty callback, with the affected button highlighted in red in the template itself.

Design warnings, not just syntax

more than eight buttons in a row (Telegram truncates the text), more than a hundred buttons in the message, and duplicate buttons, which are almost always a mistake when copying and pasting.

Ventaja 6

29 ready templates in five categories — sales, community, content, support, and Mini Apps — with the real keyboard thumbnail in view, gaps to fill in, and the option to replace the keyboard or add rows below the one you already have.

Real bubble preview in Telegram, in light and dark theme

the message is rendered from the already escaped text in MarkdownV2, so the preview is a check and not an illusion.

The pre-built code

the reply_markup in formatted JSON or the complete send for cURL, python-telegram-bot, aiogram, telegraf, and grammY. With placeholders <YOUR_TOKEN> and <CHAT_ID>: the app never asks for your bot's token or sends anything on your behalf.

Build the keyboard, copy it, and paste it into your bot

The builder, validator, and code snippets are calculated in your browser: no registration and no cost. Saving the message with its keyboard for reuse another day does require a free account, just like adapting texts with AI.

In the features that use AI, responses are generated by artificial intelligence and are not a substitute for professional advice.

Telegram Inline Keyboard Builder | reply_markup without JSON