Discord Permissions Calculator

Select the exact permissions your bot needs, decode an existing permissions integer, and optionally generate a Discord OAuth2 installation URL — all locally in your browser.

General server

9

Membership and moderation

6

Text and messaging

20

Voice and stage

13

Events

2

Advanced access

2

Use the Calculator Before You Install a Bot

Permission integers are easier to audit when each bit is shown as a named capability.

Build a least-privilege invite

Select only the capabilities required by the bot instead of defaulting to Administrator.

Decode an existing integer

Paste the decimal permissions value from an OAuth2 URL to see which current Discord flags it contains.

Generate an OAuth2 URL

Add a public Application ID and create a bot installation URL with the selected permissions and optional slash-command scope.

Guide

Discord Permission Integers, Bitfields, and Bot Invite URLs

Discord represents a set of permissions as one decimal integer. Each permission occupies a bit position, and selected values are combined with a bitwise OR operation. This calculator uses BigInt so newer permissions above the traditional 32-bit range remain accurate.

How a permissions integer is calculated

View Channels is 1024 and Send Messages is 2048. Selecting both produces 3072 because their separate bits are combined. The decimal result can be placed in the permissions parameter of a Discord OAuth2 bot URL.

Why the calculator uses BigInt

Current Discord permission flags extend beyond bit 32. JavaScript's ordinary bitwise operators truncate values to 32 bits, so this tool performs calculations with BigInt and serializes the final value as a decimal string.

Administrator bypasses channel overwrites

Administrator grants every permission and bypasses channel-specific overwrites. It should not be selected simply to make setup easier; a smaller permission set limits the impact of a compromised or misconfigured bot.

Application ID is not a secret

The OAuth2 generator needs only the public Discord Application ID. A Bot Token and Client Secret are credentials and must never be entered into this page, included in an invite URL, or shared publicly.

Bot and applications.commands scopes

The bot scope installs the bot user in a server. The applications.commands scope enables slash and context-menu commands. Many modern Discord apps include both scopes, but the permissions integer still applies specifically to capabilities granted during installation.

Guild permissions are not the whole calculation

A role permission integer describes base permissions. Discord then applies role hierarchy and channel overwrites. The same bot can therefore have different effective access in different channels even when its role integer does not change.

Discord Permissions Calculator FAQ

No. Permission calculations and OAuth2 URL generation happen locally in your browser. Only a public Application ID is needed to build an installation URL.

It is a decimal representation of multiple permission bits. Each named permission has its own value, and Discord combines selected values into one integer for roles, overwrites, and bot installation URLs.

Administrator grants all permissions and bypasses channel overwrites. If the bot does not genuinely need unrestricted access, selecting individual permissions reduces security and configuration risk.

Open the Discord Developer Portal, select your application, and copy the Application ID from its General Information page. Do not copy or share the Bot Token or Client Secret.

Yes. Copy the decimal value after the permissions parameter, paste it into the permissions integer field, and the matching current flags will be selected.

No. The URL requests base permissions during installation. Role position, channel permission overwrites, server settings, required intents, and the bot's own code can still limit its effective behavior.