📸 Instagram Media ID Decoder

Decode Instagram post IDs to timestamps and dates instantly

🔍 Decode Instagram Media ID

Enter Instagram post, reel, or story ID to extract creation date

Post Created On
Unix Timestamp (milliseconds)
Unix Timestamp (seconds)
ISO 8601 Format

How to Decode Instagram Media ID

Decoding an Instagram media ID is straightforward: paste the Instagram post ID (from the API or URL) and click Decode. Our tool extracts the embedded timestamp and displays the exact creation date in multiple formats.

Instagram media IDs use a snowflake format that encodes timestamps in the first 41 bits using the formula: (media_id >> 22). Instagram uses the standard Unix epoch (January 1, 1970), so no epoch offset is needed.

Why Decode Instagram Media IDs?

Understanding Instagram's Media ID Format

Instagram uses a 64-bit snowflake ID structure similar to Twitter and Discord:

Unlike Twitter and Discord, Instagram uses the standard Unix epoch (0 milliseconds = January 1, 1970, 00:00:00 UTC).

Code Examples

JavaScript

const mediaId = 2789123456789012345n; const timestamp = mediaId >> 22n; console.log(Number(timestamp)); // Unix timestamp in ms

Python

media_id = 2789123456789012345 timestamp = media_id >> 22 print(timestamp) # Unix timestamp in ms

Common Use Cases

Common Errors & Solutions

❌ Error: "Invalid snowflake ID"

Cause: ID contains non-numeric characters or is too short

Solution: Remove any spaces, letters, or special characters. Valid IDs are 15-19 digits.

Example: abc123 → Invalid | 2789123456789012345 → Valid

❌ Error: "Date seems incorrect"

Cause: Wrong platform epoch being used

Solution: Verify you're using the correct converter for your platform (Instagram).

Tip: Instagram uses epoch: 0 ms

❌ Error: "Date is in the future"

Cause: ID is too large, corrupted, or not a snowflake ID

Solution: Verify the ID is correct and from Instagram.

Performance & Best Practices

💡 Batch Processing

Processing multiple IDs? Use array mapping for efficiency:

JavaScript
const ids = ['2789123456789012345', '1383000000000000000'];
const timestamps = ids.map(id => 
    Number((BigInt(id) >> 22n) + 0n)
);

💡 Input Validation

Always validate before converting to prevent errors:

JavaScript
function validateSnowflake(id) {
    if (!/^\d{15,19}$/.test(id)) {
        throw new Error('Invalid snowflake ID');
    }
    return true;
}

Frequently Asked Questions

Where do I find Instagram media IDs?

Media IDs are available through the Instagram API, browser developer tools, or by inspecting page source. They're not visible in the regular Instagram interface.

Do Instagram Reels use the same ID format?

Yes, Instagram Reels, posts, stories, and IGTV videos all use the same snowflake ID format. All can be decoded using this tool.

Can I decode Instagram shortcodes?

Shortcodes (the alphanumeric codes in URLs) are different from media IDs. Use our Instagram Shortcode Decoder for those.

Why is the timestamp in milliseconds?

Instagram, like most modern platforms, uses millisecond-precision timestamps for accurate time tracking. Divide by 1000 to get seconds if needed.