Last updated
How to Get Tweet IDs
Method 1: From Tweet URL
twitter.com/user/status/1382350606417817604
The number at the end is the Tweet ID. You can paste the full URL or just the ID.
Method 2: From Twitter API
Use Twitter API v2 to get tweet IDs from API responses. The id field contains the Tweet ID.
Tweet ID to Date Converter Examples
The Tweet ID to Date Converter extracts the precise creation timestamp from any tweet ID using Twitter's Snowflake encoding. Below are examples of conversions and use cases.
Basic Tweet ID Conversion
Tweet ID: 1382350606417817604
Decoded timestamp:
UTC: April 14, 2021 at 16:30:00.123 UTC
Unix timestamp: 1618417800123
ISO 8601: 2021-04-14T16:30:00.123Z
Relative: About 5 years ago
How Snowflake Decoding Works
Tweet ID: 1382350606417817604
Step 1: Convert to binary
1382350606417817604 in binary:
0001001100101001001001001001001001001001001001001001001001001001
Step 2: Extract first 41 bits (timestamp)
Timestamp bits: 10011001010010010010010010010010010010010
Step 3: Convert to decimal
Timestamp value: 681417800123 milliseconds
Step 4: Add Twitter epoch (Nov 4, 2010 01:42:54 UTC = 1288834974657 ms)
681417800123 + 1288834974657 = 1970252774780 ms
Step 5: Convert to date
1970252774780 ms = April 14, 2021 16:30:00.123 UTC
Tweet URL Input
Input URL: https://twitter.com/user/status/1529877576591609861
Extracted ID: 1529877576591609861
Decoded:
UTC: May 26, 2022 at 18:45:32.000 UTC
ISO 8601: 2022-05-26T18:45:32.000Z
Bulk Conversion — CSV Output
Input tweet IDs:
1382350606417817604
1529877576591609861
1700000000000000000
1800000000000000000
CSV output:
tweet_id,date_utc,unix_timestamp_ms
1382350606417817604,2021-04-14T16:30:00.123Z,1618417800123
1529877576591609861,2022-05-26T18:45:32.000Z,1653590732000
1700000000000000000,2023-09-09T12:34:56.789Z,1694262896789
1800000000000000000,2024-03-15T08:22:10.456Z,1710491330456
Pagination with Tweet IDs
Twitter API pagination uses since_id and max_id.
Convert boundary IDs to understand the time range:
since_id: 1382350606417817604 → April 14, 2021
max_id: 1529877576591609861 → May 26, 2022
Fetching tweets between April 2021 and May 2022.
JavaScript Decoding
// Decode tweet ID to timestamp
function tweetIdToDate(tweetId) {
const TWITTER_EPOCH = 1288834974657n;
const id = BigInt(tweetId);
const timestamp = (id >> 22n) + TWITTER_EPOCH;
return new Date(Number(timestamp));
}
const date = tweetIdToDate('1382350606417817604');
console.log(date.toISOString()); // "2021-04-14T16:30:00.123Z"
Python Decoding
TWITTER_EPOCH = 1288834974657 # milliseconds
def tweet_id_to_date(tweet_id):
timestamp_ms = (int(tweet_id) >> 22) + TWITTER_EPOCH
return datetime.utcfromtimestamp(timestamp_ms / 1000)
date = tweet_id_to_date('1382350606417817604')
print(date) # 2021-04-14 16:30:00.123000
Common Use Cases
- Establishing precise timelines for journalistic investigations
- Temporal analysis of Twitter conversations and events
- Verifying when a tweet was posted relative to a specific event
- Processing large Twitter datasets without additional API calls
- Debugging Twitter API pagination with time-based boundaries
- Fact-checking claims about when information first appeared on Twitter
- Academic research on information spread and timing
Paste any tweet ID or tweet URL to instantly extract the creation timestamp with millisecond precision. Supports bulk conversion for dataset analysis.
Why Convert Tweet ID to Date?
- Fact-checking: Verify when tweets were actually posted
- Timeline analysis: Track tweet sequences and conversations
- Research: Study Twitter activity patterns over time
- Journalism: Verify tweet timestamps for news stories
- Bot development: Debug timing issues in Twitter bots
- Content moderation: Track when problematic content was posted
How It Works
Every Tweet ID is a Snowflake ID that contains the exact timestamp when the tweet was created. Twitter's Snowflake IDs use an epoch of November 4, 2010, 01:42:54 UTC. The first 41 bits of the ID encode milliseconds since that epoch.
Frequently Asked Questions
Q: Can I convert deleted tweet IDs?
A: Yes! Even if a tweet is deleted, you can still extract the timestamp from its ID.
Q: How accurate is the timestamp?
A: Tweet IDs are accurate to the millisecond. The timestamp shows exactly when the tweet was created.
Q: Does this work for retweets?
A: Yes, but retweets have their own IDs showing when the retweet occurred, not the original tweet time.