Convert Discord ID to Timestamp

DISCORD ID
📅 DATE & TIME
⏱️ UNIX TIMESTAMP (milliseconds)
⏱️ UNIX TIMESTAMP (seconds)

Last updated

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

How to Get a Discord ID

  1. Open Discord → Settings → Advanced → Enable Developer Mode
  2. Right-click any user, server, channel, or message
  3. Click "Copy ID" (or "Copy User ID", "Copy Server ID", etc.)
  4. Paste into TechConverter's converter

The converter works for all Discord object types — users, servers, channels, messages, roles, and emojis all use the same Snowflake format with the same Discord epoch.

// 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
# 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

Examples

Example 1: Convert a User ID to Date

Input: 123456789012345678

Output:
  Local time:   March 5, 2021 at 2:32 PM (your timezone)
  UTC:          2021-03-05T14:32:11.000Z
  Unix (ms):    1614954731000
  Relative:     5 years ago
  Age:          1838 days

Example 2: Convert a Server ID to Date

Input: 81384788765712384

Output:
  UTC:          2015-03-07T04:00:00.000Z
  Relative:     11 years ago

Interpretation: One of the earliest Discord servers,
created just weeks after Discord launched in February 2015.

Example 3: JavaScript Converter

function snowflakeToDate(id) {
  const DISCORD_EPOCH = 1420070400000n;
  const ms = Number((BigInt(id) >> 22n) + DISCORD_EPOCH);
  return {
    date:     new Date(ms),
    iso:      new Date(ms).toISOString(),
    unixMs:   ms,
    relative: getRelativeTime(ms)
  };
}

function getRelativeTime(ms) {
  const diff = Date.now() - ms;
  const days = Math.floor(diff / 86400000);
  if (days < 1)   return 'today';
  if (days < 7)   return `${days} days ago`;
  if (days < 30)  return `${Math.floor(days/7)} weeks ago`;
  if (days < 365) return `${Math.floor(days/30)} months ago`;
  return `${Math.floor(days/365)} years ago`;
}

// Works for any Discord object type
console.log(snowflakeToDate("123456789012345678").iso);  // User
console.log(snowflakeToDate("81384788765712384").iso);   // Server
console.log(snowflakeToDate("817263991139819520").iso);  // Message

Frequently Asked Questions

Paste the Discord Snowflake ID into the converter and click 'Convert to Timestamp'. You'll get the Unix timestamp in milliseconds and seconds, plus the exact date and time. Discord uses epoch January 1, 2015 for all Snowflake IDs.

Discord's Snowflake epoch is January 1, 2015, 00:00:00 UTC (1420070400000 milliseconds). All Discord IDs encode timestamps relative to this epoch.