🛠️ Shortcode to Timestamp Converter
✅ Conversion Result
Try These Examples
Understanding Timestamp Formats
Unix Timestamp (Seconds)
Number of seconds since January 1, 1970 (Unix epoch). Example: 1690123456
Unix Timestamp (Milliseconds)
Number of milliseconds since Unix epoch. Example: 1690123456000
ISO 8601 Format
International standard date format. Example: 2023-07-23T12:34:16.000Z
Human Readable
Easy-to-read format. Example: Sun Jul 23 2023 12:34:16 GMT+0000 (UTC)
How It Works
Instagram shortcodes encode the media ID using a custom Base64 alphabet. The conversion process:
- Decode the shortcode from Base64 to get the media ID
- Right shift the media ID by 22 bits to extract the timestamp
- Convert the timestamp to various formats (Unix, ISO, human-readable)
💡 Pro Tip
Instagram reels and posts use the same shortcode format. This tool works for both!
Common Use Cases
| Use Case | Best Format | Why |
|---|---|---|
| Database Storage | Unix Timestamp (seconds) | Compact, easy to sort and compare |
| JavaScript/APIs | Unix Timestamp (milliseconds) | JavaScript Date() uses milliseconds |
| Data Exchange | ISO 8601 | International standard, timezone-aware |
| Display to Users | Human Readable | Easy to understand at a glance |
Frequently Asked Questions
What's the difference between date and timestamp?
A timestamp is a numeric representation (seconds or milliseconds since Unix epoch), while a date is a human-readable format. Timestamps are better for calculations and storage.
Can I convert Instagram post shortcodes too?
Yes! Instagram posts and reels use the same shortcode format. This tool works for both.
Why are there two Unix timestamp formats?
Unix timestamps can be in seconds or milliseconds. Seconds are more common in databases, while milliseconds are used in JavaScript and provide higher precision.
Is the timestamp accurate?
Yes, the timestamp is encoded directly in the media ID by Instagram's servers. It's accurate to the second.