Skip to content
Discord

Documentation: Discord permissions calculator

Discord permissions calculator: tick permissions (ADMINISTRATOR, KICK_MEMBERS, MANAGE_ROLES…) to get the integer for a bot invite link, or paste an integer to decode it. Bit values come from the official documentation, computed with BigInt in your browser.

Last updated: 10/9/2026

Open the tool

Each Discord permission is one bit in a large integer (for example KICK_MEMBERS = 1 << 1 = 2, ADMINISTRATOR = 1 << 3 = 8). APIs and bot invite links expect the sum of those bits. This tool converts both ways.

How to use the tool

  1. Tick the permissions you want, or start from a preset (basic, moderator, administrator).

  2. Read the computed decimal (or hexadecimal) integer in the “Result” panel.

  3. Copy it into the permissions parameter of the invite link (see the “Bot invite link” tool) or into your code.

  4. To decode an existing integer, paste it in the field: the matching boxes get ticked.

Good to know

ADMINISTRATOR grants every permission and bypasses channel overwrites: only give it to a bot when truly necessary. Integers exceed 2^53, so use strings or BigInt in your code. The T/V/S column shows the channel types concerned (text, voice, stage). Values checked against the official Discord developer documentation on 2026-10-09; bit 47 is not defined there.

// discord.js
const { PermissionsBitField } = require('discord.js');
const perms = new PermissionsBitField(['ViewChannel', 'SendMessages']);
console.log(perms.bitfield.toString()); // 3072

Frequently asked questions

Why is the integer so large?
Recent permissions use high bits (up to 1 << 52), so the sum exceeds ordinary JavaScript integers. The calculation therefore uses BigInt.
Is my data sent anywhere?
No. Everything is computed in your browser; only the last value is kept in your browser's local storage.
Discord
DiscordOpen access
Compose a Discord webhook message with embeds, live preview, JSON and a curl example. Nothing is sent from this site.
WebhookEmbedOpen
Documentation
Discord
DiscordOpen access
Build your bot's OAuth2 invite URL: client_id, scopes, permissions, preselected server.
OAuth2BotOpen
Documentation