Getting a Discord ID from a username

A Discord ID is a long number that Discord assigns to every user, server, and message. It stays the same even if someone changes their username, which makes it useful for moderation, bots, and keeping track of people across servers. You can find someone's ID directly from their username in a few straightforward ways, depending on whether you're in a server together or looking them up separately.

The fastest method is to right-click their name in any chat or member list and select "Copy User ID" if you're on desktop. On mobile, tap their profile and look for a copy icon next to their ID. If that option doesn't appear, you can also visit their profile directly and manually copy the number from the URL or from their profile card.

Key Takeaways

  • Right-clicking a username in chat or the member list on desktop shows a "Copy User ID" option that gives you the ID when ready.
  • On mobile, open someone's profile and tap the copy icon next to their ID number to get it without typing.
  • If you're not in a shared server, you can still find their ID by visiting their profile directly through a Discord link or by searching for them.
  • Discord IDs are permanent numbers that don't change when someone updates their username, making them reliable for tracking accounts.
  • Some Discord bots and tools can look up IDs from usernames if you need to do this repeatedly or in bulk.

Using right-click on desktop to copy the ID

On Windows or Mac, the easiest path is to find the person's name anywhere in Discord and right-click it. This works in chat messages, in the member list on the right side of a server, in direct message threads, or in search results. A menu appears with several options.

Look for "Copy User ID" in that menu and click it. The ID is now copied to your clipboard and ready to paste anywhere you need it. This method works whether the person is online, offline, or hasn't posted recently — as long as their name appears somewhere you can right-click it.

If you don't see "Copy User ID" as an option, make sure you're right-clicking directly on their name or avatar, not on the message itself. Clicking the message gives you different options like "Copy Message Link" instead.

Finding the ID on mobile devices

On iPhone or Android, tap the person's name or avatar to open their profile. Their ID appears as a long number on their profile card. Look for a small copy icon (usually two overlapping squares) next to the ID number and tap it to copy.

If you don't see a copy icon, you can also take a screenshot of the ID or manually write it down. Some older versions of the Discord app don't show the copy button, so the screenshot method works as a backup on any device.

Copying the ID from a profile URL

Every Discord user has a profile URL that contains their ID. If you have a link to someone's profile — from a Discord invite, a bot command, or a shared link — the ID is the long number in that URL.

A Discord profile URL looks like this: discord.com/users/123456789012345678. The number at the end is the ID. You can copy it directly from the address bar without opening the profile at all. This method is useful if someone sends you a profile link or if you find one in a bot's output.

Finding someone's ID without being in a shared server

If you're not in any server with the person, you can still find their ID if you know their exact username. Ask them to send you a message or a profile link, or search for them in a mutual server's member list if one exists. Once you can see their name anywhere in Discord, use the right-click method or profile method above.

Some Discord bots also have lookup commands that find a user's ID from their username. These commands usually look like /userinfo username or !whois username, depending on the bot. If you're in a server with such a bot, you can use it to search for anyone on Discord by their username, even if you're not in a shared server with them.

Why Discord IDs matter and when you'll need them

Discord IDs are permanent identifiers that don't change when someone updates their username, nickname, or avatar. This makes them useful for server moderators who need to track accounts, for bots that perform actions on specific users, and for keeping records of who did what in a server.

If you're setting up a bot, creating a ban list, or documenting a moderation action, the ID is more reliable than the username because usernames can be reused or changed. Some advanced Discord features, like custom bot commands or role assignments, require you to use the ID instead of the username to work correctly.

Using Discord bots to look up IDs in bulk

If you need to find IDs for many users at once, some bots can do this faster than copying them one by one. Bots like MEE6, Dyno, or UnbelievaBoat have commands that search for users by username and return their ID. You typically type a command like /user search username and the bot responds with the ID and other profile information.

These bots must be added to a server you're in before you can use them. Once added, you can search for any Discord user by username, even if they're not in that server. Check the bot's documentation to see the exact command format, since different bots use different syntax.

Frequently Asked Questions

Can I find someone's ID if I only know their old username?

No, Discord IDs are permanent but usernames change frequently. If you only know an old username, you'll need to find their current username first. Ask them directly, check if they're still in a server you share, or search for them in a mutual friend's server member list.

Does copying someone's ID let them know I did it?

No, copying a user ID is completely invisible to the other person. Discord doesn't notify users when someone views their profile, copies their ID, or looks them up. You can copy IDs without anyone knowing.

What's the difference between a username and a Discord ID?

A username is the name someone chooses and can change anytime, like "SkylarGames" or "Luna#1234". A Discord ID is a permanent number assigned by Discord that never changes, like "123456789012345678". The ID stays the same even if the person changes their username multiple times.

Can I use someone's ID to message them if I'm not friends?

No, having someone's ID doesn't bypass Discord's privacy settings. You can only message someone if they're your friend, or if they allow direct messages from server members. The ID itself doesn't grant you any special access to their account or messages.

What if the copy option doesn't appear when I right-click?

Make sure you're right-clicking directly on the person's name or avatar, not on their message. If you're on mobile, use the profile method instead — tap their name to open their profile and use the copy icon next to their ID. On desktop, try updating Discord to the latest version if the option still doesn't appear.