Skip to content

Ahmadjerj/Discord-snowflake

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Discord Snowflake Comparison Tool

A web-based tool for comparing multiple Discord snowflakes and analyzing their chronological relationships. Built with the same design philosophy as the popular Snow-Stamp tool.

Discord Snowflake Structure Discord Snowflake bit structure showing timestamp, worker ID, process ID, and increment components

What is a Discord Snowflake?

A Discord Snowflake is a unique 64-bit identifier used for resources in Discord. Each snowflake contains:

  • Timestamp (42 bits): Milliseconds since Discord Epoch (January 1, 2015)
  • Worker ID (5 bits): Internal worker that generated the ID
  • Process ID (5 bits): Internal process ID on the worker
  • Increment (12 bits): Incremental counter for the process

This structure allows Discord to generate millions of unique IDs per second while maintaining chronological ordering.

How to Use

Getting Snowflake IDs

  1. Enable Developer Mode in Discord:

    • Desktop: Settings ⚙️ → Advanced → Developer Mode
    • Mobile: Profile → Appearance → Developer Mode
  2. Copy IDs:

    • Desktop: Right-click any message, user, or server → "Copy ID"
    • Mobile: Long-press message/server or tap user profile → "Copy ID"

Using the Tool

  1. Add Snowflakes:

    • Enter an optional label for organization
    • Paste the snowflake ID (17-19 digits)
    • Click "Add Snowflake" or press Enter
  2. Compare Results:

    • View detailed timestamp information for each snowflake
    • Check the chronological order section to see which came first
    • Analyze summary statistics for your dataset

Technical Implementation

Snowflake Parsing

function snowflakeToTimestamp(snowflake) {
    const discordEpoch = 1420070400000; // Jan 1, 2015 in milliseconds
    const timestamp = (BigInt(snowflake) >> 22n) + BigInt(discordEpoch);
    return Number(timestamp);
}

Validation

  • Accepts snowflakes with 17-19 digits
  • Prevents duplicate entries
  • Validates format before processing
  • Graceful error handling for invalid inputs

Use Cases

  • Who is the biggest nerd and sent the message before the others

Contributing

Contributions are welcome! Please feel free to submit issues or pull requests.

Development Setup

  1. Clone the repository
  2. Open index.html in your browser
  3. No build process required - it's a static HTML file Or you can compile the C version but it only compare 2 message IDs

Related Tools

License

This project is open source and available under the MIT License.


Not affiliated with Discord, Inc.

About

Compare messages timestamp to see which nerd was first

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors