Twitter (X) ID Finder
Convert any @username to its permanent numeric user ID, or paste an ID to get the handle back. Free, instant, no login.
Last updated October 15, 2026. Lookups tested live and ID rules re-verified against X's ID documentation on that date.
Free, no login. Powered by the GetXAPI user lookup endpoint.
How do I find a Twitter user ID?
Type the @username into the Twitter ID finder above and it returns the account's numeric user ID in one lookup. Paste a number instead and it returns the current username, so one box works as an X ID finder, a Twitter username to ID converter and an ID to username lookup. X does not display the ID on profiles, and it never changes when the account renames its handle, which is why developers store it. The same number is also called a Twitter account ID or X user ID.
Not the same
Is a Twitter ID the same as a username?
No. The @username is the name people see and can be changed at any time. The user ID is a number X assigns once, and it stays with the account through every rename.
Both directions
Can I turn a user ID back into a username?
Yes. Paste the number into the tool above and it returns the account's current @username, even if the handle changed since you saved the ID.
No account needed
Do I need an X developer account?
Not for this tool, and not for the GetXAPI lookup behind it. X's own users lookup endpoint does need approved developer access and credentials.
What is a Twitter user ID?
A Twitter user ID is the permanent number X assigns to an account when it is created. It is different from the @username: the username can be changed at any time, while the user ID never changes and, according to X's ID documentation, is globally unique across X. NASA's user ID, for example, is 11348282. Developers store the user ID, not the handle.
How to find a Twitter user ID from a username
- Enter the username. Type the @username (handle) of the account into the Twitter ID finder above. The @ sign is optional.
- Run the lookup. Select Find ID. The tool calls the user lookup endpoint once and reads the id field from the profile it returns.
- Copy the user ID. Copy the numeric Twitter user ID. To go the other way, paste a numeric ID instead of a handle to get the current username back.
Why the numeric ID matters
A Twitter / X handle is not a stable identifier. Users rename, accounts get recycled, and a handle you stored last month can point at a different person today. The numeric user ID is assigned once at account creation and never changes, which is why every serious integration keys its data on the ID, not the username. To see whether a handle is currently taken, use the username checker.
This tool resolves either direction in one call. To do the same thing inside your own product, the GetXAPI user lookup returns the full profile (ID, follower counts, bio, creation date, verification) at $0.001 per request, with no X developer account. See the pricing for the full rate card, or the Python tutorial for a code walkthrough.
Twitter username to ID, and Twitter ID to username
This tool works both directions. Type an @username to get its numeric ID, or paste a numeric ID to get the current handle and profile back. The reverse lookup (ID to username) is the one people reach for most: when you have IDs saved from an old export and the handles may have changed, the ID is the only thing that still resolves reliably, because it never changes even after a rename.
What developers use the ID for
- A stable primary key: store follower, tweet, and profile data against the ID so a rename never orphans your records.
- Direct lookups: endpoints that take a user ID, such as
user/info_by_id, resolve the account in one call with no handle involved. - Deduplication: the same account can appear under different handles over time, the ID collapses them into one.
All of this is available programmatically: the followers and user endpoints return the numeric ID on every profile, so you can resolve handles and IDs at scale instead of one at a time.
How to find a Twitter (X) ID manually
You can read the ID from x.com itself, but it takes a browser and a few steps. Both routes below were checked on October 15, 2026 while signed in to x.com; X changes its page markup often, so treat them as a fallback rather than a method to build on.
- Username to ID, from the page: open the profile on x.com in a desktop browser, open developer tools, and search the Elements panel for
-follow. The Follow button carries the ID in its test id, for example11348282-followon NASA's profile. - ID to username, from the URL: open
x.com/i/user/followed by the number. On our test,x.com/i/user/11348282redirected to x.com/NASA. - The official API: X's users lookup endpoint returns the
idfield for a username, but it needs approved developer access and credentials, a lot of setup for one number.
Common use cases for a Twitter ID
- Giveaway and contest verification: pin entrants to their permanent ID so a handle change after entering cannot be used to game or duplicate entries.
- Duplicate and bot auditing: the ID is the only reliable key for spotting the same account across handle changes, or flagging suspicious ones.
- Account-age screening: resolve the ID and profile to read the creation date, a fast signal for filtering brand-new or throwaway accounts.
- Stable data storage: key your database on the ID so a rename never orphans a user's historical records.
Get a Twitter user ID from a username with the API
The tool above is one API call, and you can make the same call from your own code. Send the username to /twitter/user/info and read data.id. To go from a user ID back to a username, send the ID to /twitter/user/info_by_id and read data.userName. Each call is $0.001 and needs only a Bearer key, with no X developer account.
# username to user ID -> "11348282"
curl -s "https://api.getxapi.com/twitter/user/info?userName=nasa" \
-H "Authorization: Bearer $GETXAPI_KEY"
# user ID to username -> "NASA"
curl -s "https://api.getxapi.com/twitter/user/info_by_id?userId=11348282" \
-H "Authorization: Bearer $GETXAPI_KEY"The same user object carries follower counts, the bio and the creation date, so one call answers most profile questions. The object reference lists every field.
User ID or tweet ID: which number do you have?
Both are numbers from the same ID system, so they are easy to mix up. Pasting a tweet ID into a user lookup returns nothing, and the reverse is true as well.
| Twitter user ID | Tweet (post) ID | |
|---|---|---|
| Identifies | One account | One post |
| Example | 11348282 (NASA) | 1234567890123456789 |
| Where you find it | Not shown in the app. Use a lookup or the API | The end of a post URL, after /status/ |
| Look it up with | user/info_by_id | tweet/detail |
Store either one as a string. X's ID documentation describes them as 64-bit unsigned integers and warns that JavaScript, which is exact only up to 53 bits, can corrupt a long ID that is parsed as a number.
Ways to find a Twitter ID, compared
Use the tool for a one-off Twitter ID lookup, the x.com tricks when you are already signed in, and an API when you have more than a handful of accounts. Only the tool and the API work in both directions without an X login; the official X API needs approved developer access first.
| Method | Direction | Needs | Best for |
|---|---|---|---|
| This Twitter ID finder | Username to ID and ID to username | Nothing, no login | One-off lookups |
| x.com page source | Username to ID | A desktop browser and developer tools | Checking one account by hand |
| x.com/i/user/ID | ID to username | A browser (tested signed in) | Resolving one saved ID |
| Official X API | Both | Approved X developer access and credentials | Teams already on the X API |
| GetXAPI | Both | An API key, $0.001 per call | Bulk lookups in your own code |
When this tool is enough
- You need one or a few IDs, or one username back from an ID.
- You want your own Twitter user ID.
- You are checking that a saved ID still points at the account you expect.
- You have no X developer account and do not want one.
When you need something else
- Hundreds of accounts: call the API in a loop, as in the code above.
- A suspended or deleted account: X no longer serves it, so no lookup can resolve it.
- Someone's email or phone number: not available from an ID, by design.
- Whether a handle is free: use the username checker.
Resolve IDs programmatically
Same lookup, in your code. $0.001 per call, no developer account, $0.10 in free credits at signup.
Handle or numeric ID: which to store
Both identify the same account. Only one of them survives a rename, which is why every API response carries the number.
| @handle | Numeric ID | |
|---|---|---|
| Survives a rename | No, it changes with the handle | Yes, it stays with the account |
| Can belong to someone else later | Yes, a freed handle can be claimed | No |
| Where you see it | Profile URL, mentions, screenshots | API responses, exports, webhooks |
| Use it for | Display and human reference | Storage, joins, deduplication |
The practical rule: show the handle, store the ID. A dataset keyed on handles quietly breaks the first time someone renames.
Verified October 15, 2026 against X's ID documentation, X's user lookup documentation, X's API data dictionary, with both lookups tested live through GetXAPI on the same date.
Twitter ID finder FAQ
Every Twitter / X account has two identifiers: the @username (handle) you see, and a permanent numeric user ID assigned when the account was created. The numeric ID never changes, even if the account renames its handle, which is why developers key their data on the ID rather than the username.
Yes. Paste the numeric ID instead of a handle and the tool resolves it back to the current @username and profile. This is useful when you have IDs stored from an old export and the handles may have changed.
The numeric ID is the only stable key for an account. Usernames can be changed, recycled, or squatted, so building on the handle breaks your data when a user renames. Storing the numeric ID keeps your records correct across renames.
Developers use the numeric ID as the primary key for an account: to store follower and tweet data against a stable identifier, to deduplicate accounts across exports, and as the input to API calls that take a user ID. Because it never changes, it keeps datasets correct even after users rename.
It is a plain number with no letters. Older accounts have short IDs and newer ones have long ones: @jack, created in 2006, is 12; NASA (2007) is 11348282; OpenAI (2015) is 4398626122; and accounts created since 2023, such as @grok, have 19-digit IDs like 1720665183188922368. We looked these up on October 15, 2026.
Store it as a string. X IDs are 64-bit unsigned integers, and JavaScript numbers are only exact up to 53 bits, so a long ID parsed as a number can silently change its last digits. X's own documentation says to always use string IDs, and the API returns the ID as a string for that reason.
Enter the @username above and this tool returns the numeric ID instantly. Under the hood it calls the GetXAPI user lookup endpoint, the same call you can make programmatically at $0.001 per request.
Yes, it is free and needs no login or developer account. If you need to resolve IDs in bulk or inside your own app, the same lookup is available programmatically through GetXAPI at $0.001 per call.
Paste the numeric ID into the tool above instead of a handle. It resolves the ID back to the current @username and full profile. This is the reverse lookup, and it is the reliable way to recover handles from IDs you stored in an old export, since the ID never changes even when the handle does.
Your Twitter ID is the permanent number X assigned to your account when you created it. Type your own @username into the tool above and it returns your user ID. X does not display the number on your profile, which is why a lookup tool is the quickest way to find your own Twitter user ID.
No. A user ID identifies an account and a tweet ID identifies one post. They are both numbers from the same ID system, so they look alike, but they are not interchangeable. A user ID goes into user lookup calls, and a tweet ID is the number at the end of a post URL after /status/.
If the account is renamed, look it up by its current handle and you will get the same ID it always had. If the account is fully suspended or deleted, X no longer serves its profile, so neither this tool nor any API can resolve it, the only way to recover it is from data you captured before the account went down.
Next read
Continue exploring related pages:
X username checker
See whether an @handle is taken or looks available, with X's length and character rules applied.
Twitter shadowban test
Free check for search bans and search suggestion bans on any X account, no login.
GetXAPI API key: signup to first request
Get a GetXAPI key in 30 seconds, one Bearer header for every endpoint, $0.10 free credits, no X developer account.
Twitter followers API
Export any account's followers and following with cursor pagination, $0.05 per 1,000.
