Discord Snowflake Timestamp Converter
Convert Discord Snowflake IDs to Unix timestamps. Every Discord ID (user, message, server, channel) contains a timestamp that shows when it was created. This tool extracts that timestamp and converts it to standard Unix time.
Discord Snowflake Epoch
Discord uses January 1, 2015, 00:00:00 UTC (1420070400000 milliseconds) as its epoch. All Discord IDs encode time relative to this date.
Code Examples
// JavaScript
function discordIdToTimestamp(id) {
const DISCORD_EPOCH = 1420070400000n;
const snowflake = BigInt(id);
const timestamp = Number((snowflake >> 22n) + DISCORD_EPOCH);
return timestamp;
}
// Example
const timestamp = discordIdToTimestamp('175928847299117063');
console.log(timestamp); // 1462015105796
console.log(new Date(timestamp)); // 2016-04-30T11:18:25.796Z
# Python
from datetime import datetime
def discord_id_to_timestamp(snowflake_id):
DISCORD_EPOCH = 1420070400000
timestamp = ((int(snowflake_id) >> 22) + DISCORD_EPOCH) / 1000
return timestamp
# Example
timestamp = discord_id_to_timestamp('175928847299117063')
print(timestamp) # 1462015105.796
print(datetime.fromtimestamp(timestamp)) # 2016-04-30 11:18:25.796000
Use Cases
- Message timestamps: Find when Discord messages were sent
- Account age: Determine when Discord accounts were created
- Server creation: See when Discord servers were established
- Bot development: Debug timing issues in Discord bots
- Moderation: Track user activity timelines