Popular Instagram Shortcodes to Try

POPULAR REEL
CZxK7qHFVOy
📅 December 2024
RECENT POST
CdP8KqHFVOy
📅 January 2025
EXAMPLE POST
CxOWiQNphlr
📅 November 2024

💡 Click any shortcode to decode it instantly

Decode Instagram Shortcode

📌 Try these examples:
INSTAGRAM SHORTCODE
📊 MEDIA ID
📅 POST CREATED
⏱️ TIMESTAMP
🔗 INSTAGRAM URL

Last updated

Instagram Shortcode Decoder

Decode Instagram shortcodes to reveal media IDs, creation dates, and timestamps. Every Instagram post and reel has a shortcode that contains encoded information about when it was created.

How to Get Instagram Shortcodes

Method 1: From Post URLs

instagram.com/p/CxOWiQNphlr/

The shortcode is between /p/ and the trailing slash.

Method 2: From Reel URLs

instagram.com/reel/CxOWiQNphlr/

Reels use the same shortcode format.

Method 3: Paste Full URL

You can paste the entire Instagram URL and the decoder will extract the shortcode automatically.

Key Facts

  • Instagram Base64 alphabet: A-Z (0-25), a-z (26-51), 0-9 (52-61), - (62), _ (63)
  • Instagram epoch: January 1, 2011 (Unix: 1293840000 seconds)
  • Timestamp extracted by right-shifting media ID by 23 bits
  • Works for posts (/p/), reels (/reel/), and IGTV (/tv/)
  • No API access required — all information is encoded in the shortcode
  • Always use BigInt in JavaScript to avoid precision loss

Paste any Instagram shortcode or post URL to instantly decode the numeric ID and creation timestamp.

What You Can Decode

  • Posts: Regular Instagram photo and video posts
  • Reels: Instagram Reels shortcodes
  • IGTV: IGTV video shortcodes
  • Carousel: Multi-image post shortcodes

Shortcode Format

Character Set: A-Z, a-z, 0-9, - (dash), _ (underscore)

Length: Typically 11 characters

Encoding: Base64 variant (URL-safe)

Case Sensitive: Yes - 'A' and 'a' are different

Example: CxOWiQNphlr, B_zcOWqAQW5, CKr6qN2FQWX

Use Cases

📊

Content Analysis

Track when posts were created for trend analysis

🤖

Bot Development

Convert shortcodes to IDs for Instagram API

🔍

Research

Study Instagram content timelines and patterns

📈

Marketing

Analyze competitor posting schedules

Frequently Asked Questions

Q: Can I decode deleted posts?

A: Yes, as long as you have the shortcode, you can decode it even if the post is deleted.

Q: Do reels have different shortcodes?

A: No, Instagram reels use the same shortcode format as regular posts.

Q: Is the timestamp accurate?

A: Yes, Instagram shortcodes contain the exact creation timestamp, accurate to the millisecond.

Q: Is this tool free?

A: Yes, completely free with no signup required. All processing happens in your browser.

CdP8KqHFVOy → Reel example
B_uf9QvhGq3 → Older post format

💡 Find shortcodes in URLs: instagram.com/p/SHORTCODE/ or instagram.com/reel/SHORTCODE/

How Instagram Shortcodes Work

Instagram shortcodes are base64-encoded media IDs that appear in post and reel URLs. Each shortcode contains the numeric media ID, which includes a timestamp of when the content was posted.

