🎬 Instagram Reel Shortcode Decoder

Convert Instagram Reel shortcodes to media IDs instantly

📸 Popular Instagram Reel Shortcodes

CZxK7qHFVOy
→ December 15, 2024
CdP8KqHFVOy
→ January 8, 2025
CK1JqHqFVOy
→ October 22, 2024
💡 Click any shortcode above to decode it instantly

Decode Reel Shortcode

📌 More examples:
INPUT
REEL SHORTCODE
MEDIA ID
📅 CREATION DATE

What is an Instagram Reel Shortcode?

Instagram Reels use shortcodes in URLs to identify each reel uniquely. Each shortcode is a base64-encoded representation of a numeric media ID that contains timestamp information.

How to Get Instagram Reel Shortcodes

Method 1: From Reel URLs

instagram.com/reel/CZxK7qHFVOy/

The alphanumeric string between /reel/ and the trailing slash is the shortcode.

Method 2: Share Button

Tap the share button on any Reel and select "Copy Link". The URL contains the shortcode.

Decode Reel Shortcodes in Code

JavaScript
// JavaScript
const ALPHABET = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_';
const INSTAGRAM_EPOCH = 1314220021721n;

function shortcodeToMediaId(shortcode) {
  let mediaId = 0n;
  for (const char of shortcode) {
    mediaId = mediaId * 64n + BigInt(ALPHABET.indexOf(char));
  }
  return mediaId.toString();
}

function getReelTimestamp(mediaId) {
  const id = BigInt(mediaId);
  const timestamp = Number((id >> 32n) * 1000n + INSTAGRAM_EPOCH);
  return new Date(timestamp);
}

// Example
const mediaId = shortcodeToMediaId('CZxK7qHFVOy');
console.log('Media ID:', mediaId);
console.log('Created:', getReelTimestamp(mediaId));

Common Use Cases

Instagram Reel vs Post Shortcodes

Both Reels and regular posts use the same shortcode format and encoding algorithm. The only difference is the URL path:

  • Reels: instagram.com/reel/SHORTCODE/
  • Posts: instagram.com/p/SHORTCODE/

Both decode to media IDs using the same base64 alphabet.

🔗 Related Snowflake ID Tools

🐦 Twitter Snowflake Decoder 💬 Discord Snowflake Decoder 📸 Instagram Snowflake Decoder

📚 Learn More About Snowflake IDs

How to Decode Tutorial Real ID Examples Snowflake Calculator ID to Timestamp