Free tool
Find a Twitter (X) user ID
Enter an @username to get the account's numeric user ID, or a user ID to get the current username. The ID never changes, even when the account is renamed, which is why APIs and datasets use it.
Free tool by TwittrAPI, the Twitter/X data API from $0.0033 per 1,000 tweets. See the API →
The user ID and username appear here.
How it works
How the twitter user id finder works
- 01
Paste a username, profile link or ID
With or without @. The input is checked in your browser first.
- 02
Complete the captcha
It keeps the free tool for people; scripts and agents should use the API.
- 03
We look the account up
Our server calls
GET /user/by/username/{username}(orGET /user/{userId}) with the simple format. Identical lookups are cached for 10 minutes. - 04
Copy the result
ID, username and a permanent profile link that works after a rename.
Need this at scale? Get an API key
The same lookup is one API call: $0.10 per 1,000 at the standard price, no X developer account. Convert up to 100 usernames per call with the batch endpoint.
FAQ
Frequently asked questions
What is a Twitter user ID?
A number X gives every account when it is created, for example 2244994945 for @XDevelopers. Unlike the @username it never changes, so tools, APIs and datasets use it to identify accounts.
Why do I need the user ID instead of the username?
Usernames can be changed and then taken by someone else. Many API endpoints (followers, timelines, lists) and most datasets key accounts by ID, so storing the ID keeps your data correct after a rename.
Can I find the username for a user ID?
Yes: switch to ID → username. The tool returns the account's current username. You can also open x.com/i/user/<ID> in a browser, which redirects to the profile.
Does it work for private (protected) accounts?
Yes for the ID and username: they are public even when the posts are protected. Suspended and deactivated accounts are not found.
Can I convert many usernames at once?
Not with the free tool, which does a few lookups per day. The API converts up to 100 usernames per call with GET /user/usernames/to/ids.
More free tools
Other tools
- Tweet ID to date →Exact posting time from a tweet URL or ID, and a date to tweet ID for since_id/max_id. Runs in your browser.
- Follower count checker →Followers, following and tweet counts, verification type and creation date of an account.
- Thread reader →Unrolls an X thread into clean text, with copy and Markdown download.
- Tweets to CSV →The latest ~20 tweets of an account as a table with CSV download.
- Shadowban checker →Search ban, search suggestion ban, reply deboosting and account status of an @username, as signals.
- Video downloader →MP4 links for the videos and GIFs of a post, and its photos in original size.
- Profile picture viewer →Profile picture in original size and the header banner at 1500x500, with download links.
- Account age checker →Join date, exact age in years, months and days, posts per day and followers of an account.
- Account location checker →The country an account is based in, username changes and more from X's About this account panel.
- Character counter →Counts characters like X (links 23, emoji 2) and splits long text into a numbered thread. Runs in your browser.
- Bold text generator →Bold, italic, script, monospace and other Unicode styles for X posts and bios. Runs in your browser.