Convert between shortcodes and media IDs
Convert Instagram shortcodes to numeric media IDs and vice versa. Shortcodes are the alphanumeric codes in Instagram URLs, while media IDs are the numeric identifiers used by Instagram's API.
Instagram shortcodes are base64-like encoded strings that appear in post URLs. For example, in instagram.com/p/CXhfQ9OgFjP/, the shortcode is CXhfQ9OgFjP. These shortcodes encode the numeric media ID in a URL-friendly format.
Media IDs are 19-digit numeric identifiers that Instagram uses internally to identify posts, reels, and IGTV videos. These IDs are required for Instagram API calls and contain timestamp information about when the content was created.
Shortcode to Media ID:
Media ID to Shortcode:
Shortcode: CXhfQ9OgFjP
Media ID: 2722326650967095055
Both identify the same Instagram post