What You Can Extract:

  • Numeric media ID (used by Instagram's API)
  • Exact post creation date and time
  • Unix timestamp for developers
  • Works for posts, reels, and IGTV videos
  • No Instagram login required!

Common Use Cases:

  • Find when viral content was originally posted
  • Track content timeline for research
  • Verify post authenticity and dates
  • Analyze posting patterns and schedules
  • Get media IDs for Instagram API development

Examples

Example 1: Complete Decode Output

Input: CxYz123abcd
  (from URL: https://www.instagram.com/p/CxYz123abcd/)

Decoded output:
  Numeric Media ID:  2847392847392847392
  Created at:        August 15, 2023 at 14:32:07 UTC
  Unix timestamp:    1692109927
  ISO 8601:          2023-08-15T14:32:07.000Z
  Post age:          ~1 year, 7 months ago
  Shortcode length:  11 characters (modern post, 2017+)

Reverse (Numeric ID → Shortcode):
  Input:  2847392847392847392
  Output: CxYz123abcd
  URL:    https://www.instagram.com/p/CxYz123abcd/

Example 2: Full JavaScript Implementation

const ALPHABET = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_';
const INSTAGRAM_EPOCH = 1293840000; // Jan 1, 2011

class InstagramShortcodeDecoder {
  // Shortcode → Numeric ID
  static toMediaId(shortcode) {
    let id = 0n;
    for (const char of shortcode) {
      const value = ALPHABET.indexOf(char);
      if (value === -1) throw new Error(`Invalid character: '${char}'`);
      id = id * 64n + BigInt(value);
    }
    return id;
  }

  // Numeric ID → Shortcode
  static toShortcode(mediaId) {
    let id = BigInt(mediaId);
    if (id === 0n) return 'A';
    let result = '';
    while (id > 0n) {
      result = ALPHABET[Number(id % 64n)] + result;
      id /= 64n;
    }
    return result;
  }

  // Shortcode → Creation Date
  static decode(shortcodeOrUrl) {
    // Extract shortcode from URL if needed
    const match = shortcodeOrUrl.match(/\/(p|reel|tv)\/([A-Za-z0-9_-]+)/);
    const shortcode = match ? match[2] : shortcodeOrUrl;

    const mediaId = this.toMediaId(shortcode);
    const timestampSeconds = Number(mediaId >> 23n) + INSTAGRAM_EPOCH;
    const createdAt = new Date(timestampSeconds * 1000);

    return {
      shortcode,
      mediaId: String(mediaId),
      createdAt,
      iso: createdAt.toISOString(),
      unixSeconds: timestampSeconds,
      unixMs: timestampSeconds * 1000
    };
  }
}

// Usage:
const result = InstagramShortcodeDecoder.decode('CxYz123abcd');
console.log(result.iso);     // "2023-08-15T14:32:07.000Z"
console.log(result.mediaId); // "2847392847392847392"

// Reconstruct URL from numeric ID:
const shortcode = InstagramShortcodeDecoder.toShortcode('2847392847392847392');
console.log(`https://www.instagram.com/p/${shortcode}/`);
// → "https://www.instagram.com/p/CxYz123abcd/"

Example 3: Efficient Batch Processing (No API Needed)

// Process 10,000 Instagram URLs without any API calls
// Decoding timestamps from shortcodes is instant and rate-limit-free

const instagramUrls = [
  'https://www.instagram.com/p/CxYz123abcd/',
  'https://www.instagram.com/reel/B1a2b3c4d5e/',
  // ... 9,998 more URLs
];

const results = instagramUrls.map(url => {
  const decoded = InstagramShortcodeDecoder.decode(url);
  return {
    url,
    shortcode: decoded.shortcode,
    mediaId: decoded.mediaId,
    createdAt: decoded.iso
  };
});

// Sort by creation date:
results.sort((a, b) => a.createdAt.localeCompare(b.createdAt));

// Filter posts from 2023:
const posts2023 = results.filter(r =>
  r.createdAt.startsWith('2023')
);

console.log(`Processed ${results.length} URLs`);
console.log(`Posts from 2023: ${posts2023.length}`);

Frequently Asked Questions

Paste the Instagram shortcode from the post URL into the decoder. The shortcode is the alphanumeric string in URLs like instagram.com/p/SHORTCODE/. You'll get the media ID, creation date, and timestamp instantly.

You can extract the numeric media ID, exact post creation date and time, Unix timestamp, and the full Instagram URL. All Instagram shortcodes contain this embedded information.