Convert Discord ID to Timestamp

Paste any Discord user ID, message ID, server ID, or channel ID to decode its timestamp

💡 How to get Discord IDs: Enable Developer Mode in Settings → Advanced, then right-click any user/message/server → Copy ID
DISCORD ID
📅 Creation Date
⏱️ Unix Timestamp
🕐 Relative Time
🖥️ Worker ID

Last updated

The Conversion Formula

timestamp_ms = (discord_id >> 22) + 1420070400000
// Discord epoch: January 1, 2015 at 00:00:00 UTC = 1420070400000 ms

What Each Discord ID Type Tells You

Paste any Discord ID into TechConverter's Discord ID to Timestamp converter to instantly see the creation date in multiple formats.

Message IDs

Determine exactly when messages were sent. Right-click any message and select Copy ID.

Server IDs

See when Discord servers (guilds) were created. Right-click the server icon and select Copy ID.

Channel IDs

Find channel creation dates. Right-click any channel name and select Copy ID.

Role IDs

Check when roles were created. Right-click roles in server settings to copy their IDs.

Emoji IDs

See when custom emojis were added. Right-click custom emojis to copy their IDs.

Common Use Cases

Discord Snowflake ID Structure

Every Discord snowflake ID contains three components encoded in 64 bits:

Conversion Formula

The mathematical formula to convert a Discord ID to timestamp:

timestamp_ms = (discord_id >> 22) + 1420070400000

Where 1420070400000 is Discord's epoch in Unix milliseconds. The >> operator right-shifts the ID by 22 bits to extract the timestamp portion.

Why Discord Uses Snowflake IDs

Discord adopted Twitter's snowflake ID format because it's perfect for distributed systems. Benefits include:

Frequently Asked Questions

Can I convert IDs from deleted users or messages?

Yes! The timestamp is encoded in the ID itself, so even if the user account is deleted or the message is removed, you can still decode when it was originally created.

Do I need special permissions to get Discord IDs?

No special permissions needed. Any Discord user can enable Developer Mode and copy IDs from any object they can see.

Are Discord timestamps accurate?

Yes, timestamps are accurate to the millisecond. They represent the exact moment Discord's servers created the ID.

What's the oldest Discord ID I can convert?

You can convert any ID created after January 1, 2015, when Discord launched. IDs before this date don't exist as Discord started in 2015.

Examples

Example 1: User ID to Timestamp

User ID: 123456789012345678

Step 1: Right-shift by 22 bits
  123456789012345678 >> 22 = 29440

Step 2: Add Discord epoch
  29440 + 1420070400000 = 1420070429440

Step 3: Convert to date
  new Date(1420070429440) = 2015-01-01T00:00:29.440Z

Result: Account created January 1, 2015 at 00:00:29 UTC

Example 2: JavaScript Converter

function discordIdToTimestamp(id) {
  const DISCORD_EPOCH = 1420070400000n;
  const snowflake = BigInt(id);
  const timestampMs = Number((snowflake >> 22n) + DISCORD_EPOCH);
  return {
    date: new Date(timestampMs),
    unix: Math.floor(timestampMs / 1000),
    ms: timestampMs,
    iso: new Date(timestampMs).toISOString()
  };
}

// Works for any Discord object type
console.log(discordIdToTimestamp("123456789012345678"));
// { date: 2021-03-05T14:32:11.000Z, unix: 1614954731, ms: 1614954731000, iso: "2021-03-05T14:32:11.000Z" }

// User ID
console.log(discordIdToTimestamp("80351110224678912").iso);   // 2015-02-28T...

// Server ID
console.log(discordIdToTimestamp("81384788765712384").iso);   // 2015-03-07T...

// Message ID
console.log(discordIdToTimestamp("817263991139819520").iso);  // 2021-02-12T...

Example 3: Python Converter

from datetime import datetime, timezone

DISCORD_EPOCH_MS = 1420070400000

def discord_id_to_timestamp(discord_id: int) -> datetime:
    ts_ms = (discord_id >> 22) + DISCORD_EPOCH_MS
    return datetime.fromtimestamp(ts_ms / 1000, tz=timezone.utc)

# User ID
print(discord_id_to_timestamp(123456789012345678))
# 2021-03-05 14:32:11+00:00

# Channel ID
print(discord_id_to_timestamp(817263991139819520))
# 2021-02-12 08:15:44+00:00

Frequently Asked Questions

Paste the Discord ID into our converter, and it instantly extracts the timestamp. Discord IDs are snowflakes containing encoded creation time. Formula: (ID >> 22) + 1420070400000 milliseconds.

Enable Developer Mode in Discord settings, right-click the user profile, select Copy ID, then paste it into our timestamp converter to see the exact account creation date and time.

Discord snowflakes use epoch January 1, 2015 (1420070400000 ms). The first 41 bits encode milliseconds since this epoch, allowing timestamp extraction from any Discord ID.