What is a Twitter/X User ID?
A Twitter (now X) User ID is a unique numeric identifier assigned to every account on the platform. Unlike the @handle which users can change, the numeric User ID is permanent and serves as the true identifier in Twitter's system.
Twitter User IDs are critical for developers using the Twitter API v2, social listening tools, brand monitoring platforms, and any application that needs to track Twitter accounts across handle changes. Many popular tools and services use the numeric ID as their primary reference.
X has a particular reason to care about this that other platforms do not share so sharply: handles are recycled. When an account is deleted, its handle can be claimed by someone else later. A spreadsheet of handles from two years ago is therefore not just incomplete, it can be actively wrong, pointing at a different person under the same name. An ID cannot do that, because X does not reassign them. The Twitter/X user ID explainer goes into why this bites archival and research work in particular.
X Identifiers Compared
The platform's own documentation and its user interface use different vocabulary for the same things, and the rebrand added another layer of naming. Here is the mapping.
| Identifier | Example shape | Can it change? | Mainly used for |
|---|---|---|---|
| User ID | Digits only, often long | No | API requests, databases, long-term records |
| Handle / screen name | @name | Yes, and it can be reused by others | Mentions, readable links, search |
| Display name | Free text | Yes, freely | What readers see, never an identifier |
| Post ID (tweet ID) | Digits in a /status/ URL | No | A single post, not an account |
| List ID | Digits in a /lists/ URL | No | A curated list, not its owner |
One detail that catches out people writing code rather than looking up a single account: these numbers are large enough that some languages and tools lose precision if they are parsed as floating-point numbers. The platform's API documentation addresses this by returning string versions of ID fields alongside the numeric ones. Store IDs as strings and the problem does not arise. The current reference material is on the X developer documentation site.
How to Find Twitter/X User ID
Go to the Twitter/X profile
Open x.com (or twitter.com) and navigate to the profile you want to look up.
Copy the profile URL
Copy the URL from your browser, e.g. https://x.com/username
Paste and click "Get UID"
The numeric User ID will be displayed instantly. Copy it to your clipboard with one click.
Supported Link Formats
X.com Links
x.com/username
Twitter.com Links
twitter.com/username (legacy)
Profile URLs
Both with and without https://
With Trailing Paths
x.com/username/followers, /likes, etc.
Finding an X User ID Without a Tool
X does not show the numeric ID anywhere in its interface, so every method involves looking somewhere other than the page you are reading. There are three routes worth knowing.
Query the API
This is the proper answer. The v2 API has a lookup-by-username endpoint that returns the account object including its id. It needs API credentials, and access tiers and pricing have changed repeatedly since 2023, so check the current terms on the X developer portal rather than relying on any tutorial, including this one, for what a given tier includes today.
Read it from the loaded page data
X renders profiles client-side, so the numeric ID does not sit in the initial HTML. Opening developer tools on the Network tab and inspecting the JSON responses that load a profile surfaces the account object, with the ID in a field named id or rest_id depending on which internal endpoint served it. Treat this as the general approach rather than a fixed procedure: those internal endpoints are undocumented and change without notice.
Pull it from your own data export
For your own account there is a route needing no developer access. X lets account holders request an archive of their data from account settings, and the files in it reference accounts by numeric ID. For your own ID, or those of accounts you have interacted with, this is the least effort path.
When a Lookup Fails, and What to Try
X has changed how much it serves to visitors who are not signed in, more than once, which makes anonymous lookups less predictable here than on some platforms. These are the usual causes of a failure.
The link is to a post, not a profile
A URL containing /status/ identifies a post. The handle is still in the path so it often resolves anyway, but if the result looks wrong, trim the URL back to x.com/username and drop any query string.
The account is suspended or deleted
Suspended and deleted accounts stop serving profile data. There is no way to derive the ID from the handle afterwards. This is a good argument for recording IDs while accounts are live if you are doing research that needs to survive account loss.
The handle was renamed or recycled
If you get a result that does not match the account you expected, check whether the handle has changed hands. Comparing the display name and join date against what you remember usually settles it quickly.
Protected accounts
Protected accounts serve much less to anonymous requests, sometimes nothing readable at all. That is the owner's setting working as intended rather than a fault in the lookup.
Rate limiting or an access change
Repeated lookups get throttled. Separately, X adjusts what unauthenticated requests receive from time to time, which can break a working lookup until it is updated. An unexplained run of failures that later clears itself is usually one of these.
What an X User ID Does Not Give You
The ID names an account. It is not a credential and confers no access. Protected accounts stay protected, direct messages stay private, and deleted posts stay deleted. Knowing the number changes none of that, on this site or anywhere else.
It also does not tell you anything about the person. An ID is a pointer, not an identity check. Whether an account is authentic, automated, or a renamed version of something else are separate questions, and an ID lookup does not answer any of them. It only tells you reliably that two references point at the same account.
On data handling: lookups run on our server, and the link you submit is recorded along with the resulting ID. We never ask for your X credentials and nothing here requires you to sign in. The detail is in our privacy policy, and there is background on the site on the about page.
Frequently Asked Questions
Is this tool free?
Yes, completely free with unlimited lookups and no account needed.
Does it work with both x.com and twitter.com URLs?
Yes. Both forms are accepted. The rebrand changed the domain and the branding, not the underlying identifier system, so a twitter.com link and an x.com link for the same account resolve to the same numeric ID.
Can I find the ID of a suspended account?
Often not. Suspended and deactivated accounts stop serving profile data, so there is usually nothing left to read. If you recorded the ID before the suspension it stays valid as a reference, but it cannot be recovered from the handle afterwards.
Why did Twitter change to X?
Twitter was rebranded to X in 2023 and the primary domain moved to x.com. The numeric User ID system carried over unchanged, which is why older IDs still work.
What is a snowflake ID, and does X use one?
Snowflake is the ID generation scheme Twitter published and open-sourced for assigning unique IDs at scale. Newer account and post IDs are long numbers produced that way, which is why they dwarf IDs from the platform's early years. The practical consequence: store IDs as strings, not integers.
Can two accounts share a handle over time?
Yes, and this is the main argument for storing IDs. When an account is deleted its handle can become available again and be claimed by someone else. The handle then points at a different account while the numeric ID still refers to the original.
Why did my lookup return nothing?
Likely a link to a post rather than a profile, a suspended or deleted account, a renamed handle, a protected account X does not serve anonymously, or throttling.
Does a User ID let me see protected tweets?
No. An ID identifies an account and grants no access. Protected accounts stay protected, and direct messages stay private, regardless of whether you know the number.
The same idea applies elsewhere, with platform-specific wrinkles: Facebook UIDs, Instagram user IDs, TikTok user IDs, which uniquely has two of them, and YouTube channel IDs. For the overview, see social media user IDs explained.